> I have two data frames and am running a loop to match similar rows.
> However the matching is not working well, and I suspect it is because of
> the different formats of columns. For example, in col. 1 of dataframe 1
> the nummbers are formatted as 1,2,3,4,5,6,7,8,9...31 However in col. 1
> dat
I would guess that your first column is factors. So an 'str' on the
dataframe to see what it is made of. You can convert them to numeric:
df[[1]] <- as.numeric(as.character(df[[1]]))
See if you get any NAs for non-numerics that may be in that column
On 4/7/08, Jamie Ledingham <[EMAIL PROTECTED
2 matches
Mail list logo