Displaying 1 result from an estimated 1 matches for "samplephioutput".
2012 Jun 24
1
uncoerce.... to get real number instead of integer?
...ructure: 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 need the full number in net[3] and I need the output in vector form, so I used unlist().
> workfile <- unlist(net3)
>
> workfile[3]
[1] "156689504.3...