statistics - How can I get R to read a column of numbers in exponential notation? -
i'm trying use r first time make histogram. have file containing 1 column of 100,000 floating-point numbers ranging in size 8.85543e-07 1.15469e-03. r apparently doesn't recognize them floating-point numbers because of 'e' notation. how can r read them. thanks!
r can read such numbers fine; there must value in there that's causing problem.
if read in data using read.table
/read.csv
/read.delim
, can convert data numeric if didn't import correctly.
x <- as.numeric(as.character(df$x))
where df
name of data frame, , x
column want.
Comments
Post a Comment