Re: [R] Plotting observed vs. fitted values

2009-11-29 Thread Gray Calhoun
7;plot' command is ugly and could be improved; also both "conc" and "time" should be given better labels. Since you have different data frames for "supine" and "upright", you don't need to distinguish the row names; you could have

Re: [R] Data Manipulation Question

2009-12-03 Thread Gray Calhoun
The data import/export manual can elaborate on a lot of these; this is all straightforward, although many people would prefer to use a relational database for some of the things you mentioned. I'm not aware of a "goto" command in R, though (although I could be wrong). --Gray On Thu, Dec 3, 2009 a

Re: [R] Data Manipulation Question

2009-12-04 Thread Gray Calhoun
This is probably far more discussion than the question warranted, but... On Thu, Dec 3, 2009 at 11:14 PM, David Winsemius wrote: > > On Dec 3, 2009, at 10:52 PM, Gray Calhoun wrote: > >> The data import/export manual can elaborate on a lot of these; this is >> all straightf

Re: [R] Standard deviation for each element in a set of matrices

2009-12-04 Thread Gray Calhoun
ad the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https

Re: [R] paste adjacent elements matching string

2009-12-05 Thread Gray Calhoun
t; > > >        [[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-project.org/posting-guide.html > and pr

Re: [R] could not find function lapply<-

2009-12-08 Thread Gray Calhoun
t;X3"    "X4"    "X5"    "X7"    "X8"    "X9" > > $`1998` > [1] "lgdcm" "X1"    "X2"    "X3"    "X4"    "X5"    "X7"    "X8"    "X9" > > ... > ..

[R] Fwd: conditionally merging adjacent rows in a data frame

2009-12-08 Thread Gray Calhoun
me in consecutive rows when constructing the 'consecutiveROI' vector (just as an additional error check). There may be a built-in function that could replace first three line lines, as well. Best, Gray -- Forwarded message ------ From: Gray Calhoun Date: Tue, Dec 8, 2009 at 6:42

Re: [R] conditionally merging adjacent rows in a data frame

2009-12-08 Thread Gray Calhoun
oject.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] global variables in a function

2009-12-10 Thread Gray Calhoun
nes > > __ > 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, minim

Re: [R] Correcting for missing data combinations

2009-12-11 Thread Gray Calhoun
obert Mondavi Institute North > One Shields Avenue > Davis, CA 95616 > > __ > 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-gui

Re: [R] how to use Rengine instance to parse R script String

2009-12-14 Thread Gray Calhoun
ilman/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. > -- Gray Calhoun Assistant Professor of Economics Iowa State University __

Re: [R] Logit Estimation with Panel Data

2009-12-14 Thread Gray Calhoun
http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] fast matrix-vector multiplication

2009-12-14 Thread Gray Calhoun
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. > -- Gray Calhoun Assistant Professor of Economics Iowa Stat

Re: [R] Reconstruct a dataset

2009-12-15 Thread Gray Calhoun
w this message in context: > http://n4.nabble.com/Reconstruct-a-dataset-tp964699p964761.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Remove duplicates from a data frame but with some special requirements

2009-12-16 Thread Gray Calhoun
___ > 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. > -- Gray Calhoun

Re: [R] CORRECTION - Generation of Random numbers in a loop

2009-12-17 Thread Gray Calhoun
on. > > Regards > > Maithili > > >      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. >        [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list > https://stat.

Re: [R] Sweave Makefile issue

2009-12-17 Thread Gray Calhoun
\ >         *.eps *.pdf >   @del -f $(patsubst %.Rnw,%.tex,$(RNWFILES)) >  script : >   Rcmd BATCH $(Rfile) > > -- > > *Luc Villandré* > /Biostatistician > MUHC-MCH Research Institute/ > > ___

Re: [R] Remove duplicates from a data frame but with some special requirements

2009-12-17 Thread Gray Calhoun
ple.  However, if we consider > 2.1 - this would result in a subset (if duplicates were removed) with the > first line which has an "N".  But it is of interest to me the if at least > one of the subsamples has a "Y" then I want that line rather than a > subsample with ano

Re: [R] poly() with unnormalized values

2009-12-17 Thread Gray Calhoun
T  M3J 1P3 CANADA > > __ > 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, r

Re: [R] How to print to file?

2009-12-18 Thread Gray Calhoun
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. > -- Gray Calhoun Assistant Professor of Economics Iowa State University ___

Re: [R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Gray Calhoun
nks, > Jon > >        [[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-project.org/posting-guide.html >

Re: [R] an IDE for R... JGR perhaps?

2009-12-21 Thread Gray Calhoun
tat.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. > -- Gray Calhoun Assistant Professor of Economics Iowa State University _

Re: [R] Closing files after using write

2009-12-21 Thread Gray Calhoun
as > > Nick > >        [[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-project.org/posti

Re: [R] Troubles with DBI's dbWriteTable in RMySQL

2010-07-19 Thread Gray Calhoun
; 0             12 > 410 410 0.04319069 0.0009440177 -8661.194 17324.39 17330.03 1757742 > 0             26 > 411 411 0.03459361 0.003043249  -562.9672 1127.934 1130.794 647584.6 > 0             9 > 412 412 0.06024919 0.004633276  -643.766  1289.532 1292.662 81.82442 > 7.009833e-14  

Re: [R] Repeated Procedures

2010-07-26 Thread Gray Calhoun
_ > 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

Re: [R] Regression using mapply?

2010-09-09 Thread Gray Calhoun
p > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __

Re: [R] Glm

2010-07-27 Thread Gray Calhoun
ot compulsory to use these alphas but my Y is unknown... > > Any ideas?... > Thanks, > Ana > > [[alternative HTML version deleted]] > > -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/

Re: [R] re-sampling of large sacle data

2010-07-27 Thread Gray Calhoun
rge-sacle-data-tp2304165p2304165.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting gui

Re: [R] Glm

2010-07-28 Thread Gray Calhoun
he same variance regardless of how many observations you generate, since the variance is coming from x1 and x2, not 'a'. Your question sounds a little like a homework problem. If it's not, please explain what you're trying to do. --Gray 2010/7/27 Ana De Barros : > No, but thanks any

Re: [R] randomisation for matrix

2010-07-28 Thread Gray Calhoun
@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. > -- Gray Calhoun Assistant Professor of Economics, Iowa State U

Re: [R] error in f(x,...)

2010-07-28 Thread Gray Calhoun
_ > 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. > -- Gray Calhoun Assistan

Re: [R] (no subject)

2010-07-30 Thread Gray Calhoun
#x27; as the name of the > vector for collecting beta coefficients and 'ts' for the predictor variable.   > I have set var.all equal to 1. > A minor point: one should probably avoid using 'ts' as a variable name too, since it's a function in the stats package. --

Re: [R] reading dates in Excel into R

2010-07-30 Thread Gray Calhoun
guide http://www.R-project.org/posting- >> >> guide.html >> >> and provide commented, minimal, self-contained, reproducible code. >> > >> > __ >> > R-help@r-project.org mailing list >> > https://s