RE: R programming for quantitative investment: part 1 - fetch market data from web

You are viewing a single comment's thread from:

R programming for quantitative investment: part 1 - fetch market data from web

in cryptocurrency •  8 years ago 

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?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

When I tried it in Rstudio it worked. Not sure why it did not in R console.

arrange() is a function in dplyr package. Install the package by running install.packages("dplyr").