I am reading a csv file into R, while doing this it is converting interger numbers into characters.
I tried to convert it back to numeric as below
as.numeric(factor(x))
but R transformed the numbers I had in positive integers while they were not to begin with.
I tried both adding
stringsAsFactors = F
and
dec="."
when I am importing the data, but also this did not work