[R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Tagmarie
and 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 list

[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.09.2012 12:00,

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

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

2012-12-07 Thread Tagmarie
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

[R] sum per day

2012-11-27 Thread Tagmarie
- 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 people who are willing to help me: Thank you in advance! Best regards, Tagmarie -- View this message in context: http://r.789695.n4.nabble.com/sum-per

[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:00,

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 11:00,

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] 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

[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 = LSCV)

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, Bert, Bert, Bert), Timestamp=c(24.09.2012 09:00

[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), %d.%m.%Y %H:%M),

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-tp4644122p4644206

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

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

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 so. I have a data frame somewhat like

[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 - as.POSIXct

Re: [R] count NAs per week

2012-09-18 Thread Tagmarie
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/mailman

[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

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 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:

[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