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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -