Take a look at the chron package...
as.chron(2004-8-1,format=c(dates=y-m-d)) -
as.chron(1960-1-1,format=c(dates=y-m-d))
Time in days:
[1] 16284
On 9/13/07, zhijie zhang [EMAIL PROTECTED] wrote:
Dear Rusers,
I have some data in .csv file like 2004-8-1 and 2004-10-1, and
i need
to
Armstrong, Whit wrote:
dts - c(2004-8-1,2004-10-1,2001-9-1)
strptime(dts,%Y-%m-%d)
julian(strptime(dts,%Y-%m-%d))
Why do people insist on missing the obvious?
x - c(2004-8-1,2004-10-1,2001-9-1)
as.Date(x) - as.Date(1960-1-1)
Time differences in days
[1] 16284 16345 15219
On Wed, 2007-09-12 at 21:43 +0200, John Lande wrote:
I need to increase the width of the border in a barplot, i checked both
barplot, and barplot2, but cant find how to do it. how can I do?
If you are referring to the borders of the bars themselves, you can
adjust par(lwd) prior to calling
Hello all,
I've just switched to running R 2.5.1 on a Mac 0S X 10.4.1 platform. I
can't seem to find how to run simultaneous R sessions. Didn't see anything
in the archives on this or under the R file menu.
Thanks!
David
__
R-help@r-project.org
Hello all,
I've just switched to running R 2.5.1 on a Mac 0S X 10.4.1 platform. I
can't seem to find how to run simultaneous R sessions. Didn't see anything
in the archives on this or under the R file menu.
Thanks!
David
__
R-help@r-project.org
Welcome (benvenuto),
see fractions in library MASS
es:
fractions(1/2)
[1] 1/2
Ciao
Stefano
On Thu, Sep 13, 2007 at 04:54:01PM +0200, Mauro Arnoldi wrote:
MauroHi everybody!
MauroI'm new to this list and also to the R program.
Mauro
MauroI'd like to know if there is a function able to
Dear R users and experts,
I am current running a program (a series of commands) in R. such as:
A - as.matrix(read.table(C:/LP.txt));
a=which(memb==q); b=a; B=as.matrix(A[a,b])
LS=sum(B)/2;
TL=sum(A)/2
i-c(1:NN);
D=sum(A[a,i]);
how can i obtain the CPU time used for these commands ?
I have
Hello
I am trying to get the estimated value of logit(p), along with its
standard error/conf interval from a logistic regression model (for the
overall sample, and for individual treatment levels), where p is the
proportion of successes. I am having difficulty in finding how to
tell R to give this
Original Message
Subject: [R] how to obtain the CPU time of my program
From: gang xu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: 13.09.2007 17:16
Dear R users and experts,
I am current running a program (a series of commands) in R. such as:
A -
Has anyone had any luck using the Windows ROracle package binary from
http://stat.bell-labs.com/RS-DBI/index.html? It's version 0.5-7 and
I've tried it with DBI version 0.1-10 (found on the site) as well as the
newest 0.2-3. With both versions I get the following error:
require(ROracle)
Loading
I should have remembered MASS::fractions(). This has a slightly different
aim, giving continued fraction approximations to any real number, where my
function just tries to handle numbers that really are close to fractions
with small denominators.
For example, unfrac() won't report a
Birgit Lemcke wrote:
Hello!
I am using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 and
I am still R beginner.
I try to calculate a t.test() using this code:
TTest75-t.test(Fem75, Mal75, alternative= two.sided, paired= TRUE)
This works properly, but I have two variables
I would like to make what seems like a simple addition to a display
constructed from a call to levelplot -- I want to add a text label
(which will, in general, depend on the object being plotted, and so
cannot be hardcoded) to the origin, which has special significance in
my problem. The x and y
Alle giovedì 13 settembre 2007, Stefano Calza ha scritto:
see fractions in library MASS
Yeah!
1/3
[1] 0.333
fractions(0.333)
[1] 1/3
Great! Thanks! (grazie :) )
Mauro
__
R-help@r-project.org mailing list
I have a data set with 3 variables V1, V2, V3. If there are 2 data points
have the same values on both V1 and V2, I want to delete one of them which
has smaller V3 value.i.e., in the data below, I want to delete
the first observation. How can I do that ?Thanks in advance!
V1
nuyaying wrote:
I have a data set with 3 variables V1, V2, V3. If there are 2 data points
have the same values on both V1 and V2, I want to delete one of them which
has smaller V3 value.i.e., in the data below, I want to delete
the first observation. How can I do that ?Thanks in
Hi,
If I have this values:
21
23
14
58
26
How can I sum the values by a progression like this:
(21)
(21 + 23)
(21 + 23 + 14)
(21 + 23 + 14 + 58)
(21 + 23 + 14 + 58 + 26)
(21 + 23 + 14 + 58 + 26)
I've try with the function loop
Best Wishes,
Alfredo
[[alternative HTML
you're right Duncan. My bad. That was kind of dopey because R squared is
a statistic in itself. They aren't nested models because
the two predictors are different and there are no other predictors. I'm
trying to see whether the model B predictor is better than the
Model A predictor. I guess
How about (assuming the data is in the data frame my.df):
my.df2 - my.df[order(my.df$V3, decreasing=TRUE),]
my.df3 - my.df2[ !duplicated( my.df2[,c('V1','V2')] ), ]
If order of the rows matters then we will need to add a couple of steps
to reorder. You did not say what to do if 3 or more
Here a way of doing it:
x - cbind(V1=sample(1:3,20,TRUE), V2=sample(1:3,20,TRUE), V3=sample(20))
x
V1 V2 V3
[1,] 2 2 1
[2,] 1 2 6
[3,] 3 2 10
[4,] 3 1 11
[5,] 3 2 5
[6,] 3 2 7
[7,] 2 1 19
[8,] 3 3 13
[9,] 1 3 2
[10,] 3 3 20
[11,] 3 3 18
[12,] 2 1 4
see ?plotmath
you want to use mu for micro, as in
plot(1:10, ylab = expression(paste(mu, M)))
On Thu, 13 Sep 2007, Zheng Lu wrote:
Dear all:
Is there any one could tell me how I can represent Micro-molar as an
unit of concentration when I plot with R(S-plus), I don't want write
'uM' from
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an
Hello r-help,
I am trying to collapse or aggregate 'some' of a data frame. A very
simplified version of my data frame looks like:
tester
trip set num sex lfs1 lfs2
1 313 15 5 M23
2 313 15 3 F12
3 313 17 1 M01
4 313 17 2 F11
5 313 17
Mark,
Estimates of R values can be compared using Fishers r to z transform. Perhaps
this will
do what you wish to do.
John
John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC,
University of Maryland School of Medicine Claude D. Pepper OAIC,
University
On Thu, Sep 13, 2007 at 03:06:35PM -0500, Maura E Monville wrote:
I have 316 files. Each file represents a patient's breathing track
(respiratory signal recorded for a variable number of cycles). All files
have the same are made up of a header followed by a variable number of
records.
You can
Hello,
After I use the lm() function to perform a multiple linear regression, and
then use the step function to eliminate variables that predict the weakest,
I need to export the final equation to a spreadsheet or a text file. Below
is some sample code. In the end I want to export the
Hello All,
I am trying to subset a matrix using subset() and it works fine when I use
matrix notation, but doesn't work when I use established column names.
Sample code is below:
library(mvtnorm)
library(sm)
library(ltm)
library(irtoys)
k- 100
set.seed(271828)
t -
Dear all:
when I add legend into the upper right concer of the plot region, it
always has a square region in which the text is, how to get rid of that
square region, I just want pure text.
For the log-scale on y axis, they appear as 1e-02, 1e+00 and 1e+02, how
to change to 0.01, 1, 100.
how
On 13/09/2007 6:26 PM, Zheng Lu wrote:
Dear all:
when I add legend into the upper right concer of the plot region, it
always has a square region in which the text is, how to get rid of that
square region, I just want pure text.
Use bty=n in the call to legend.
For the log-scale on y
Dear Rusers,
I'd like to take the cases of cancer of the larynx in chorley(spatstat) to
explain my question.
I want to join the points of cancer of the larynx with the disused
industrial incinerator to generate lines, and then calculate the angles of
these line comparing the horizontal line?
Thanks, this works great! --Eric
D L McArthur wrote:
Eric R busorafn at juno.com writes:
... I want to export the coefficients to a spreadsheet
names(w)
write.csv (w$coefficients, file=...)
-- D L McArthur, UCLA Sch of Medicine, dmca at ucla.edu
On 14/09/2007, at 3:41 PM, zhijie zhang wrote:
Dear Rusers,
I'd like to take the cases of cancer of the larynx in chorley
(spatstat) to
explain my question.
I want to join the points of cancer of the larynx with the disused
industrial incinerator to generate lines, and then calculate
32 matches
Mail list logo