Displaying 12 results from an estimated 12 matches for "ramgad82".
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:
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
[answers inline]
On 18 August 2017 at 20:08, Dagmar <Ramgad82 at gmx.net> wrote:
>
> myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"),
> Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00",
> "25.09.2012 10:00"), Longitude=c("8...
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),
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 Oct 26
0
mean of a value of the last 2 hours using plyr (Thank you)
...ame2
> ddply(myframe2,.(ID),summarise,Last2=mean(tail(Hunger,2)))
> Felipe D. Carrillo
> Supervisory Fishery Biologist
> Department of the Interior
> US Fish & Wildlife Service
> California, USA
> http://www.fws.gov/redbluff/rbdd_jsmp.aspx
>
> *From:* Tagmarie <Ramgad82@gmx.net>
> *To:* r-help@r-project.org
> *Sent:* Thursday, October 25, 2012 7:35 AM
> *Subject:* [R] mean of a value of the last 2 hours
>
> Hello,
> I have a data frame somewhat like that:
>
> myframe <- data.frame (ID=c("Ernie", "...
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
2017 Aug 19
4
My very first loop!! I failed. May I have some start-up aid?
Dear all,
I have a data similar to this:
myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"),
Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00",
"25.09.2012 10:00"), Longitude=c("8.481","8.482","8.483","8.481"),
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, ....
Dear knowing people,
Dennis Murphy helped me a lot with my first loop last week. Thanks again - I
could have made more than 10 "Thank-You cakes" in the time it saved me!
But now I want to complicate the thing. My ideas didn't work. Let's see if
anyone is smarter ;-)
The following packages are needed:
library(adehabitatHR)
library(rgdal)
library(plyr)
# My dataframe looks
2017 Jun 30
0
Unit of cellsize in 'ascgen' from adehabitatMR? Spatialpoints unit?
Hello dear all,
A simple understanding question but I cannot find the answer anywhere.
I use coordiates (longitude, latitude) in my study. I created a
SpatialPoints class from those data and then I created a grid using the
'ascgen' command in the package 'adehabitatMR' like:
ascgen(xy,cellsize=40).
It worked out fine and my analysis is doing great. But I don't know what
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",
2012 Sep 26
2
average environmental data if AnimalID and Time is duplicated
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 this:
myframe <- data.frame (ID=c("Ernie", "Ernie", "Bert", "Bert"),
Timestamp=c("24.09.2012 09:00", "24.09.2012 09:00", "24.09.2012 10:00",