Displaying 20 results from an estimated 7000 matches similar to: "subtract a time period from a date"
2012 Jul 23
2
date conversation
Hello,
when I convert a factor like this a=01.10.2009
into a date using b=strptime(a, format="%d. %m. %Y").
It works very well.
But when I try to convert c = 2009/10 into a date using
d=strptime(c, format="%Y/%m")
it doesnt work at all. I get d=NA.
What did I do wrong?
Thank you very much for your help!
best regards
Claudia
2004 Feb 24
7
<no subject>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hypatia.math.ethz.ch
X-Spam-Status: No, hits=3.5 required=5.0 tests=BAYES_44,RCVD_IN_BL_SPAMCOP_NET autolearn=no version=2.63
X-Spam-Level: ***
Dear ladies and gentlmen,
I want to import a directory with about 400 files (.dat) in R. I know how to
2012 Nov 01
0
(no subject)
Dear Claudia:
Your question has many layers.
Technically speaking, when I do "2011-05-01 CEST" -"2011-04-01 CEST" I get:
> "2011-05-01 CEST" -"2011-04-01 CEST"
Error in "2011-05-01 CEST" - "2011-04-01 CEST" :
non-numeric argument to binary operator
As previous posters suggest, storing the date strings as Date objects
works
2006 Mar 21
5
How to use: library lattice: barchart
Dear ladies and gentlemen!
In the help text for the xyplot (library(lattice), help(xyplot)) is an example
given how one can use barchart:
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6),
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
2004 Nov 23
1
Batch
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Received-SPF: none (hypatia: domain of claudiapaladini at web.de does not designate permitted sender hosts)
X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on hypatia.math.ethz.ch
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0
2016 Apr 07
1
dynamic reports with sweave: error when compiling the tex-file
Hello,
I took my first steps in dynamic reports with Gnu R and used sweave().
I therefore run Sweave() with an example of Friedrich Leisch, starting
like this:
\ documentclass [ a4paper ]{ article }
\ title { Sweave Example 1}
\ author { Friedrich Leisch }
\ begin { document }
\ maketitle
and so on.
It worked very well but when I tried to compile the latex file I get
this error message: !
2013 Apr 17
1
Anova unbalanced
Hello everybody,
I have got a data set with about 400 companies. Each company has a
score for its enviroment comportment between 0 and 100. These companies
belong to about 15 different countries. I have e.g. 70 companies from
UK and 5 from Luxembourg,- so the data set is pretty unbalanced and I
want to do an ANOVA. Somthing like aov(enviromentscore~country). But the
aov function is just for
2013 Oct 14
1
Transform plot3d grafics in to executable files
Hello,
I did some nice grafics using plot 3d and scatter3d. Is there a,
hopefully not too complicated way, to transform these dynamic,
three-dimensional and interactive grafics in a kind of
executable file? I want to show and send them via e-mail to projekt
partners who don`t use GNU R and who are not used to do programming.
So the result should be quite comfortable to execute for them in
2006 Feb 01
3
plot-function: How to change the font of the titles
Hello!
I want to create a plot with x- and y-labels writen in times or arial.
How can I change the font?
Thank you very much. Best regards
Claudia
2006 Feb 01
2
How to save R-grafics in eps format
Hello!
I used to save R-Grafics like this: postscript("file.ps").
Is there alsoa way to save them as eps?
Thank you very much
Claudia
2006 Jan 10
2
(no subject)
Dear ladies and gentlemen!
When I use the plot funtion how can I change the size of the title for the x and
y axes (xlab, ylab)and the size of the axes label ?
Thank you very much.
With best regards
Claudia
2012 Oct 30
2
changing date by +/- days
Hi,
Let say I have a date variable like this:
structure(1243792800, class = c("POSIXct", "POSIXt"), tzone = "GMT")
[1] "2009-05-31 18:00:00 GMT"
How can I make it 10 days prior, so:
[1] "2009-05-21 18:00:00 GMT"
I'm randomly selecting dates from a list and want a second value a set #
of days either before or after.
Thanks ahead of time.
2016 Apr 07
0
dynamic reports with sweave: error when compiling the tex-file
Definitely yes I just tried a one line latex document and it bombed with \begin{ document } but is fine with \begin{document} .
I think the spaces within the {} must all be removed. Latex does not like spaces
John Kane
Kingston ON Canada
> -----Original Message-----
> From: jdnewmil at dcn.davis.ca.us
> Sent: Thu, 07 Apr 2016 05:42:57 -0700
> To: paladini at trustindata.de, r-help
2012 Apr 04
2
cluster analysis with pairwise data
Hello,
I want to do a cluster analysis with my data. The problem is, that the
variables dont't consist of single value but the entries are pairs of
values.
That lokks like this:
Variable 1: Variable2: Variable3: . . .
(1,2) (1,5) (4,2)
(7,8) (3,88) (6,5)
(4,7) (12,4) (4,4)
. . .
.
2012 Oct 16
2
unique
Hello everybody,
I've got a problem concerning the function unique. I have got a
data.frame "shopdata" with 1000 shop which were evaluated at different
points in time.
With function subset I chose those shops with more then 10 employee and
store it in data.frame "bigshopdata" with 700 shops.
bigshopdata=subset(shopdata, shopdata$employee>10)
Now I use
2012 Aug 28
2
corrgram
Hello,
are there fixed threshold values for the changes between different
shades of blue in the corrgram?
Or is a chang relative depending on the data?
I didnt get it in manual.
Thank you very much, best regards
Claudia
2012 Oct 29
2
naming datasubsets in a loop
Hello everbody,
I want to generate different subsets of my data-set and safe this
subsets with names listet in a vector. Because in reality I have got
about 70 subsets I want to realize this in a loop
Somehow like this:
names=c("nam1",
2012 Jun 30
3
How to adjust the start of a series to zero? (i.e. subtract the first value from the sequence)
Hello,
I'd have a time series, where I am plotting the means and sd of a distance
for a variety of positions along a bird's bill. I'd like to set each line
(represented by "point") to start at zero, so that I can look at the
absolute change along the series. At the moment I only know how to do that
in Excel, by subtracting the value of time 1, point 1 from all other times
2023 Apr 09
1
simultaneous confidence intervals for multinomial proportions: sample size
Hello!
I want to calculate simultaneous confidence intervals for a nominal variable with three categories: "yes", "no", "partially" and I expect that far more than 5 samples fall into each category.
I have read that Glaz & Sison's method is only appropriate for variables with 7 or more categories. Therefore, the Goodman method seems like a good idea.
I have
2011 Oct 09
1
help with using last observation carried forward analysis for a clinical trial please
Hi,
I have a series of id's with multiple visits and questionnaire scores. This
is a clinical trial that will be analyzed using the last observation carried
forward method. In other words, in order to comply with intent to treat
analysis when many subjects withdraw, data points for the last visit must be
generated and filled in with the last observation. The ultimate goal is to
tabulate the