I am using xlsx
library in R to read a excel sheet. I used the following command. My data are numeric/floats with NA
for missing values and first column as name (string/character type). However, all the column are of type character
and I could not find if I can somehow specify NA
values as missing values. Any suggestions on how to deal with the issue?
df=read.xlsx(file0, sheetName = 'sheet1', as.data.frame = TRUE,
header = TRUE, use.value.labels=FALSE, stringsAsFactors=FALSE)