Displaying 20 results from an estimated 5000 matches similar to: "Averaging dates?"
2007 Feb 15
3
Working with temporal data
Hi,
I have several files with data in this format:
20070102
20070102
20070106
20070201
...
The data is sorted and each line represents a date (YYYYMMDD). I would
like to analyze this data using R. For instance, I would like to have
a histogram by year, month or day.
I've already made a simple Perl script that aggregates this data but I
believe that R can be much more powerful and easy on
2007 Mar 07
2
No years() function?
Hi,
I'm trying to aggregate date values using the aggregate function. For example:
aggregate(data,by=list(weekdays(LM),months(LM)),FUN=length)
I would also like to aggregate by year but there seems to be no
years() function.
Should there be one? Is there any alternative choice?
Also, a hours() function would be great. Any tip on this?
Thanks in advance!
S?rgio Nunes
2007 Feb 23
2
Google Custom Search Engine for R
Hi,
Since "R" is a (very) generic name, I've been having some trouble
searching the web for this topic. Due to this, I've just created a
Google Custom Search Engine that includes several of the most relevant
sites that have information on R.
See it in action at:
http://google.com/coop/cse?cx=018133866098353049407%3Aozv9awtetwy
This is really a preliminary test. Feel free to
2007 Mar 02
2
Error in length of vector ?
Hi,
I'm having a weird result with the length() function:
>a
[... omited ...]
[9994] NA "2003-12-03 16:37:00" "2002-06-26 18:43:00"
[9997] "2005-07-04 04:00:00" "2007-02-16 22:09:00" "2007-02-24 15:49:00"
[10000] NA
> length(LastModified)
[1] 9
> length(c(LastModified))
[1] 9
I was expecting to get
2005 Dec 13
1
Manipulating matrices
Hi,
I'm pretty new to R and I've been having some problems filtering data
in matrices.
I have the following initial dataset:
|| year | name | varA ||
I have multiple values for "varA" for the same "year" and the same "name".
Having this as the input I would like to obtain the following:
|| year | name | {varA mean} ||
Where I only have one line for each
2008 Jun 17
2
Measuring dispersion
Hi,
I'm looking for a function to measure the dispersion of a set of
values ranging from 0 to 1.
This function should be 0 if all the values are evenly spaced within
the interval and it should be > 0 if values are clustered.
The more clustered the values are, the higher should the function be.
An example:
[0; 0.2; 0.4; 0.6; 0.8; 1] - function should be ~ 0
[0; 0.1; 0.1; 0.15; 1] -
2005 Dec 13
4
Ploting graphics using X tints from a color
Hi,
I'm trying to draw a 2D plot using multiple tints of red. The
(simplified) setup is the following: || year | x | y ||
My idea is that each year is plotted with a different tint of red.
Older year (lightest) -> Later year (darkest). I've managed to plot
this with different scales of grays simply by doing:
palette(gray(length(years):0/length(years)))
before the plot and for each
2019 Mar 14
2
replication fails
On Thu, 2019-03-14 at 07:38 +0000, Rowland Penny via samba wrote:
> On Wed, 13 Mar 2019 23:59:29 +0000
> Sérgio Basto via samba <samba at lists.samba.org> wrote:
>
> > On Wed, 2019-03-13 at 11:22 +0100, L.P.H. van Belle via samba
> > wrote:
> > > Hi Stefan,
> > >
> > > Debian 8 ? 9?
> > > DC's samba version ?
> > >
2019 Mar 13
3
replication fails
On Wed, 2019-03-13 at 11:22 +0100, L.P.H. van Belle via samba wrote:
> Hi Stefan,
>
> Debian 8 ? 9?
> DC's samba version ?
>
> Can you post your smb.conf and resolv.conf
>
> If you check with (per server what is the outcome. )
> samba-tool dbcheck
> samba-tool dbcheck --cross-nc
>
> You could do a forced sync of a good server to the bad one.
>
2007 Feb 16
1
Working with temporal data [Solved]
Just for the record, here are my steps for producing a date based histogram.
Data is stored in a file where each line only has a date - 2007/02/16
>d<-readLines("filename.dat")
>d<-as.Date(d, format="%Y/%m/%d")
>pdf(yearly.pdf)
>hist(d, "years")
>dev.off()
Instead of "years" you can also use "days", "weeks",
2009 Jun 01
1
Bug in hist() when working with Dates ?
Hi,
It seems that hist() has a buggy behavior when breaking over "days".
The bug can be reproduced in a few steps:
> d=data.frame(date=c("2009-01-01", "2009-01-02", "2009-01-02"))
> d$date=as.Date(d$date)
> d$date
[1] "2009-01-01" "2009-01-02" "2009-01-02"
> h=hist(d$date, "days")
> h$count
[1] 3
2019 Mar 13
5
replication fails
2 debian-DCs ... I get
Last attempt @ Wed Mar 13 10:57:11 2019 CET failed, result 121
(WERR_SEM_TIMEOUT)
How to proceed here (yes, I google ...), please ...
2005 Jun 22
2
r programming help
Dear list,
Is there anyway i can make the following formula short
by r-programming?
CYCLE.n<-c(NA,
WET[1]*DRY[1],
WET[1]*DRY[2]+WET[2]*DRY[1],
WET[1]*DRY[3]+WET[2]*DRY[2]+WET[3]*DRY[1],
WET[1]*DRY[4]+WET[2]*DRY[3]+WET[3]*DRY[2]+WET[4]*DRY[1],
WET[1]*DRY[5]+WET[2]*DRY[4]+WET[3]*DRY[3]+WET[4]*DRY[2]+WET[5]*DRY[1],
2012 Jan 13
2
Averaging over data sets
Hi all,
after using Amelia II to create 10 imputed data sets I need to average them
to have one unique data that includes the average for each cell of the
variables imputed, in addition to the values for the variables not imputed.
Such data has many variables (some numeric, other factors), and more than
20000 observations. I do not know how to average them out. Any help?
Below I provide a small
2011 Mar 22
6
bug resolve yet for export OCFS2 volume to NFS client ?
I found this from ocfs1.4 document:
g) NFS
OCFS2 volumes can be exported as NFS volumes. This support is limited to
NFS version 3, which translates to Linux kernel version 2.4 or later.
Users must mount the NFS volumes on the clients using the nordirplus
mount option. This disables the READDIRPLUS RPC call to workaround a bug
in NFSD, detailed in the following link:
2009 Jul 21
2
Split plot analysis problems
Hello,
I would be very grateful if someone could give me a hand with my split
plot design problems.
So here is my design :
I am studying the crossed-effects of water (wet/dry) and mowing
(mowed/not-mowed = nm) on plant height (PH) within 2 types of plant
communities (Xerobromion and Mesobromion) :
- Within each type of communities, I have localised 4 blocks
- In each block, I have defined
2009 Mar 25
1
Requesting help with lattice again
Hello, this is a request for assistance that I submitted earlier, this time
with the dataset. My mistake for taking up bandwidth. I've also rephrased
the question to address an additional concern.
I'm working on a windows XP machine with R 2.8.1
1). I'd like a barchart (or other lattice type display) HSI ~ of the three
factors (Region, Scenario and HydroState).
However
2005 Sep 28
1
Change console language ?
Hi,
I'm pretty new to R, I've just installed version 2.1.1 on Windows.
I have a simple (it seems) doubt - how do I change the Console default
Language ?
It's set to Portuguese but I would like to view it in English.
Thanks in advance,
S??rgio Nunes
2004 Aug 19
2
proposed change to [.POSIXct
R developers,
The "tzone" attribute is stripped from a POSIXct object when the subscript
command is called ("[.POISXct"). This results in dates being printed in the
locale specific format after a subscript operation is applied to a POSIXct
object which has cause several problems for me in the past.
Here is an example of this problem under R 1.9.1:
> x <-
2003 Aug 13
1
means comparison with seasonal time series?
Dear R list,
I have a sequence of weekly observations of number of adults and larvae
in various size classes from a butterfly population living in a
subtropical area with pronounced wet and dry seasons. Wet and dry
seasons are each defined 26 weeks long with fixed start and end dates.
The data span 103 weeks (two seasons each of wet and dry) with some
missing weeks. What I would like to do is