Both the data import function (here: read.csv()
) as well as a global option offer you to say stringsAsFactors=FALSE
which should fix this.
More Related Contents:
- Drop unused factor levels in a subsetted data frame
- Cleaning up factor levels (collapsing multiple levels/labels)
- Specify custom Date format for colClasses argument in read.table/read.csv
- ‘Incomplete final line’ warning when trying to read a .csv file into R
- Coerce multiple columns to factors at once
- Invalid multibyte string in read.csv
- Confusion between factor levels and factor labels
- How to read only lines that fulfil a condition from a csv into R?
- Replacing numbers within a range with a factor [duplicate]
- Specifying colClasses in the read.csv
- Why am I getting X. in my column names when reading a data frame?
- read.csv doesn’t seem to detect factors in R 4.0.0
- Colouring plot by factor in R
- Plotting with ggplot2: “Error: Discrete value supplied to continuous scale” on categorical y-axis
- Why does as.factor return a character when used inside apply?
- How to concatenate factors, without them being converted to integer level?
- How to change order of boxplots when using ggplot2?
- R error “sum not meaningful for factors”
- Factors in R: more than an annoyance?
- How to check if CSV file has a comma or a semicolon as separator?
- read.csv, header on first line, skip second line [duplicate]
- Idiom for ifelse-style recoding for multiple categories
- Directly creating dummy variable set in a sparse matrix in R
- Create frequency tables for multiple factor columns in R
- Combine several data frames in the global environment by row (rbind)
- Concatenate rows of a data frame
- Why use as.factor() instead of just factor()
- How can I read the header but also skip lines – read.table()?
- Convert Factor to Date/Time in R
- Weird error in R when importing (64-bit) integer with many digits