search for: animal1test

Displaying 2 results from an estimated 2 matches for "animal1test".

Did you mean: animal1test2
2013 Mar 15
1
Reassign values based on multiple conditions
..._date 1 1 01/01/2013 03/01/2013 1 5 04/01/2013 06/01/2013 1 3 07/01/2013 09/01/2013 2 2 01/01/2013 03/01/2013 2 1 04/01/2013 06/01/2013 I have so far been able to make multi-conditional tests: animal1test<- (date>=01/01/13 && date<=03/01/13) animal1test2<- (date>=04/01/13 && date<=06/01/13) animal2test<- (date>=04/01/13 && date<=06/01/13) to use in an 'if else' formula: if(animal1test){ collar[1]="animal1" } else if(animal1t...
2013 Mar 29
1
Create values based on a table of conditions
...ot;factor")), .Names = c("animal", "collar", "start_date", "end_date"), class = "data.frame", row.names = c(NA, -76L)) I have so far been able to make some conditional tests, though I would need to do this for all 76 animals in the study... animal1test<- (date>=01/01/13 && date<=03/01/13) animal1test2<- (date>=04/01/13 && date<=06/01/13) animal2test<- (date>=04/01/13 && date<=06/01/13) to use in a giant'if else' formula: if(animal1test){ collar[1]="animal1" } else if(anim...