when I read a .csv file with read.csv like this
df1 <- read.csv("a.csv")
and I access a single column like this
df1[,1]
I get the expected column vector.
But in contrast, if i read the .csv with fread (from the library data.table)
df2 <- fread("a.csv")
and access a single column
df2[,1]
It just returns
1
Can somebody explain, why I can't access the column vector by its index, when I read the csv with fread?