visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo
.
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow
.
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research
by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
Much better. Thanks!
Mark
On 05/08/07, Adrian Dusa [EMAIL PROTECTED] wrote:
On Sunday 05 August 2007, Mark Wardle wrote:
[...]
So, try this for starters:
my.values=1:5
x - barplot(my.values, ylim=c(0,7))
text(x, 0.4+my.values, wibble)
Mark, you could use the pos argument from ?par
:100,each=4)),
age = rep(round(rnorm(100, mean=50, sd=15)), each=4),
class =rep(round(rnorm(100, mean=3, sd=1)), each=4))
# exclude duplicated
d1.s - d1[!duplicated(d1$id),]
t.test(d1.s[class==3,], d1.s[class==1,])
Mark
--
Dr. Mark Wardle
Clinical research fellow and specialist
.
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
merge(). It is a different way of thinking, but can
effectively lookup corresponding values in one data frame into
another.
If you give a sample of data then I could be a bit more specific!
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff
methods base
other attached packages:
lme4 Matrix latticeRODBC
0.99875-4 0.999375-00.15-11 1.2-1
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch
please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
__
R-help
by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
over that beer I owe you!
Many thanks,
Best wishes,
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
anyone help?
Many (many many) thanks!
Best wishes,
Mark
P.S. this is enough to drive me to drink!
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch
On 22/06/07, Andrew Yee [EMAIL PROTECTED] wrote:
I'm familiar with using merge() to merge two data frames. But is there
functionality in R that will let you merge three or more data frames?
I just perform multiple merge() operations iteratively.
--
Dr. Mark Wardle
Clinical research fellow
Judith Flores wrote:
Hi,
I used split.screen command to creaye 5 screens,
4 screens contain a plot each, the fifth screen is
designated to a legend. I am having difficulties
setting the dimensions of the screens in a way that
would allow me to have the screen dedicated to the
NA 0
7 67 0
8 NA 0
How about using ifelse():
year = c(1,2,3,4,5,NA,6,7,8)
products = c(10,25,40,NA,35,23,NA,67,NA)
ifelse(is.na(year) products20,1,0)
=
[1] 0 0 0 0 0 1 0 0 0
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff
And if you want to save the result, use
g_Means = runIt()
You can pass arbitrarily complex data structures from and to functions
if you have the need - see list().
Hope this helps,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
__
R
those rows where the cells of var1 are empty. So, is there any
possibility to tell R that it should convert these empty cells to NA:s (when
importing)?
You could use a SQL case statement to do some pre-processing so that
RODBC can do the right thing.
Best wishes,
Mark
--
Dr. Mark Wardle
7 670
8 NA 0
NA NA *NA*
NA NA *NA*
When i hane NA in both columns the results of the procedure give me NA.
I'd like to obtain 0.
2007/4/3, Mark Wardle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:
Sergio
= rbind(x, unlist(d))
}
return(x)
}
fix.it(l)
It works on the data you sent me:
fix.it(A)
Have fun,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https
wishes,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
this?
You've answered your own question!
?subset
e.g., subset(my.data, cluster==1)
You should also notice that many R functions support a subset=
parameter, which is very useful!
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
custom summary function (my.summary()?
Best wishes,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R
Mark Wardle wrote:
Dear all,
I'm struggling with a plot and would value any help!
...
Is there a better way? As always, I'm sure there's a one-liner rather
than my crude technique!
As always, I've spent ages trying to sort this, and then the minute
after sending an email, I find
')
Is there a better way? As always, I'm sure there's a one-liner rather
than my crude technique!
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and specialist registrar, Neurology
University Hospital Wales and Cardiff University, UK
__
R-help
Nils Höller wrote:
Hi,
I have some big calculations in R to be done.
Since I can use R on a server with ssh, i was wondering if I can reopen
a R Shell after exiting ssh.
I don't want to use the batch mode and nohup doesn't work.
I want to use something like
ssh [EMAIL PROTECTED]
R
Azizi wrote:
Hello,
I use newly R! I'd like to plot several data set together in one output
window! How can I do that?
Best regards
Hadi
-
Never miss an email again!
[[alternative HTML version deleted]]
Dear all,
The as.Date() function appears to give different results depending on
the order of the vector passed into it.
d1 = c(1900-01-01, 2007-01-01,,2001-05-03)
d2 = c(, 1900-01-01, 2007-01-01,2001-05-03)
as.Date(d1) # gives correct results
as.Date(d2) # fails with error (* see below)
Prof Brian Ripley wrote:
The correct work-around is to get non-valid strings returned as NA, not
. That is argument 'na.strings' in RODBC (and elsewhere: read.table
behaves in the same way).
Thanks for these replies.
As I have mentioned before, my peculiar combination of PostgreSQL,
Dear all,
I'm using the survival package with R 2.4.0 on Mac OS X 10.4.8.
I have two core statistics books (one of which is Altman's medical stats
book) which suggest showing the number of individuals at risk at
different time intervals on the Kaplan-Meier curve.
My plot shows two curves that
. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
effect.
Hope this helps,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman
.
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
this problem is
limited to RODBC, and is not an ODBC driver problem? Any ideas? I'll be
switching to RdbiPgSQL from now, but I thought it appropriate to flag
this up as an unsolved problem.
Many thanks,
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology
Mark Wardle wrote:
Dear all,
I'm afraid I'm still having trouble with RODBC and NULL values on Mac OS
... snip
limited to RODBC, and is not an ODBC driver problem? Any ideas? I'll be
switching to RdbiPgSQL from now, but I thought it appropriate to flag
this up as an unsolved problem.
Hmmm
-spreadsheets
RODBC allows you to run arbitrary queries against Excel spreadsheets. I
don't use Excel (well, try not to), so I can't vouch for it, but it
should work.
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath
,$(RNWFILES))
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
at odbcConnect(), and sqlQuery(). It is quite
straightforward; even I managed to use it!
Otherwise try help.search(sql) which provides links to many other,
database-specific packages.
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff
, the package directive is ignored.
Has anyone had similar problems, or am I alone...?
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
Installed via darwinports (macports as it is now).
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath
Roger D. Peng wrote:
Try
\usepackage[noae]{Sweave}
-roger
Works perfectly - many thanks!
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
important.
Many thanks,
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http
of thing covered in any of the
textbooks. Apologies for being so verbose!
Best wishes,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help
to remove
those datapoints afterwards?
Looking in the archives, there are lots of people asking about how to
convert NAs to numeric, but I want the NAs passed through unaltered!
Many thanks in advance,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2
Mark Wardle wrote:
...
Is this because my ODBC driver is not returning the correct values for
RODBC to parse? Is there anyway of debugging this (the intricacies of
ODBC are beyond my skill) and is my only alternative to store a
non-valid number in the database (999?) and use my query or R
!
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Friedrich Leisch wrote:
On Sat, 14 Oct 2006 23:00:27 +0100,
Mark Wardle (MW) wrote:
Hello all,
...
Yes, simply set prefix.string to a path, not only a filename. E.g.,
...
Many thanks for everyone's help on this (both on and off list). Working
perfectly now!
Now I just need help
/charts
which are then \inputed, but I was rather attracted to the whole
Sweave approach.
Many thanks,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
email: [EMAIL PROTECTED] [EMAIL PROTECTED
48 matches
Mail list logo