- 1. subscripting factors (score: 1)
- Author: <simona.costanzo@ubs.com>
- Date: Thu, 8 Sep 2005 09:22:33 +0100
- in a data.frame of the form X1 X2 1 A 1 2 A 2 3 B 3 4 C 4 I would like to extract elements of X2, with X1="A". Where X1 is a factor and X2 is a numeric vector. Your help is very much appreciated Tha
- /archives/html/s-news/2005-09/msg00020.html (7,780 bytes)
- 2. FW: subscripting factors (score: 1)
- Author: <simona.costanzo@ubs.com>
- Date: Thu, 8 Sep 2005 09:40:21 +0100
- Thanks to all who respoded so promptly. I received similar answers... here is one of them Simona, If your data frame is named DF then DF$X2[DF$X1=="A"] Dimitrios Chalvatzis Risk Analyst Energy Wholes
- /archives/html/s-news/2005-09/msg00021.html (11,106 bytes)
This search system is powered by
Namazu