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 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.
arrange()
is a function indplyr
package. Install the package by runninginstall.packages("dplyr")
.