November 2018
Beginner to intermediate
354 pages
6h 59m
English
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:

Read now
Unlock full access