On Apr 22, 2011, at 18:50 , Douglas Bates wrote:
> What about reading a deck of punched cards with the cards statement in
> SAS? How do you propose to do that in R?
Actually, with the new text= argument to read.table in r-devel, it should be
rather easy (given that you can find a card-punc
On Fri, Apr 22, 2011 at 11:27 AM, Gabor Grothendieck
wrote:
> Since this involves time series within each id group I thought it
> would be interesting to see if this could be formulated using
> zoo series. The approach is to read it in, and convert it to a long
> form by just stacking the start
On Thu, Apr 21, 2011 at 5:34 PM, peter dalgaard wrote:
>
> On Apr 21, 2011, at 16:00 , Bert Gunter wrote:
>
>> Folks:
>>
>> It is perhaps worth noting that this is probably a Type III error: right
>> answer to the wrong question. The right question would be: what data
>> structures and analysis s
Since this involves time series within each id group I thought it
would be interesting to see if this could be formulated using
zoo series. The approach is to read it in, and convert it to a long
form by just stacking the start and stop times in a data frame
and converting that to zoo using the c
Hi Paul,
On Fri, Apr 22, 2011 at 10:21 AM, Paul Miller wrote:
>
> Hello Everyone,
>
> It seems to me that Bert’s assertion about my question is not entirely
> accurate.
>
> In my question, I wrote:
>
> I'm hearing in some places that R may not be able to accomplish all of the
> data manipulatio
On Apr 21, 2011, at 16:00 , Bert Gunter wrote:
> Folks:
>
> It is perhaps worth noting that this is probably a Type III error: right
> answer to the wrong question. The right question would be: what data
> structures and analysis strategy are appropriate in R? As usual, different
> language arc
Folks:
It is perhaps worth noting that this is probably a Type III error: right
answer to the wrong question. The right question would be: what data
structures and analysis strategy are appropriate in R? As usual, different
language architectures mean that different paradigms should be used to be
Oops, I missed the HAART part. Fortunately that translates straightforwardly:
n.dat$HAART <- with(n.dat, ifelse((NRTI >= 3 & NNRTI==0 & PI==0) |
(NRTI >= 2 & (NNRTI >= 1 | PI >= 1)) |
(NRTI == 1 & NNRTI >= 1 & PI >= 1),
I think this is kind of like asking "will your Land Rover make it up
my driveway?", but I'll assume the question was asked in all
seriousness.
Here is one solution:
## Read in test data;
dat <- read.table(textConnection("iddrug start stop
1004NRTI 07/24/9501/05/99
[*** PLEASE NOTE: I am sending this message on behalf of
Paul Miller:
Paul Miller
(to whom this message has also been copied). He has been
trying to send it, but it has never got through. Please
do not reply to me, but either to the list and/or to Paul
at that address ***]
=
10 matches
Mail list logo