Re: [R] Replacing lists with NA

2012-01-31 Thread lg35
I think I sorted it myself (sorry). Whether this is the best way I dont know but it seemed to work. I changed the table to a matrix using the as.matrix command. Then used the as.numeric command on the matrix to change the lists to NA. Then I had to change the numeric matrix back to a matrix of

[R] Replacing lists with NA

2012-01-31 Thread lg35
Dear All, I'm new to R and my problem is this: I'm reading a table which has list objects such as this: col1 col2 col3 col4 1 354,5 2 2,3 6 5 NumericTable <- as.numeric(Table) This command doesn't work as it can't co