Skip to content

Data indexing issue...

4 messages · HJ YAN, Ivan Calandra, jim holtman

#
Hi HJ,

Take a look at ?"&"; this is probably what you're looking for.

What you could also do is:
Calender[Calender$Day=='Wd' & Calender$Season=="Winter", ]  # notice the 
last comma

This will subset directly without using which(); it might be helpful to you.

HTH,
Ivan

--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra


Le 27/03/12 12:32, HJ YAN a ?crit :
#
Why not use 'split' and get all the groups at once:

result <- split(Calandra, list(Calandra$Day, Calandra$Season, drop = TRUE)

On Tue, Mar 27, 2012 at 7:43 AM, Ivan Calandra
<ivan.calandra at u-bourgogne.fr> wrote: