I'm trying to import a single column from a .csv file as a character in the same way that id <- c("341432", "52312", "63432")
would do. However, when I do the following:
id <- idfromcsv[[1]]
R imports this as an integer when I try typeof(id)
. How do I import a single column from a .csv in the exact same way that id <- c("341432", "52312", "63432")
would do it?