search for: tagmari

Displaying 11 results from an estimated 11 matches for "tagmari".

Did you mean: tagmarie
2012 Sep 26
2
average environmental data if AnimalID and Time is duplicated
...or this timestamp to get a data frame without duplicated Times and the respective average Temp and Hunger. 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 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
2012 Nov 09
3
if between 500-600 give 550
I have a data frame somewhat like this: myframe <- data.frame (ID=c(2,3,4,5), Hunger =c(415,452,550,318 )) myframe Now I would like to add a column to the right which summarizes the values for Hunger somewhat to reduce the number of values: If the values for Hunger are between 300-400 I would like to insert the number 350, between 400-500 insert 450 between 500-600 insert 550 Does
2012 Oct 26
0
mean of a value of the last 2 hours using plyr (Thank you)
Hi dear three helpers, Thanks a lot! Your solutions worked great. Again I learned a lot. Tagmarie Am 25.10.2012 18:36, schrieb Felipe Carrillo: > Another option using plyr, > library(plyr) > myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert", > "Bert"), Timestamp=c("24.09.2012 09:00", &quot...
2012 Oct 25
2
mean of a value of the last 2 hours
Hello, I have a data 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),
2017 Aug 19
4
My very first loop!! I failed. May I have some start-up aid?
...good example. Sorry about that. But I guess you know what I mean. # Because I wish to run the functions three times I do want a data frame (or matrix) in the end, which includes the results (kernel areas): That means 12 columns and the three lines. # How do I do that? Many thanks in advance, Tagmarie
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
...ou know what I mean. > > # Because I wish to run the functions three times I do want a data frame (or > matrix) in the end, which includes the results (kernel areas): That means 12 > columns and the three lines. > > # How do I do that? > > Many thanks in advance, > > Tagmarie > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal...
2012 Jun 16
3
count data without NA in certain time intervals and plot it
Hello, I'm quite new to R and still spend hours trying to figure out single things so I hope nobody rolls his eyes over my question. I have a data set over time and converted it to the POSTIXct format. I added a column in the data set for the week and the month. I try to get a plot which shows the weeks on the x-axis and the number of datasets without NAs on the y-axis. That doesn't
2012 Dec 07
0
apply a function at: dateX, dateX+1, dateX+2, ....
...mberand the # home range for the timespan 25. to 26. September. Each day is included several times in the calculations. # It would be easy to do for the example above by hand (subset) but not for my dataset including a whole year. # does anyone know how to do that? # It would be very helpful! Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/apply-a-function-at-dateX-dateX-1-dateX-2-tp4652488.html Sent from the R help mailing list archive at Nabble.com.
2012 Dec 17
2
calculate a "rolling mean" including standard deviation
Hello everyone, I have a data frame somewhat like this one: myframe <- data.frame (Timestamp=c( "24.09.2012 06:00", "24.09.2012 07:00", "24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00", "24.09.2012 11:00", "24.09.2012 12:00",