[R] Problems with numeric variable containing ? values

From: <ftorrei2_at_uiuc.edu>
Date: Thu 11 Aug 2005 - 00:02:01 EST


I have a problem with the values for one column in a table. The variable represented in this column is numeric (I get TRUE when I ask is.numeric(x)). However, the values are listed ordinally and with row numbers as values, not with the ones that appear in the table. Some rows have an undefined value for this column, which appears as ? in the table (this is not an error). I wonder whether these undefined values are causing the problem.
I need to extract a subset from this column with all rows not having '?' and then use the subset for a number if analysis. So far this is not possible since the subset does not have the real values, but the row numbers mentioned above. Any help?

Thanks in advance,
Francisco Torreira
Francisco Torreira
Spanish, Italian and Portuguese
Univ. of Illinois at Urbana-Champaign
707 South Mathews Aven.
4031 FLB
Urbana, IL, 61801

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Aug 11 00:06:37 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:45 EST