You're learning a LOT at once! I see that you are using both tidyverse and data.table. While these two ecosystems can be used together,, they embody different philosophies. Please stick to the tidyverse way of doing things for now. After you load library(tidyverse), you'll want to create "tibbles", which you can do with data_frame() (note _ instead of . from base R), or from a variety of data loading functions. In the current case, it's not necessary to do any conversion with data.table or data_frame.
You're learning a LOT at once! I see that you are using both tidyverse and data.table. While these two ecosystems can be used together,, they embody different philosophies. Please stick to the tidyverse way of doing things for now. After you load
library(tidyverse)
, you'll want to create "tibbles", which you can do withdata_frame()
(note_
instead of.
from base R), or from a variety of data loading functions. In the current case, it's not necessary to do any conversion with data.table or data_frame.