search for: f_simmatrix

Displaying 1 result from an estimated 1 matches for "f_simmatrix".

2010 Nov 18
3
problems subsetting
...uot; or "&" , for isntance : subset1<-subset1[ (subset1$Class == 1)&& (subset1$Category == 1),] but it returns an empty data frame. Anyway, the main problem is Problem2: I have a second data frame - a square matrix (rownames == colnames), distm: distm<-read.table(file=f_simmatrix, sep = ","); what I want is select ONLY the columns and rows entries matching the above subset1: subset2<-distm[subset1$Dataset,subset1$Dataset] returns a matrix of correct size, but with incorrect entries (established by visual inspection). this is the same as: selectedrows<-as...