Re: [R] Lattice in a loop does not produce output

2009-08-18 Thread Mark Wardle
Try printing the plot created. print(xyplot(...)) -- Dr. Mark Wardle Specialist registrar, Neurology (Sent from my mobile) On 18 Aug 2009, at 13:13, Alex van der Spek wrote: I cannot understand why xyplot does not work within a simple for loop. This works up to the for loop; inside the

Re: [R] How to use current value of variable in function definition?

2009-07-02 Thread Mark Wardle
https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __

Re: [R] How to use current value of variable in function definition?

2009-07-02 Thread Mark Wardle
2009/7/2 Peter Dalgaard : > Mark Wardle wrote: >> [...] >> Otherwise, it sounds like a recipe for obfuscation! What are you >> trying to do really? > > Not really obfuscation, there are legitimate reasons to want this sort of > behaviour. See demo(scoping) for a re

Re: [R] OK - I got the data - now what? :-)

2009-07-05 Thread Mark Wardle
et the concepts > right > > Cheers, > Mark > > __ > R-help@r-project.org 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 comm

Re: [R] OK - I got the data - now what? :-)

2009-07-06 Thread Mark Wardle
the end of the > row. > >   My initial goal is to make a line plot of the data on a single row. > All the data points should connect together. There is no real > interaction planned with data on other rows, at least at this time. > >   Thanks for the pointers and the code stub. I&

Re: [R] Dump plots to powerpoint?

2009-07-07 Thread Mark Wardle
___ > R-help@r-project.org 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 commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology C

Re: [R] read.csv from a remote machine

2009-08-04 Thread Mark Wardle
I would use sshfs or an alternatively remote file system access. Ssh to your Linux box and then mount the mac os x filesystem via sshfs, or afs for example. Alternatively, can't you copy the data to the Linux box using sftp first? -- Dr. Mark Wardle Specialist registrar, Neurology

Re: [R] SQL Queries from Multiple Servers

2009-05-15 Thread Mark Wardle
elp > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mai

Re: [R] create string of comma-separated content of vector

2009-05-19 Thread Mark Wardle
__ > R-help@r-project.org 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 commented, minimal, self-contained, reproducible code. >

Re: [R] Problem accessing "row number" from subset on a dataframe

2009-05-26 Thread Mark Wardle
e > the stuff out of the dataframe. > > Thank again for any feedback and insights. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Problem accessing "row number" from subset on a dataframe

2009-05-26 Thread Mark Wardle
siveness and support on the R forums. > > And, well actually, I would like to get the "row number"(s) and then delete > or not via the row number. > > Again, I really appreciate the response... > > --- On Tue, 5/26/09, Mark Wardle wrote: > >> From: Mark Wardle

Re: [R] question about using a remote system

2009-05-28 Thread Mark Wardle
elp > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.

Re: [R] Object-oriented programming in R

2009-05-28 Thread Mark Wardle
t; would be. If anyone has any thoughts about this, I'd be most glad to read > them. > > Cheers, > -- > *Luc Villandré* > /Biostatistician > McGill University Health Center - > Montreal Children's Hospital Research Institute/ > > __

Re: [R] Drawing schematics

2009-05-29 Thread Mark Wardle
.org 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 commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK _

Re: [R] question about using a remote system

2009-05-29 Thread Mark Wardle
presses > that option, and gets results, without having to know the "underside". > > thanks, > Erin > > On Thu, May 28, 2009 at 1:54 AM, Mark Wardle wrote: >> Hi. >> >> Do you need an interactive session at the remote machine, or are you >> simply wantin

Re: [R] R graph into MS Word: which format to use?

2009-04-20 Thread Mark Wardle
osting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [R] parsing pdf files

2010-01-10 Thread Mark Wardle
gt; __ > R-help@r-project.org 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 commented, minimal, self-contain

Re: [R] parsing pdf files

2010-01-10 Thread Mark Wardle
http://pdfbox.apache.org/commandlineutilities/ExtractText can be run from command line so potentially could be automated. Mark 2010/1/10 Mark Wardle : > If you can use a R <-> java interface, you could use itext to do this > as long as the PDF is fairly sane. > > see http://

Re: [R] merge two data sets

2008-06-04 Thread Mark Wardle
w.messagelabs.com/email > __ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Multiple plots question

2008-03-21 Thread Mark Wardle
; This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK ___

Re: [R] How to include files in .R?

2008-04-04 Thread Mark Wardle
___ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle Specialist r

Re: [R] how to write a table to pdf

2008-04-15 Thread Mark Wardle
anned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __

[R] Lattice book

2008-04-30 Thread Mark Wardle
oduct-_-978-0-387-75968-5 http://www.amazon.co.uk/exec/obidos/ASIN/0387759689/ref=ord_cart_shr?%5Fencoding=UTF8&m=A3P5ROKL5A1OLE Well done and many congratulations. My order is being processed as we speak! Best wishes, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Ca

Re: [R] Lattice book

2008-05-02 Thread Mark Wardle
t; > > > > __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > _

Re: [R] Sweave / Latex per-chapter output

2008-05-21 Thread Mark Wardle
t; BTW, I'm working on Ubuntu Linux. > > Thanks a lot for your insight, > > Anne-Marie > > __ > R-help@r-project.org 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 commented, m

Re: [R] question about multiple comparison in ANOVA

2007-11-21 Thread Mark Wardle
roblem of some form? my sessionInfo(): R version 2.6.0 (2007-10-03) i386-apple-darwin8.10.1 locale: en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 attached base packages: [1] stats graphics grDevices datasets utils methods base other attached packages: [1] multcomp

Re: [R] Export in pdf, png, jpg, eps, etc...

2007-11-27 Thread Mark Wardle
> This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle

[R] Getting estimates from survfit.coxph

2007-12-09 Thread Mark Wardle
sa, data = surv.results$data) 1 observation deleted due to missingness n events median 0.95LCL 0.95UCL simple.msa=Not MSA 120 80 8 6 11 simple.msa=MSA 19 17 2 1 4 -- Dr. Mark Wardle Specialist registrar, Neurology Ca

Re: [R] Getting estimates from survfit.coxph

2007-12-09 Thread Mark Wardle
On 09/12/2007, Frank E Harrell Jr <[EMAIL PROTECTED]> wrote: > Dieter Menne wrote: > Thank you both! Best wishes, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://

Re: [R] Getting estimates from survfit.coxph

2007-12-10 Thread Mark Wardle
________ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

Re: [R] modify a data.frame within a function

2007-12-15 Thread Mark Wardle
This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-pro

Re: [R] run setwd at the launch of R

2008-01-06 Thread Mark Wardle
; __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ >

Re: [R] is it safe to replace every "<-" by "=" in R code?

2008-01-13 Thread Mark Wardle
tion's own environment at the time of call. Why does R give the answer it does? This can't be a scope issue? I would have expected either -1 or -7! Am I being completely dim? -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-

Re: [R] is it safe to replace every "<-" by "=" in R code?

2008-01-13 Thread Mark Wardle
> 10) to f. Since no argument was specified it uses positional > matching and the first position is argument a. Thus its the same > as f(10). Note that f(b<-10) isthe same as f( (b <- 10) ) which may > make it clearer. Of course! Straightforward! Many thanks, Mark -- Dr. Mark

Re: [R] is it safe to replace every "<-" by "=" in R code?

2008-01-14 Thread Mark Wardle
Thank you (all) for the helpful explanations! My own R code tends to simpler constructs, but now perhaps we can start having obfuscated code competitions: something common in Perl, but I have not seen in R (yet). Anyone up for the challenge? Best wishes, Mark -- Dr. Mark Wardle Specialist

Re: [R] OT: Adding verbatim R code text into LaTeX documents: texttt; verb or url?

2009-01-27 Thread Mark Wardle
/ http://www.ctan.org/get/macros/latex/contrib/listings/listings.pdf bw Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] using Sweave with a master file that has several iputted .tex files

2009-01-27 Thread Mark Wardle
_ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle Specia

Re: [R] Faced Problems with RODBC package 1.2-5 and 1.2-4 for windows

2009-01-28 Thread Mark Wardle
stinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > __ > This email has been scanned by the MessageLabs Email Security System. > For more inform

Re: [R] data frame question

2008-02-10 Thread Mark Wardle
7;)], 1, mean, na.rm=T) As always, interested to see whether it can be done in one line... -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Adding LaTeX cross-references into Sweave plots

2008-02-27 Thread Mark Wardle
man/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > __ > This email has been scanned b

Re: [R] help

2008-03-09 Thread Mark Wardle
. > For more information please visit http://www.messagelabs.com/email > ______ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-help@r-project.org mailing list ht

Re: [R] factanal and plotting?

2008-03-17 Thread Mark Wardle
/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK _

Re: [R] Avoiding multiple outputs using RODBC package

2008-12-14 Thread Mark Wardle
o read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagela

Re: [R] Sourcing encrypted files

2007-09-18 Thread Mark Wardle
; > > __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __

[R] lme, diagnostic plots and missing values

2007-09-18 Thread Mark Wardle
tticeRODBC "0.99875-7" "0.999375-2" "0.12-1" "0.70" "2.32" "3.4-2" "0.11" "0.1.2" "3.1-84""2.2" "0.16-5" "1.2-1" > --

Re: [R] How to read stored functions

2007-09-25 Thread Mark Wardle
.html > > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-proj

Re: [R] Help with functions (iterations)

2007-09-30 Thread Mark Wardle
> This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK

Re: [R] confusion with R syntax

2007-10-11 Thread Mark Wardle
interpreted in two steps. Try this: x <- seq(1,10) y <- x[2:4] z <- y[c(TRUE, FALSE, TRUE)] Indeed, while your code: x[1][2] doesn't work, if you try x[2:4][3] then you get the third index of the vector created by 2:4 ie y <- x[2:4] z <- y[3] Best wishes, Mark -- Dr.

Re: [R] A read.table mystery (data for Framemaker Mac)

2007-10-11 Thread Mark Wardle
help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > __ > This email has been scanned by the MessageLabs Email Security System. > For more inf

Re: [R] A read.table mystery (data for Filemaker Mac)

2007-10-13 Thread Mark Wardle
On 12/10/2007, Emmanuel Charpentier <[EMAIL PROTECTED]> wrote: > Mark Wardle a écrit : > > 1. Which version of Filemaker? NB: Framemaker is a different program > > (desktop publishing), so do be a little precise! > > Dunno. The file is named "export.fm7" ; one

Re: [R] Error in if loop

2007-10-21 Thread Mark Wardle
our code as two separate expressions because you are using an interactive shell. Try this instead: if (name=='v') { u=1 } else { u=0 } Hope this helps. Best wishes, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __ R-he

Re: [R] Error in if loop

2007-10-21 Thread Mark Wardle
ence between > ifelse and if? > generally if there is more than one syntax within the 'if' I use 'if' loop > otherwise I use 'ifelse' loop. Is it the only difference between them? > > > Mark Wardle <[EMAIL PROTECTED]> wrote: > On 21/10

Re: [R] Package Installer Fails in OSX 10.5 Leopard

2007-10-27 Thread Mark Wardle
least=list. it is late (here)! On 28/10/2007, Mark Wardle <[EMAIL PROTECTED]> wrote: > Hi. > > Sorry to hear you are having problems. I'm not installing Leopard just > yet, as I cannot live without a working system running R, PostgreSQL, > Filemaker, and Adobe applicat

Re: [R] Package Installer Fails in OSX 10.5 Leopard

2007-10-27 Thread Mark Wardle
, minimal, self-contained, reproducible code. > > > __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/em

[R] Fwd: Produce a multiple formats graphic

2007-11-06 Thread Mark Wardle
-- Forwarded message -- From: Mark Wardle <[EMAIL PROTECTED]> Date: 6 Nov 2007 16:01 Subject: Re: [R] Produce a multiple formats graphic To: Cuvelier Etienne <[EMAIL PROTECTED]> You have several options: 1. Write a function that creates your plot, and call t

Re: [R] Query an Access database based on a date attribute

2007-11-13 Thread Mark Wardle
Dear Tudor, Try running your query in Microsoft Access/Query first. Once it works, then move to R/RODBC... I don't use MS Access routinely in this way, but presumably there is a problem with your SQL. Best wishes, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK __