Displaying 1 result from an estimated 1 matches for "selectedrows".
Did you mean:
selected_rows
2010 Nov 18
3
problems subsetting
...le(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.vector(subset1$Dataset)
subset2<-distm[selectedrows,selectedrows]
also verified using:
rownames(subset2)%in% selectedrows
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[25] FALSE...