Re: [R] Remove duplicates from a data frame but with some special requirements

2009-12-17 Thread gcam
t; (ie you specify input and desired output), but indexing with a logical > vector is probably going to be the solution. > > Best, > Gray > > On Wed, Dec 16, 2009 at 7:55 PM, gcam wrote: >> >> Hi all. >> >> So I have a data frame with multiple columns/v

[R] Remove duplicates from a data frame but with some special requirements

2009-12-16 Thread gcam
Hi all. So I have a data frame with multiple columns/variables. The first variable is a major sample name for which there are some sub-samples. Currently I have used the following command to remove the duplicates: Samps_working<-Samps[-c(which(duplicated(Samps$ESR_Ref_edit))),] This removes a

[R] Advice - get my function to work with a list

2009-12-08 Thread gcam
I really need help altering a function I have written. The function currently performs a specific task on a dataframe. I now wish to be able to use it with a splitting function by either passing it a pre-split dataframe or by being able to designate the splitting factor. Can anyone advise? Her