search for: whatigot

Displaying 1 result from an estimated 1 matches for "whatigot".

2011 Oct 06
1
Issue with read.csv treatment of numerics enclosed in quotes (and a confession)
...es around values like the above, and reads them in as "numeric".  So R strips the valuable leading zeros and converts my "00765288071" to 765288071.  I've developed a work-arounds to this involving the use of the following: > whatIneed <- "00000000000" > whatIgot <- 765288071 > whatIgot <- as.character(whatIgot) > substr(whatIneed, 1+nchar(whatIneed)-nchar(whatIgot), nchar(whatIneed)) <- whatIgot > whatIneed [1] "00765288071" My question is, am I missing something in how I'm writing my read.csv statement that would indicate...