0

Consider:

library(data.table)
storm <- fread("my.csv", header=TRUE, sep=',')
class(storm)
"data.table" "data.frame"

When the class function is run on the dataset it returns two classes. Why it is doing that?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
green seek
  • 133
  • 3
  • 11
  • Related: https://stackoverflow.com/questions/49659969/what-does-data-table-data-frame-class-mean I should recommend reading any tutorial on `data.table`. `fread` has argument `data.table` where you can pass `FALSE` to return `data.frame`. – pogibas Sep 01 '18 at 08:55
  • 1
    why would you expect a data.table function not to return a data.table when possible? – Andre Elrico Sep 01 '18 at 09:21

0 Answers0