search for: pairid

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

Did you mean: paired
2012 Sep 27
3
Keep rows in a dataset if one value in a column is duplicated
...keep the pair observations, and was using the code below until it gave me the error " $ operator is invalid for atomic vectors". I am just beginning to learn R, so I apologize if the code is really rough. Basically I want to keep all the rows in the data set for which the value of "Pairiddups" is TRUE. How do I do it? And how do I get past the error? Thank you so much, Diana PairID<-c(Health2$pairid) duplicated(PairID, incomparables=TRUE, fromLast=TRUE) PairIDdup=duplicated(PairID) cbind(PairID, PairIDdup) PairID[which(PairIDdup)] PairIDDuplicates<-PairID%in%PairID[w...
2001 Sep 08
1
multiple fitted curves plot
Dear Rusers, How would I plot several (24) fitted curves (nonlinear least squares) within a single plot? To get the parameters I use: resff <- list() for (s in levels(PairID)) { resff[[s]] <- nls(Photo ~ SSasymp(Ci, Asym, lrc, c0), subset = (PairID == s)) } Is it also possible to plot two different groups (male, female) of curves in the same plot, with different style lines? Many thanks, Stewart -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...