Hello,

I looked in the R-help but could not find an archive addressing the
following. I would like to convert a character to numeric after reading a
file with RDS extension. After using as.numeric, I checked if it is
numeric. It was not converted. Please help.

Here is my code

>Report <- readRDS(file="RDS/Report.RDS")
> Report[1:2,]
                    dive_id date         time      species         count
size
2008-08-06 08:49:00 " 1"    "08/06/2008" "8:49:00" "S. OYT"        "15"
"6"
2008-08-06 08:49:00 " 1"    "08/06/2008" "8:49:00" "S. atrovirens" "1"
"23"
                    site      depth level TRANSECT VIS_M TEMP_C swell_URSKI
2008-08-06 08:49:00 "Hopkins" "15"  "B"   "1"      "3.5" "13.9" "1.0686708"
2008-08-06 08:49:00 "Hopkins" "15"  "B"   "1"      "3.5" "13.9" "1.0686708"
> Report$count<-as.numeric(Report$count)
Warning message:
In as.double.xts(fishReport$count) : NAs introduced by coercion
>is.numeric(Report$count)
[1] FALSE
Thank you,
Y

	[[alternative HTML version deleted]]

