search for: covnew

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

Did you mean: comnew
2006 Oct 02
1
separation depending on equal contents in more than one field
...(1,2,3,4,4,5), c=1:2)) attach(obs) In reality its about 1 million rows. Some of the datasets have same contents in col a and! b like row 4 and 5. I want to do some calculations on col c within the duplicated rows and merge them afterwards: layer <- function(x) round((1-prod(1-x/100))*100,0) (covnew <- aggregate(c, list(a=a, b=b), layer)) This works fine, but not with 1 mill. rows because of memory space limitations. So I thought to split the dataframe into the majority of unique rows on one hand and all duplicated rows on the other: With subset(obs, a %in% a[duplicated(a)]) and !a resp...