search for: prrsvac

Displaying 4 results from an estimated 4 matches for "prrsvac".

2009 Feb 13
2
extracting parts of words or extraxting letter to use in ifelse-func.
Hello I want to make some variables with the ifelse-function, but i don't know how to do it. I want to make these five variables; b2$PRRSvac <- ifelse(b2$status=='A' | b2$status=='Aa',1,0) b2$PRRSdk <- ifelse(b2$status=='B' | b2$status=='Bb',1,0) b2$sanVac <- ifelse(b2$status=='C' | b2$status=='sanAa',1,0) b2$sanDk <- ifelse(b2$status=='D' | b2$status=='sanBb...
2009 Jan 29
4
Text in a character vector to indicate "ifelse" argument
Hello I have a data set that looks like this; > b2 dato chr status PRRSvac PRRSsanVac PRRSsanDk PRRSdk 33 2007-12-03 090432 R?d SPF 34 2007-02-09 090432 R?d SPF+sanDK 35 2002-12-17 090432 R?d SPF+DK 36 2002-11-27 090432 R?d SPF+sanDK 37 2002-07-23 090432 R?d S...
2009 Feb 13
0
Odp: Odp: extracting parts of words or extraxting letter to use in ifelse-func.
...38:31: > > > >> > >> Hello > >> > >> I want to make some variables with the ifelse-function, but i don't know > > how > >> to do it. > >> > >> I want to make these five variables; > >> > >> b2$PRRSvac <- ifelse(b2$status=='A' | b2$status=='Aa',1,0) > >> b2$PRRSdk <- ifelse(b2$status=='B' | b2$status=='Bb',1,0) > >> b2$sanVac <- ifelse(b2$status=='C' | b2$status=='sanAa',1,0) > >> b2$sanDk <- ifelse(b2$statu...
2009 Jan 28
2
t.test in a loop
Hi All, I've been having a little trouble with creating a loop that will run a a series of t.tests for inspection, Below is the code i've tried, and some checks i've looked at. I've used the get(paste()) idea as i was told previously that the use of the eval should try and be avoided. I've run a single syntax to check that my systax is correct and works without any problems