官术网_书友最值得收藏!

sapply

What we have got by using unlist(lapply(data, function, arguments_of_the_function)) can be obtained simply by using sapply(data, function, arguments_of_the_function).

sapply(all_prices4$june_price, power_function2, 4)

We are returned with a vector again as follows:

Now let's go back to the example of the all_prices3 data frame. We can see this from the screenshot that follows:

主站蜘蛛池模板: 醴陵市| 平武县| 林芝县| 滨州市| 东辽县| 固原市| 陵川县| 贺兰县| 汽车| 米林县| 长葛市| 三河市| 阳曲县| 离岛区| 莲花县| 台南市| 宝丰县| 久治县| 成武县| 黔南| 澎湖县| 清新县| 凤城市| 江西省| 天峻县| 精河县| 盐山县| 武邑县| 博客| 安图县| 马鞍山市| 沂源县| 黎川县| 广州市| 甘孜县| 会昌县| 武陟县| 横峰县| 灵石县| 台南市| 师宗县|