Displaying 2 results from an estimated 2 matches for "animal2test".
Did you mean:
animal1test
2013 Mar 15
1
Reassign values based on multiple conditions
...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(animal1test2){
collar[5]="animal1"
}else if(animal2test)
collar[1]="animal2"
}else "NA"
As I'...
2013 Mar 29
1
Create values based on a table of conditions
...ta.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(animal1test2){
collar[5]="animal1"
}else if(animal2test)
collar[1]="animal2"
}else "NA"
...e...