Displaying 5 results from an estimated 5 matches for "myframestime".
2012 Nov 27
5
loop with date
...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 11:00"),
Speed=c(1,1,2,5,1,6))
myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp),
"%d.%m.%Y %H:%M"), tz="GMT")
myframe2 <- cbind (myframe,myframestime)
myframe2$Timestamp <- NULL
myframe2
I want to construct a loop for every day, i.e. for each day I want to do
some calculations.
(I know in...
2012 Oct 25
2
mean of a value of the last 2 hours
...a frame somewhat like that:
myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert",
"Bert"), Timestamp=c("24.09.2012 09:00", "24.09.2012 10:00", "24.09.2012
11:00"), Hunger=c(1,1,1,2,2,1) )
myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp),
"%d.%m.%Y %H:%M"), tz="GMT")
myframe2 <- cbind (myframe,myframestime)
myframe2$Timestamp <- NULL
myframe2
I want to add an additional column at the right and get in each row a value
which shows the mean of &quo...
2012 Oct 26
0
mean of a value of the last 2 hours using plyr (Thank you)
...; myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert",
> "Bert"), Timestamp=c("24.09.2012 09:00", "24.09.2012 10:00", "24.09.2012
> 11:00"), Hunger=c(1,1,1,2,2,1) )
> myframe
> myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp),
> "%d.%m.%Y %H:%M"), tz="GMT")
> myframestime
> myframe2 <- cbind (myframe,myframestime)
> myframe2
> ddply(myframe2,.(ID),summarise,Last2=mean(tail(Hunger,2)))
> Felipe D. Carrillo
> Supervisory...
2012 Dec 07
0
apply a function at: dateX, dateX+1, dateX+2, ....
...722,
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
myframesxy <- project(cbind(myframe2$Longitude,myframe2$Latitude),"+proj=utm
+zone=32 +ellps=WGS84")...
2012 Dec 17
2
calculate a "rolling mean" including standard deviation
..."24.09.2012 09:00", "24.09.2012 10:00",
"24.09.2012 11:00",
"24.09.2012 12:00", "24.09.2012 13:00",
"24.09.2012 14:00"),
distance =c(9,9,9,4,5,9,4,5,5 ) )
myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp),
"%d.%m.%Y %H:%M"), tz="GMT")
myframe2 <- cbind (myframestime, myframe)
myframe2$Timestamp <- NULL
myframe2
This is what I want to do:
1.) calculate the mean and the standard deviation for "distance"...