Re: [R] R first.id last.id function error

2007-09-08 Thread Gerard Smits
2 TRUE FALSE >11 4 12 6FALSE FALSE >12 4 13 5FALSETRUE >13 5 21 7 TRUE FALSE >14 5 22 8FALSE FALSE >15 5 23 5FALSETRUE >16 6 21 2 TRUE FALSE >17 6 22 4FALSE FALSE >18 6 2

[R] R first.id last.id function error

2007-09-07 Thread Gerard Smits
Hi R users, I have a test dataframe ("file1," shown below) for which I am trying to create a flag for the first and last ID record (equivalent to SAS first.id and last.id variables. Dump of file1: > file1 id rx week dv1 1 1 11 1 2 1 12 1 3 1 13 2 4 2 11

[R] Trouble figuring messages from rcspline.plot

2007-03-04 Thread Gerard Smits
requirePackage("Design") : This function requires theDesignpackage In addition: Warning message: there is no package called 'package' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical = TRUE, Should I be using an additional package? Any suggestions will b

[R] something missing in summary()

2007-02-15 Thread Gerard Smits
I just noticed that two key pieces of information are not given by the summary() command: N and SD. we are given the N missing, but not the converse. I know these summary value can be obtained easy, but can't understand why these two pieces of information are not provided with the other inf

Re: [R] sequential processing

2007-01-22 Thread Gerard Smits
earch >the list for similar questions, for example >http://thread.gmane.org/gmane.comp.lang.r.general/44332/focus=44343 > > >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of Gerard Smits >>Sent: Sunday, January 21, 2007

[R] sequential processing

2007-01-21 Thread Gerard Smits
looking for the equivalent of SAS _n_ (I realize that I can use a variant of which to identify an index value) as well as useful SAS features such as first., last., retain, etc. Any help with this conversion appreciated. Thanks, Gerard Smits __ R-help