[R] Remove rows in a matrix that match rows in another matrix

2009-12-19 Thread Raymond Danner
Dear R Community, The following seems like a simple problem, but I've been stuck on it for some time, with no luck using matching or subsetting functions. I'm trying to remove the rows from a large matrix that match rows in another large matrix. A (small scale) example: col1<-c("A", "B", "C", "

[R] Generating permutations that always include one specific element

2009-12-19 Thread Raymond Danner
Dear R community, I am trying to create a matrix of permutations of a vector: bands <- c("AL", "B", "DB", "DG", "G", "K", "LB", "LG", "MG", "O", "P", "PI", "PK", "PU", "R", "V", "W", "Y") Each permutation must be 4 characters long. permutations() from the gtools package does this easy enough: pos

[R] Remove single entries

2009-09-28 Thread Raymond Danner
Dear Community, I have a data set with two columns, bird number and mass. Individual birds were captured 1-13 times and weighed each time. I would like to remove those individuals that were captured only once, so that I can assess mass variability per bird. I¹ve tried many approaches with no su