I am trying to read a csv file containing a column with scientific values.
My csv file looks like this:
My script code is the following:
data <- read.csv('data_physico_qpcr_analyse.csv',sep=";")
head(data)
The problem is that the column with the scientific values is formatted as character type and not as numeric.
I have attempted to convert the column with the following syntax:
data <- read.csv('data_physico_qpcr_analyse.csv',sep=";",colClasses=c("character","character","numeric","character","character","character",))
I have tried to convert the column to numeric in excel as well, but the comma always stays in the format.
How do I convert the cible__par_g column to numeric type using R?
Have you tried the following?:
options(scipen=999)
This usually returns the non-scientific values, but I am not sure if it will help your case when loading in from excel.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.