search for: wardl

Displaying 20 results from an estimated 68 matches for "wardl".

Did you mean: ward
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe. For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below. data(airquality) names(airquality) subset(airquality, airquality$Month == 6) Now how do I delete the row numbers returned automatically? I
2006 Nov 08
2
Sweave and font problems
...Sweave), or some odd interaction? Certainly, Sweave generates the correct .tex file, but bizarrely, 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 Park, CARDIFF, CF14 4XN. UK email: wardle at cardiff.ac.uk mark at wardle.org OpenPGP key: 66896A39
2006 Oct 14
2
Sweave, R and complex latex projects
...x projects, and what is the best approach? I'm almost tempted to keep R and Latex separate, and continue to run a R script to generate all of the dynamic tables/charts which are then "\input"ed, 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: wardle at cardiff.ac.uk mark at wardle.org OpenPGP key: 66896A39
2007 Jun 26
2
Aggregation of data frame with calculations of proportions
...how to make it more generic! I have some slightly odd real world data that I'm looking at representing number of positive diagnoses for different diseases, plus the number tested. It's all in a data frame: This should all be directly runnable with cut+paste: sp = read.csv('http://www.wardle.org/sca-prev.csv', header=T)[,c(-1,-2)] str(sp) #'data.frame': 46 obs. of 19 variables: # $ sca1 : int 5 1 NA NA 48 1 NA 17 21 4 ... # $ sca2 : int 7 3 NA NA 53 1 NA NA 7 7 ... # $ sca3 : int 3 1 NA NA 2 0 NA 29 0 0 ... # $ sca6 : int 1 0 NA NA 2 2...
2008 Apr 30
2
Lattice book
...k/978-0-387-75968-5?cm_mmc=NBA-_-Apr-08_UK_1753460-_-product-_-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 Cardiff, UK
2007 Nov 06
3
Produce a multiple formats graphic
Is it possible to produce the same graphic in different formats in one shot? Now if I want to produce the same graphic in pdf, ps and jpeg I run the producing code, but I change the graphic device, and I choose successively : pdf(...) ps(...) jpeg(...) So in this case I run the same code 3 times, or I have to choose a format and use converters... Is it possible to produce the 3 graphics in once
2007 Nov 13
1
R: Query an Access database based on a date attribute
...- sqlQuery(channel, "select * from test_table where market = 'atl-bos' and competitor = 'delta' and dd = #2007-11-20#") Hope this helps, Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per conto di Mark Wardle Inviato: marted? 13 novembre 2007 11.59 A: Tudor Bodea Cc: r-help at stat.math.ethz.ch Oggetto: Re: [R] Query an Access database based on a date attribute On 12/11/2007, Tudor Bodea <gtg757i at mail.gatech.edu> wrote: > Dear useRs, > > I would like to query an Access database thro...
2008 May 02
1
Phil Spector's book
..., for me, it's a really useful book. For someone who's used it for longer than that or is just really, really great at using R in an efficient manner and knows all the neat tricks already, they of course may not need the book. Great job Phil. On Fri, May 2, 2008 at 4:20 PM, Mark Wardle wrote: > Sorry. > > I received a very exciting email from Springer and placed my order and > felt compelled to advertise it. Didn't see any previous postings about > it. Hope no offence taken! > > Best wishes, and well done with book. Looking forward to receiving > it...
2007 Mar 15
2
Density estimation graphs
...ome pretend data s8 = rnorm(100, 15, 5) threshold = 19 # an arbitrary cut-off allele.plot(s8, threshold, hatch.col='grey',hatch.border='black') 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
2006 Oct 17
2
RODBC and NULL values
...to store a non-valid number in the database (999?) and use my query or R 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-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
2007 Dec 09
2
Getting estimates from survfit.coxph
..., surv.follow.up, surv.results$data) ~ simple.msa, 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 Cardiff, UK
2007 Apr 04
0
to findout maximized log likelihoods by using rlarg.fit (for several r order statistics)
...o it > is more specific > than "Re: Contents of R-help digest..." > > > Today's Topics: > > 1. Re: bivariate interpolation (Adelchi Azzalini) > 2. Coding for contrasts in unbalanced designs > (Guillaume Brutel) > 3. Re: substitute values (Mark Wardle) > 4. Odp: converting a list to a data.frame (Petr > PIKAL) > 5. Re: substitute values (Sergio Della Franca) > 6. the numimum number of fixed factors lme > package can deal with > (Fang, Yongxiang) > 7. Re: converting a list to a data.frame (Mark > Wardle...
2007 Jan 07
3
as.Date() results depend on order of data within vector?
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) This problem
2006 Nov 08
5
query in R
how to realize the following SQL command in R? select distinct A, B, count(C) from TABLE group by A, B ; quit; Best Regards --------------------------------- Sponsored Link Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile. [[alternative HTML version deleted]]
2006 Oct 30
1
[Fwd: Re: Organisation of medium/large projects with multiple analyses]
...ere! I am constantly looking for > bulletproof ways to manage these complex issues. Sadly, in the past, I > may have done so to a fault. I feel that the use of version control for > generic code and formal writing is very important. > Many thanks, Best wishes, Mark -- Dr. Mark Wardle Clinical research fellow and Specialist Registrar in Neurology,
2006 Nov 30
4
R_WinEdt question
if I want to put fig1plot to the left, figYPplot to the right figYAaplot on the bottom. How to modify the following cod to do these? \begin{figure}[H] \centering \begin{minipage}[t]{0.5\textwidth} \centering <<label=fig1plot,fig=TRUE,echo=FALSE>>= <<fig1plot>> @ %\caption{Caption 1} \end{minipage} \begin{minipage}[t]{0.5\textwidth} \centering
2006 Dec 09
2
Show number at risk on Kaplan Meier curve
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 later cross, because of one significant outlier. I have two queries: Is there an
2007 Jul 23
2
R and Excel
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070723/2d591177/attachment.pl
2007 Aug 05
1
t-test
Hi all, i'm trying to run a two-sample t-test. i have a longitudinal data that looks like this: idn age class 1 22 1 1 22 1 1 22 1 1 22 1 2 63 3 2 63 3 2 63 3 3 43 2 3 43 2 3 43 2 3 43 2 3 43 2 3 43 2 4 37 1 4 37
2007 Oct 21
1
Error in if loop
I have created a if loop as follows: name = "e" if (name == "v") { u = 0 } else u = 1 however i am getting error : Error: unexpected 'else' in "else" definitely I can write in : ifelse() form, however I want to write in this way. Can anyone tell me where is my error? thanks in advance --------------------------------- Forgot the famous last