0

I want the program to read the data as double float but when I use as.double and as.numeric it changes the data itself. Original data Original data is in fractions

After applying as.double to each column separately and combining to form a dataframe, the data starts looking like this Changed data values after applying as. double()

Shikha Verma
  • 1
  • 1
  • 1

1 Answers1

1

Your data are probably factor (not character). To convert column x to numeric use as.numeric(levels(x))[x]

This can also help.

nghauran
  • 6,648
  • 2
  • 20
  • 29