Displaying 5 results from an estimated 5 matches for "animalid".
2012 Sep 26
2
average environmental data if AnimalID and Time is duplicated
...I tried something like
Meanframe<- by(myframe[, 3:4], duplicated(myframe$ID,
Zusatzdaten3$Timestamp) == TRUE, mean)
but it doesn't work and I guess that it is also totally crap ;-)
Tagmarie
--
View this message in context: http://r.789695.n4.nabble.com/average-environmental-data-if-AnimalID-and-Time-is-duplicated-tp4644218.html
Sent from the R help mailing list archive at Nabble.com.
2012 Dec 07
0
apply a function at: dateX, dateX+1, dateX+2, ....
...quot;,
"26.09.2012 11:00"),
Longitude=c(8.91617, 8.92700, 8.92711, 8.92722,
8.92733, 8.92744,8.92800, 8.92900, 8.93000 ),
Latitude=c(54.5485, 54.5410, 54.5412, 54.5413,
54.5414, 54.5424,54.5500, 54.5600, 54.5700 ) ,
AnimalID= c(rep("Ernie")))
head(myframe)
myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp),
"%d.%m.%Y %H:%M"), tz="GMT")
myframe2 <- cbind (myframe,myframestime)
myframe2$Timestamp <- NULL
myf...
2012 Mar 07
1
SELECT CASE in RODBC
...use it cannot convert the "event" variable from the
first SELECT to an integer variable...
Any suggestions?
Thanks - Bodil
I use the following code:
raw<-sqlQuery(.zz,
'SELECT TOP(100)PERCENT
Animal.Herdnumber AS herd, Animal.ChrNumber AS chrNr,
Animal.AnimalNumber AS animalid, Animal.DateOfBirth AS datebirth,
AnimalStatus.Code AS codestatus, AnimalStatus.Description AS
animalstatus,
AnimalTransfer.Date AS date,
AnimalTransferType.Code AS codeevent, AnimalTransferType.Description AS
event
FROM
Animal
FULL JOIN
AnimalTransfer ON Animal.AnimalNumber...
2012 Sep 17
6
count NAs per week
Even though I work with R since a year or so I still struggle with simple
problems. I hope someone can help me with this. Been trying for days and am
a little frustrated now.
I have a data frame somewhat like the one bellow:
dattrial<-data.frame(a=c(1,NA,rnorm(4,10)), Week=c(3,3,3,4,4,4))
I want to know how many NAs I have in week 3 and in week 4.
--
View this message in context:
2012 Nov 27
5
loop with date
Hello,
I tried to construct my very first loop today and completly failed :-(
Maybe someone can help me?
I have a dataframe somewhat like this one:
myframe <- data.frame (Timestamp=c("24.09.2012 09:00", "24.09.2012 10:00",
"24.09.2012 11:00",
"25.09.2012 09:00", "25.09.2012 10:00",
"25.09.2012