I am having problems reading a CSV file that has a number in a strange format. I would like to read the value as a number into R.
I am reading the CSV file using read.csv normally into a DF.
The problem is that one of the columns read the value as a factor variable.
Example: CSV file:
713,78-;713,78;577,41-;577,41;123,82-;123,82
After I read it into a dataframe the result is:
[1] 713,78- 713,78 577,41- 577,41 123,82- 123,82
6 Levels: 713,78- 713,78 577,41- 577,41 123,82- 123,82
In the case illustrated above, I would like the following output:
[1] -713.78 713.78 -577.41 577.41 -123.82 123.82
Where the column number would be class Numeric.