search for: uncoerc

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

Did you mean: uncoerce
2012 Jun 24
1
uncoerce.... to get real number instead of integer?
Dear R community, > #I'm using scan() to extract a real number from a file with a complex structure: 156689504.378. > #My problem is that the number is coerced into an integer.  > #Do you have any ideas for me on how to "uncoerce"?  Here is my code and the output: > #I'm using R version 2.15.0 (2012-03-30) > > net3 <- patient.net3 <- scan("C:/temp/samplePHIoutput.txt", skip=23, what=list(character(0), character(0), numeric(0))) Read 1 record > net3[3] [[1]] [1] 156689504 > > #I...