15

I have installed package "microbenchmark" and then run: library(microbenchmark).

Now, I am trying to read a csv file, but getting the error: "fread" function not found.

setwd("C:/Data Analytics/R Assignments")
library(microbenchmark)
data <- fread("BigDiamonds.csv") 

Error in
fread("BigDiamonds.csv") : could not find function "fread"

I have been using R 3.4. Could that be the issue?

neilfws
  • 32,751
  • 5
  • 50
  • 63
Ranjan Kumar
  • 151
  • 1
  • 1
  • 4

1 Answers1

19

Try this. It worked for me

install.packages("data.table")
library("data.table")
data <- fread("BigDiamonds.csv")
Himanshu Poddar
  • 7,112
  • 10
  • 47
  • 93