I have a csv dataset of 2M instances and about 1300 variables.
I tried different ways of importing the dataset in R on different platforms, but none worked. I tried read.csv, read_csv and fread, I tried both RStudio and VisualStudioCode.
My laptop has 7.9GB RAM, it is entirely occupied (100%) while running (no other windows are open nor are any programs running, besides taskmanager to keep an eye on the RAM, CPU and disks).
The one where I get the most information is read_csv (on both platforms), where it runs until about 66%, but then it stops running without throwing any error, it just stops. read_csv function halts here (VisualStudioCode), for a few hours, I tried this multiple times RStudio when running (sorry for the quality, couldn't use prt sc) RStudio when process seems to have halted
In RStudio I cannot load or open the csv file, if I try it crashes. In VisualStudioCode I can open the csv file and look at the different variables. I selected the ones I need for my research and tried to select those in the process of importing the dataset (I believed it selects before importing, so it would take significantly less resources and time, but I am not sure anymore at this moment):
my_data <- read_csv("G:/2005-2019_FinancialData_excl_D&GR_EDIT.csv", col_select = variables_to_use_2)
Why does my laptop stop running? Is my RAM too small? How can I resolve this issue?