I have a csv file with some columns, each column has values written in different ways, such as "Car" and "CAR". I wish to convert all values to lowercase, I'm using this code:
data <- read.table(pipe("cut -d' ' -f6 iis_raw.csv"))
data <- tolower(data)
But the result is a bunch of values like:
70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 61, 61, 61, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 70, 70, 70)"
What Am I doing wrong?