Displaying 20 results from an estimated 700 matches similar to: "count NAs per week"
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 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 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",
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?
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"),
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
Thank you for providing the example code... for the request of running it
multiple times it would have helped if you could have confirmed that the
example ran through without errors... there were a lot of mistakes in it.
Look into using the reprex package to check your example next time.
I don't do this kind of analysis... I really don't know what to expect
from the functions. The
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"),
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 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
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",
2012 Mar 07
1
SELECT CASE in RODBC
Hi all,
I have a problem with a variable created by a SELECT CASE statement. See
the code below.
I would like the variable "event" to be a character variabel as I want to
UNION my two SELECTs - and the "event"-variable is a character variable in
the first SELECT result.
I have tried different ways:
* used ' ' in stead of " " around the string I want as the
1997 Jul 25
7
Amanda 2.3.0.5-Samba 1.9.16p11 PC backups...
At the bottom is what I got returned from AMANDA 2.3.0.5 after patching
Samba 1.9.16p11 to give estimates. Any idea what I might not have done yet?
My disklist reads:
shokk \\thor\depot nocomp-user-gnutar
To connect successfully to that server with smbclient, I have to do this,
giving the same password that I now have in /etc/amandapass:
smbclient \\\\THOR\\DEPOT -U BACKUP
Also, the
1997 Jul 31
5
SAMBA digest 1372
David Allan Finch wrote:
> Has anyone considerd modify the Unix encypt to use
> the same system as NT. IE the encypted pasword in the
> /etc/passwd or NIS/NIS+ table is the same for both?
Err. That would be a *really* bad idea. See the l0phtcrack
source for details :-).
Seriously, though. The password hashes used on NT are very
poor. They don't use salt and people are now
2010 Apr 12
2
[PATCH] Access to more Arel predicate types from where condition hash
I could use some eyes on https://rails.lighthouseapp.com/projects/8994/tickets/4368
if anyone has the time.
Summary of the change:
Similar to PredicateBuilder''s existing support for ''table.column'' =>
''value'', this patch enables ''column#method'' => ''value''.
For instance,
2011 Feb 08
4
Remove ActiveRecord::Relation#& alias for 'merge' ? (or at least only reference and not use in AR)
Would the core team be open to the removal of the ''&'' alias for
ActiveRecord::Relation#merge?
The reason is that in Ruby the ''&'' operator refers to an intersection
of two sets of data, not a merge. (within the context of the Array
class)
Recently Arel added support for SQL Set Operators:
2-0-stable:
2005 Jan 06
6
TDM4000P with 4 FXO's not picking up ringing lines
Ive just installed a TDM4000P with 4 fxos. The zaptel config is fine,
zttest comes back with configured. If i call a line when zttest it
shows on the display,and then goes when the line drops.
In * when a call comes in, it follows my dialplan and answers the call
according to the log, but IT DOESN'T actually pick up the call, i.e.
it continues ringing.
I'm using KS signalling, and
2012 Jul 08
2
Notation for previous observation in a data frame
I've created a data frame in R, but in order to clean up some of the data,
I need to set certain variable observations equal to the value of their
previous observation (it would be conditional, but that part's less
important right now). In Stata, I would simply set var = var[_n-1] in those
cases. What is the R equivalent?
[[alternative HTML version deleted]]
2010 Sep 08
1
Unintended side-effect from before_remove_const?
Hey all,
In troubleshooting a failing test for MetaSearch against 3-0-stable, I came across some undesirable (from my side, anyway) behavior in http://github.com/rails/rails/commit/bf87528b53f1422708ec0188d126cfca824ddc5c.
A simple one-liner, it would appear, but AR::Base implements before_remove_const to do a bit of scoped method cleanup... It''s the only thing I can see that might
2003 Oct 21
4
interactive prompts
Am using R on a Linux box and am currently writing an interactive R script.
1. How do I ask a user to press any key to continue ? I used a system call to
read but this only works if the Enter key is pressed:
print("Press any key to continue")
system("read")
2. How do I get a string input from the user? Would like to see an R function,
say askget():
delay =
2005 Nov 02
3
problems running rails on mac osx tiger (10.4.3)
Hi,
I''m newbie to rails, so please be gentle with me.
I got one of the new powerbooks that apple just released
last month (october 2005).
I installed rails using RubyGems
and also the installer for mac osx found
here
http://www.tonyarnold.com/articles/2005/08/10/rolling-with-ruby-on-rails-on-mac-os-x-tiger-for-beginners
everything seems to update and install fine.
But when I type