You can specify the colClasse for only one columns.
So in your example you should use:
data <- read.csv('test.csv', colClasses=c("time"="character"))
More Related Contents:
- How to check if CSV file has a comma or a semicolon as separator?
- How to read data when some numbers contain commas as thousand separator?
- Read multiple CSV files into separate data frames
- ‘Incomplete final line’ warning when trying to read a .csv file into R
- How can you read a CSV file in R with different number of columns
- How to convert dataframe into time series?
- Trimming a huge (3.5 GB) csv file to read into R
- How to read in numbers with a comma as decimal separator?
- Convert comma separated string to numeric columns
- read.csv warning ‘EOF within quoted string’ prevents complete reading of file
- Prevent row names to be written to file when using write.csv
- read.csv doesn’t seem to detect factors in R 4.0.0
- Download a file from HTTPS using download.file()
- Reading multiple csv files from a folder into a single dataframe in R [duplicate]
- Error in file(file, “rt”) : cannot open the connection [duplicate]
- Read and rbind multiple csv files
- read.csv, header on first line, skip second line [duplicate]
- Combine several data frames in the global environment by row (rbind)
- R on Windows: character encoding hell
- Preserving large numbers
- How to get a .csv file into R?
- Is it possible to get the number of rows in a CSV file without opening it?
- How can I read the header but also skip lines – read.table()?
- How to append a whole dataframe to a CSV in R
- Trying to merge multiple csv files in R
- Save imported csv data in vector – R
- Calculate the mean of one column from several CSV files
- Reading a CSV file organized horizontally
- Importing “csv” file with multiple-character separator to R?
- How can I merge many data frames from csv files when the ID column is implied?