2
How to import a base of 20 million lines with 24 variables. There are two variables that are string. The base is importing these two variables as Numeric and excluding the zeros at the beginning. I am using the following command:
base <-read.csv("base.csv",header = TRUE, sep=";", dec="." , quote = "", encoding = "UTF-8", stringsAs = FALSE)
Thank you! This function worked and in the end it showed which lines are in trouble. Find a string that started with "" and ended the entire line from that name into a single variable. This read_csv2 function is bundled with the 'Import Dataset' command in Rstudio’s Environment. Clicking there he makes a preview of the first 200 lines and you can modify which type of variable you want. Very practical!
– Natalia Soares
@Nataliasoares if you have chosen this answer It is the tick to choose and close the question.
– Flavio Barros