Links
Archives
- 01/01/2003 - 02/01/2003
- 02/01/2003 - 03/01/2003
- 03/01/2003 - 04/01/2003
- 05/01/2003 - 06/01/2003
- 06/01/2003 - 07/01/2003
- 09/01/2003 - 10/01/2003
- 10/01/2003 - 11/01/2003
- 11/01/2003 - 12/01/2003
- 01/01/2004 - 02/01/2004
- 02/01/2004 - 03/01/2004
- 05/01/2004 - 06/01/2004
- 06/01/2004 - 07/01/2004
- 07/01/2004 - 08/01/2004
- 10/01/2004 - 11/01/2004
- 11/01/2004 - 12/01/2004
- 12/01/2004 - 01/01/2005
Notes on R statistics and programming language
Tuesday, January 21, 2003
Good introduction to R http://hesweb1.med.virginia.edu/biostat/s/Design.html
Friday, January 17, 2003
Learned two things about R today:
1. How to subset a dataframe.
Either use the subset function, or use vector-subsetting notation. The latter means x[(condition),] and the output datafame will include all rows (hence the comma) where condition holds. subset() is obvious and documented.
2. How to extract from a list. The lapply and sapply functions extract apply functions to the elements of a list. For example sapply(Lst,function(x)x[1]) will extract the first item from each vector in list Lst.
1. How to subset a dataframe.
Either use the subset function, or use vector-subsetting notation. The latter means x[(condition),] and the output datafame will include all rows (hence the comma) where condition holds. subset() is obvious and documented.
2. How to extract from a list. The lapply and sapply functions extract apply functions to the elements of a list. For example sapply(Lst,function(x)x[1]) will extract the first item from each vector in list Lst.