[R] how to impose the lines (Apply?)

Lisa Wang lisawang at uhnres.utoronto.ca
Fri Sep 30 23:22:46 CEST 2005


I have data like the following (38 patients) each have a lot of record
(some have more than others). I would like to plot time* pressure for
each patient in the same plot. I try to write a function and then split
the data by patients id and then sapply the function to the splited
list, but I have difficulty to link the function to the data point.
Please let me know if this is the rignt way to do it.
Thanks a lot

patients    time   pressure

1             1      24
1             2      34
2             2      45
2             2.5    50
2             1.5    30
3             8      9

Lisa Wang
Toronto, Ca
tel: 416 946 4501

-------------- next part --------------
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization.

More information about the R-help mailing list