When running this code:
R> top_100_mcap <- arrange(.data = tbl_clean, desc(mcap))[1:100, ]
I got this error:
Error in arrange(.data = tpl_clean, desc(mcap)) :
could not find function "arrange"
Am I missing a package?
R programming for quantitative investment: part 1 - fetch market data from web
When running this code:
R> top_100_mcap <- arrange(.data = tbl_clean, desc(mcap))[1:100, ]
I got this error:
Error in arrange(.data = tpl_clean, desc(mcap)) :
could not find function "arrange"
Am I missing a package?
When I tried it in Rstudio it worked. Not sure why it did not in R console.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
arrange()
is a function indplyr
package. Install the package by runninginstall.packages("dplyr")
.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit