[R] Subsetting data by ID with different constraints

2014-04-04 Thread Lib Gray
Hello, I have a data set with many individuals all with multiple timed observations, and I would like to subset the data to exclude later timed observations. However, I would like to exclude different amounts of data for each individual. These individuals have two types of data: DV and dose. What

[R] Adding lines to complex xyplot

2014-02-25 Thread Lib Gray
Hello, I am branching out to xyplot for the first time, and I want to layer several complex xyplots. I have tried using panel functions, but so far I lose all complexity from the scatterplot. I would like to have the following things in the plot: 1) A plot of observation vs. modeled individual

[R] Least upper bound in PPS systematic sampling

2012-10-14 Thread Lib Gray
Hello, I'm trying to take a PPS systematic sample of a data set, and I've gotten stuck at the last point. I have selection numbers, and just need to pick out the units whose cumulative size are the least upper bounds of these numbers This is as close as I've gotten: selected-array(dim=c(97,4))

Re: [R] Subsetting problem data, 2

2012-07-20 Thread Lib Gray
: Hello, I guess so, and I can save you some typing. vars - sort(apply(expand.grid(L, 1:8, 1:2), 1, paste, collapse=)) Then use it and see the result. Rui Barradas Em 20-07-2012 00:00, Lib Gray escreveu: The variables are actually L11, L12, L21, L22, ... , L81, L82. Would just

Re: [R] Subsetting problem data, 2

2012-07-20 Thread Lib Gray
] and after the grep print nms to see if it's right. Rui Barradas Em 20-07-2012 00:33, Lib Gray escreveu: I'm getting this error message: nms-names(data)[grep(vars,**names(data))] Warning message: In grep(vars, names(data)) : argument 'pattern' has length 1 and only the first element

[R] Subsetting problem data, 2

2012-07-19 Thread Lib Gray
Hello, I didn't give enough information when I sent an query before, so I'm trying again with a more detailed explanation: In this data set, each patient has a different number of measured variables (they represent tumors, so some people had 2 tumors, some had 5, etc). The problem I have is that

[R] Subsetting problem data

2012-07-18 Thread Lib Gray
Hello, I need to subset my data to only look at the parts that have holes in it. I already have a formula to get rid of inconsistencies, but now I need to look only at the problem data to reconfigure it. In my data set where there are multiple cycles per patient, and I want to highlight the

[R] Comparing factor level measurments

2012-06-29 Thread Lib Gray
Hello, I have a data set where there are multiple cycles per patient, and I want to exclude from my data set instances where a variable was not measured every cycle. The difficulty is that the patients have different cycles; some have cycles 1,2, and 3, others only have 1 and 3 (and everything in

Re: [R] Combine subsets by factor level

2012-06-06 Thread Lib Gray
Yes, except that patients have different cycle numbers. Such as, one might have cycle 1,2,3, and another has 1,4,12. On Jun 6, 2012 12:54 PM, arun smartpink...@yahoo.com wrote: Hi Iglucia, I am not sure how your dataset looks like. Does it look similar to this:

Re: [R] Combine subsets by factor level

2012-06-06 Thread Lib Gray
, I assume that cycle will be in the dataset on the longformat and its value as NA. A.K. From: Lib Gray libgray3...@gmail.com To: arun smartpink...@yahoo.com Cc: R help r-help@r-project.org Sent: Wednesday, June 6, 2012 2:28 PM Subject: Re: [R] Combine