fgcz / rawDiag

Brings Orbitrap mass spectrometry data to life; multi-platform, fast and colorful R package
https://bioconductor.org/packages/rawDiag
36 stars 11 forks source link

language setting - digits separator is a comma and not a dot #33

Open cpanse opened 5 years ago

cpanse commented 5 years ago

https://github.com/fgcz/rawDiag/blob/6efdab041ea35b310fa2fb5d9323e3ea0be5fb3e/R/rawDiag.R#L469

possible solution

rv <- as.data.frame(lapply(rv, function(x)
    if(any(grepl(',', x))) as.numeric(gsub(',', '.', x)) else x), stringsAsFactors=FALSE)

or change the language settings

jlpocnpkikggaaam

thanks to Yann GUITTON