[R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Tagmarie
includes the outliners there. I saw it on a poster once. I can't find the command though. Does anyone know it? Best regards, Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/Boxplot-Plot-outliners-in-a-different-window-tp4712869.html Sent from the R help mailing

[R] count NAs per week

2012-09-17 Thread Tagmarie
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 wan

Re: [R] count NAs per week

2012-09-17 Thread Tagmarie
Thank you Michael, that worked perfectly! Now I wonder, if it is possible to break my data further apart and put it together again. Assume I include a column for an ID in the data frame like this: dattrial2<-data.frame(a=c(1,NA,NA,NA,2,3), Week=c(3,3,3,4,4,4), AnimalID=c("Ernie","Bert", "Ernie

Re: [R] count NAs per week

2012-09-18 Thread Tagmarie
ave a great day, Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/count-NAs-per-week-tp4643351p4643486.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] add a data frame to my data frame

2012-09-25 Thread Tagmarie
Hello, Once again I feel so dumb. Can anyone help me? I have a data frame somewhat like that: myframe <- data.frame (ID=c("Ernie", "Ernie", "Bert", "Bert"), Timestamp=c("24.09.2012 09:00", "25.09.2012 09:00", "24.09.2012 10:00", "25.09.2012 10:00"), Hunger=c("1","1","2","2") ) myframestime <- a

Re: [R] add a data frame to my data frame

2012-09-26 Thread Tagmarie
Thanks to all of you. The three advices helped me a lot - solved my problem and thank you Sarah for the hint with rseek.org. Didn't know that one. Have a great day, Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/add-a-data-frame-to-my-data-frame-tp4644122p46

[R] average environmental data if AnimalID and Time is duplicated

2012-09-26 Thread Tagmarie
for Ernie I do have different data for 24.09.2012 9:00. Now I would like to average the Hunger and Temp value for 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,

Re: [R] average environmental data if AnimalID and Time is duplicated

2012-09-26 Thread Tagmarie
Thank you! Am 26.09.2012 13:31, schrieb Jim Lemon [via R]: > On 09/26/2012 08:53 PM, Tagmarie wrote: > > > Hello, > > I tried for about three hours now to solve this problem but I can't > figure > > it out. I am sure someone knows how do it. At least I hope

[R] mean of a value of the last 2 hours

2012-10-25 Thread Tagmarie
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), "%

Re: [R] mean of a value of the last 2 hours using plyr (Thank you)

2012-10-26 Thread Tagmarie
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&quo

[R] export home range image to google earth (alternatively a shapefile)

2012-11-07 Thread Tagmarie
I calculated a homerange using the adehabitatHR-packaged, "plotted" it and now I want to export the image (image with the contourlines) to google maps. I just don't get how to do that. Here is something like my image: library(adehabitatHR) kudl <- kernelUD(puechabonsp$relocs[, 1], h = "LSC

[R] if between 500-600 give 550

2012-11-09 Thread Tagmarie
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 l

[R] sum per day

2012-11-27 Thread Tagmarie
the sum of "Hunger" for each day. In the end I want something which looks like the following dataframe: myoutcome <- data.frame(Timestamp=c("24.09.2012", "25.09.2012"), sumHunger=c(3, 5)) Does anyone know how to do that? That would be very helpful and to all peop

[R] loop with date

2012-11-27 Thread Tagmarie
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:0

Re: [R] loop with date

2012-11-27 Thread Tagmarie
Ok, sorry, I thought the more complex details might be confusing and nobody might answer. Here is something which looks more like my real dataframe and also what I want to do with it: That's my data frame: myframe <- data.frame (Timestamp=c("24.09.2012 09:00", "24.09.2012 10:00", "24.09.2012 1

Re: [R] loop with date

2012-11-27 Thread Tagmarie
Sorry again, project is part of the rgdal package. Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/loop-with-date-tp4650961p4651005.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] apply a function at: dateX, dateX+1, dateX+2, ....

2012-12-07 Thread Tagmarie
I want to do now is to calculate the homerange for Animal "Ernie" for two consecutive days. # I.e. I want a home range for the timespan 24. to 25. Septemberand the # home range for the timespan 25. to 26. September. Each day is included several times in the calculations. # It would be

[R] calculate a "rolling mean" including standard deviation

2012-12-17 Thread Tagmarie
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.0

Re: [R] calculate a "rolling mean" including standard deviation

2012-12-17 Thread Tagmarie
Now I played around in Excel for the last two hours or so and solved my problem there. I know it is not really liked here but it worked. So I do not really need your help on this problem. If anyone knows on how to do it anyway I'd be very happy though!!! Nobody taught me more about R than this m

[R] count data without NA in certain time intervals and plot it

2012-06-16 Thread Tagmarie
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

Re: [R] count data without NA in certain time intervals and plot it

2012-06-17 Thread Tagmarie
Thank you Arun for your time! Your idea is maybe only the first step to what I want but it was nevertheless a new tool for me and interessing to learn. I added a "week"-column to your data set: dattrial<-data.frame(a=c(1,NA,rnorm(4,10)), Week=c(3,3,3,4,4,4)) I am looking for a way to count the

Re: [R] count data without NA in certain time intervals and plot it

2012-06-17 Thread Tagmarie
Great! That works! Thank you Rui! I would have spent days (which I don't have left before handing my report in) getting there by myself! Have a great rest-weekend! -- View this message in context: http://r.789695.n4.nabble.com/count-data-without-NA-in-certain-time-intervals-and-plot-it-tp46336