search for: idlength

Displaying 2 results from an estimated 2 matches for "idlength".

2012 Aug 15
2
to remove columns and rows
Dear, I am using R I'm trying to identify and remove columns and rows in a data frame that are has elements equals. For example in dataframe below. The columns 1, 2,3,4,5 ,6 and 10 (file1) has elements equal then should be removed. How can I ask R to remove those columns with same elements in new dataframe (file2) to result a matrix as follows: file1 1 0 2 2 1 1 5 1 1 1 1 0
2012 Aug 25
2
remove column
...1 1 0 2 2 1 0 5 0 2 1 1 0 2 2 1 1 5 1 0 1 ",sep="",header=FALSE) the result after the filter will be 0 2 2 1 5 1 1 0 2 2 1 5 1 1 0 2 2 2 5 2 2 0 2 2 1 5 1 1 0 2 2 0 5 0 2 0 2 2 1 5 1 0 I used this commands idlength<-sapply(file,function(x) length(unique(x)) ), but came an error message: caught segfault *** address 0x4, cause 'memory not mapped' *My question: is it possible to remove the all columns from above file to *achieve* the desired result?* * * * **Thank you for help* Kate Dres...