Re: [R] about fitting a regression line

2017-06-15 Thread Don McKenzie
Did you perhaps accidentally include your response as a predictor? > On Jun 15, 2017, at 12:48 PM, lily li wrote: > > Thanks for your replies. I tried the regression, but then got a NA value > for the slope. And here is the error message: > Coefficients: (1 not defined because of singularities)

Re: [R] seek non-black box alternative to randomForest

2017-05-30 Thread Don McKenzie
Though off-topic for this list, your question (complaint?) comes up a lot in discussions of analytical methods, and has generated hundreds of papers (Google is your friend here). You can start with https://www.quora.com/What-are-the-pros-and-cons-of-GLM-vs-Random-forest-vs-SVM

Re: [R] Tree plot with percentages and hierarchies

2016-06-08 Thread Don McKenzie
> On Jun 8, 2016, at 1:03 PM, Bert Gunter wrote: > > I am not really sure what you want, but it sounds like you want the > "rpart" package (which is part of the standard R distribution). I’m not sure either, but do you want to fit a model (in which case Bert’s suggestion of “rpart” is on targe

Re: [R] mixed-effects models with (g)lmer in R and model selection

2016-02-19 Thread Don McKenzie
This is a complicated and subtle statistical issue, not an R question, the latter being the purpose of this list. There are people on the list who could give you literate answers, to be sure, but a statistically oriented list would be a better match. e.g., http://stats.stackexchange.com/ >

Re: [R] Change the maximum likelihood of multinomial logic model in R

2015-08-28 Thread Don McKenzie
Have you looked at the help for mlogit.optim? At the minimum you need a likelihood function and starting value(s). If you don’t understand the function syntax you may have difficulty interpreting any output that you do get. > On Aug 28, 2015, at 11:26 AM, Alaa Sindi wrote: > > Dear All, > ca

Re: [R] Infinite Series

2015-07-24 Thread Don McKenzie
but you get a different hide with sum vs. cumsum. David is right if you want the sum of n terms. > sum(1/(1:100)^2) - pi^2/6 [1] -0.009950167 > sum(1/(1:1000)^2) - pi^2/6 [1] -0.0009995002 etc. > On Jul 24, 2015, at 7:24 PM, Janh Anni wrote: > > Wow! So many (simpler) ways to skin a cat. Th

Re: [R] Infinite Series

2015-07-24 Thread Don McKenzie
cumsum(1/(1:100)^2)[100] > On Jul 24, 2015, at 4:37 PM, Janh Anni wrote: > > Hello Jeff, > > Thanks a lot. I tried it and see that it prints out the entire 100 partial > sums, so I can take the last value as the partial sum for the first 100 > terms. Would there be any way cumsum can print on

Re: [R] model non-integer count outcomes

2015-07-21 Thread Don McKenzie
e, Jul 21, 2015 at 11:41 PM, Don McKenzie wrote: >> Or if there are enough averages of enough counts, the CLT provides another >> option. >> >>> On Jul 21, 2015, at 8:38 PM, David Winsemius wrote: >>> >>> >>> On Jul 21, 2015, at 8:21 PM,

Re: [R] model non-integer count outcomes

2015-07-21 Thread Don McKenzie
Or if there are enough averages of enough counts, the CLT provides another option. > On Jul 21, 2015, at 8:38 PM, David Winsemius wrote: > > > On Jul 21, 2015, at 8:21 PM, Wensui Liu wrote: > >> Dear Lister >> When the count outcomes are integers, we could use either Poisson or >> NB regressi

Re: [R] glm help - final predictor variable NA

2015-07-21 Thread Don McKenzie
> On Jul 21, 2015, at 7:30 PM, Rolf Turner wrote: > > > Psigh! Why do people think that it is perfectly OK to undertake statistical > analyses without knowing or understanding any statistics? > (I guess it's slightly less dangerous than undertaking to do your own wiring > without knowing any

Re: [R] jaccards index

2015-07-20 Thread Don McKenzie
Sarah Goslee’s package “ecodist” will compute a Jaccard index, I believe. You are unlikely to get much help, however, unless you provide more details as to what you are trying to accomplish. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for how to

Re: [R] graphs, need urgent help (deadline :( )

2015-06-11 Thread Don McKenzie
? > > Best, > > RO > > Atenciosamente, > Rosa Oliveira > > -- > > > > > Rosa Celeste dos Santos Oliveira, > > E-mail: rosit...@gmail.com > Tlm: +351 939355143 >

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
> > Best, > RO > > > Atenciosamente, > Rosa Oliveira > > -- > > > > > Rosa Celeste dos Santos Oliveira, > > E-mail: rosit...@gmail.com > Tlm: +351 939

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
___ > > > > Rosa Celeste dos Santos Oliveira, > > E-mail: rosit...@gmail.com <mailto:rosit...@gmail.com> > Tlm: +351 939355143 > Linkedin: https://pt.linkedin.com/in/rosacsoliveira > <https://pt.linkedin.com/in/rosacsoliveir

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
belay that — something else is wrong > On Jun 10, 2015, at 11:21 AM, Don McKenzie wrote: > > You need to substitute the real name of the data frame for “my.data”. That > was just my example. :-) > >> On Jun 10, 2015, at 11:03 AM, Rosa Oliveira > <mailto

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
rosit...@gmail.com <mailto:rosit...@gmail.com> > Tlm: +351 939355143 > Linkedin: https://pt.linkedin.com/in/rosacsoliveira > <https://pt.linkedin.com/in/rosacsoliveira> > > "Many admire, few know" > Hippocrates > >

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
ypes information in the figure caption (IMO) > On Jun 10, 2015, at 10:03 AM, Don McKenzie wrote: > > >> On Jun 10, 2015, at 9:08 AM, Rosa Oliveira > <mailto:rosit...@gmail.com>> wrote: >> >> Dear All, >> >> >> I attach my data. >>

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
gt; >>> Jim >>> >>> >>> On Wed, Jun 10, 2015 at 10:53 AM, Rosa Oliveira >> <mailto:rosit...@gmail.com>> >>> wrote: >>>> Dear Don and all, >>>> >>>> I’ve read the tutorial and tried several codes before postin

Re: [R] graphs, need urgent help [from Rosa Oliveira]

2015-06-09 Thread Don McKenzie
s Oliveira, > > E-mail: rosit...@gmail.com <mailto:rosit...@gmail.com> > Tlm: +351 939355143 > Linkedin: https://pt.linkedin.com/in/rosacsoliveira > <https://pt.linkedin.com/in/rosacsoliveira> > _______

Re: [R] graphs, need urgent help (deadline :( )

2015-06-09 Thread Don McKenzie
The answer lies in learning to use the help (and knowing where to start). Did you look at the tutorial that comes with the R installation? ?plot ?lines ?par In the last, look for the descriptions of “col” and “lty”. Using plot() and lines(), and subsetting the four unique values of “sample

Re: [R] Summing certain values within columns that satisfy a certain condition

2015-02-27 Thread Don McKenzie
Use Jeff’s solution. This doesn’t account for ties. > On Feb 26, 2015, at 1:11 PM, Don McKenzie wrote: > > Kate — here is a transparent solution (tested but without NA treatment). > Doubtless there are cleverer faster ones, which later posters will present. > > HTH >

Re: [R] Summing certain values within columns that satisfy a certain condition

2015-02-26 Thread Don McKenzie
Kate — here is a transparent solution (tested but without NA treatment). Doubtless there are cleverer faster ones, which later posters will present. HTH # example with four columns and 20 rows nrows <- 20 A <- sample(c(1:100), nrows, replace=T) B <- sample(c(1:100), nrows, replace=T) C <- sampl

Re: [R] data frame cumulative row sum

2014-12-08 Thread Don McKenzie
; R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. Don McKenzie Research Ecologi

Re: [R] loops in R

2014-11-05 Thread Don McKenzie
] > using for-loop > > > Thanks > > [[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.

Re: [R] Help with Lowess smoother

2014-10-26 Thread Don McKenzie
gt; > Many thanks! > > [[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 pro

Re: [R] Is xyz point inside 3d convex hull?

2014-10-12 Thread Don McKenzie
n/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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Profess

Re: [R] Using PCA to filter a series

2014-10-02 Thread Don McKenzie
r. Beyond that, there are many approaches to signal/noise relations within time-series analysis. I am not a good source of help on these, and you probably need a statistical consult (locally?), which is not the function of this list. > > > Jonathan Thayn > > > > On Oct 2, 20

Re: [R] Using PCA to filter a series

2014-10-02 Thread Don McKenzie
> 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. Don McKenzie Research Ecologist P

Re: [R] Writing .csv file

2014-09-24 Thread Don McKenzie
___ > 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. Don McKenzie Res

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
else yo[i,j]<-0 } > + > + > + #Input data set for WinBUGS > + data<-list(N=200,P=10,R=Ro,z=yo) > + > + } #end > + > > also i cannot continue to get on a data. > > > many thanks again > > > Thanoon > > > > On 14 Septem

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
R=Ro,z=yo) > > } #end > > [[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/post

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread Don McKenzie
underneath to speed it up even in 2D. Not for the faint-of-heart to hack. Others? �dist3D�? On Aug 21, 2014, at 11:34 AM, Patzelt, Edward wrote: > This function unfortunately does not work in 3d space. > > Thoughts? > > > On Wed, Aug 20, 2014 at 4:57 PM, Don McKenzie wrote:

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Don McKenzie
y * > > [[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-

Re: [R] mutually exclusive events

2014-08-02 Thread Don McKenzie
>> 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. > > David Winsemius

Re: [R] Multiple plots and postscripts using split function

2014-07-31 Thread Don McKenzie
.n4.nabble.com/Multiple-plots-and-postscripts-using-split-function-tp4694850.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

Re: [R] structural equation models in R

2014-04-06 Thread Don McKenzie
roject.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. Don McKenzie Research Ecologist Pacific Wildland Fire Scien

Re: [R] grouping explanatory variables into "sets" for GLMM

2014-04-03 Thread Don McKenzie
different >>>> combinations of these sets and/or variables, sort of like running ordistep >>>> for ordinations? >>>> >>>> Thanks a bunch in advance for your help! >>>> Maria >>>> >>>> _

Re: [R] mean help?

2014-02-12 Thread Don McKenzie
ing guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and

Re: [R] xyplots in lattice - strange behaviour, possible bug?

2014-01-22 Thread Don McKenzie
On Jan 22, 2014, at 3:02 PM, Bert Gunter wrote: > Well, if the professor wrote that, it wouldn't have run for him > either! Fortune? Or just a great line? Don McKenzie Research Ecologist Pacific Wildland Fire Science Lab US Forest Service Affiliate Professor School of Enviro

Re: [R] quantiles with approximately the same number of data points within each quantile?

2013-12-06 Thread Don McKenzie
in each quantile? > > __ > 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. Don M

Re: [R] Tukey, Bartlett

2013-11-26 Thread Don McKenzie
___ > 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. Don McKenzie Research Ecolo

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-26 Thread Don McKenzie
requires a > tiny bit of hoop-jumping. > > Barry > > __ > 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 > an

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
myColors <- c(low.ramp[(num.breaks-min.breaks):num.breaks],high.ramp[2:max.breaks]) myColors } On Nov 25, 2013, at 4:27 PM, Don McKenzie wrote: > Bert or anyone else familiar with RColorBrewer: > > Has anyone tried to accomplish with RColorBrewer what I asked about in my > origi

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
Never mind. Solved. “cuts” argument back in levelplot(). Duh. On Nov 25, 2013, at 4:27 PM, Don McKenzie wrote: > Bert or anyone else familiar with RColorBrewer: > > Has anyone tried to accomplish with RColorBrewer what I asked about in my > original post (below)? > >

[R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
ho pages through all this and makes a suggestion, even if it doesn’t work. :-) On Nov 22, 2013, at 10:25 PM, Bert Gunter wrote: > Use the Rcolorbrewer package. > > -- Bert > > On Fri, Nov 22, 2013 at 8:43 PM, Don McKenzie wrote: >> I would like to produce a levelplot w

Re: [R] divergent colors around zero in levelplot()

2013-11-22 Thread Don McKenzie
Thanks Bert. I’ll check it out. Don On Nov 22, 2013, at 10:25 PM, Bert Gunter wrote: > Use the Rcolorbrewer package. > > -- Bert > > On Fri, Nov 22, 2013 at 8:43 PM, Don McKenzie wrote: >> I would like to produce a levelplot with divergent colors such that >> i

[R] divergent colors around zero in levelplot()

2013-11-22 Thread Don McKenzie
the default pink and blue but the split is at ~5.5 # do something clever here # e.g., my.colors <- levelplot(z ~ x*y,grid,col.regions=my.colors) # so there should be some light pink at the bottom and the rest increasingly intense blue Ideas appreciated. Thanks in advance. Don Mc

Re: [R] extraction of roots in R

2013-11-01 Thread Don McKenzie
If you want complex roots, there is a post by Ravi Varadhan from 2010, a reprint of which I found quickly by a google search at http://r.789695.n4.nabble.com/finding-complex-roots-in-R-td2541514.html On 1-Nov-13, at 11:20 AM, Don McKenzie wrote: If you just want the nth root of X, use X^(1

Re: [R] extraction of roots in R

2013-11-01 Thread Don McKenzie
ted, minimal, self-contained, reproducible code. Don McKenzie Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu __ R-help@r-project.org

Re: [R] min(NA,"bla") != min("bla", NA)

2013-09-26 Thread Don McKenzie
plicit na.rm=FALSE >>>> >>>>> min(NA,"bla", na.rm=FALSE) >>>> [1] NA >>>> >>>>> min("bla", NA, na.rm=FALSE) >>>> [1] "bla" >>> >>> >>> This should be all fixed

Re: [R] double matrix?

2013-07-31 Thread Don McKenzie
rch > Mayo Mail Code 715 > Room 1-195 Moos Tower > 420 Delaware St. SE > Minneapolis MN 55455 > Phone: (612)626-3281 > email: bruce...@umn.edu > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listi

Re: [R] when to use & pros/cons of dataframe vs. matrix?

2013-06-27 Thread Don McKenzie
es perhaps?) __ 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. Don McKenzie, Research

Re: [R] Simulating from a special type of bivariate exponential distribution

2013-06-16 Thread Don McKenzie
do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the

Re: [R] Forecasting MA model different to manually computation?

2013-05-22 Thread Don McKenzie
iling 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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 20

Re: [R] add identifier column by row

2013-05-21 Thread Don McKenzie
Duh -- I mean "for the latter" On 21-May-13, at 1:25 PM, Don McKenzie wrote: Do you want each number in "Date" to be repeated once (as in your example) or appear 48 times (so that you start over every 1440 rows, as in your request). For the former, rep(c(1:30),each=

Re: [R] add identifier column by row

2013-05-21 Thread Don McKenzie
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 provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific Wildla

Re: [R] pearson correlation significant level

2013-05-17 Thread Don McKenzie
roject.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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Ser

Re: [R] wrong data interpretation in R

2012-11-26 Thread Don McKenzie
guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Professor School of Environmental and Forest Sciences Uni

Re: [R] Help with loess

2012-11-19 Thread Don McKenzie
with-loess-tp4650132.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 guide http://www.R-project.org/posting- guide.html and p

Re: [R] How to do an infinite sum in R

2012-11-16 Thread Don McKenzie
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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824

Re: [R] commenting out a block of R code

2012-05-06 Thread Don McKenzie
ld provisional assent.' I suppose that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. -- Stephen Jay Gould Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Pro

Re: [R] Object not found using GAMs in MGCV Package

2012-01-16 Thread Don McKenzie
401-3371 __ 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. [[altern

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
Sorry -- you do have to highlight the quartz window to use identify(), but that shouldn't matter either. On Sep 18, 2011, at 2:41 PM, Don McKenzie wrote: > > On Sep 18, 2011, at 2:15 PM, bby2...@columbia.edu wrote: > >> Don and Duncan, >> >> That function wor

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
have an active device anymore. So it beats the purpose. > > Dan, > > I'm using Word 2004. Upgrading Word is an idea. I will definitely look into > it, although I didn't think those who didn't have this problem necessarily > had a higher version of Word. > >

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
rdoch Bonnie Yuan. Quoting Duncan Murdoch: On 11-09-18 3:48 PM, Don McKenzie wrote: On 18-Sep-11, at 12:38 PM, bby2...@columbia.edu wrote: This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the forum could help me. When I generat

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
On 18-Sep-11, at 12:59 PM, Duncan Murdoch wrote: On 11-09-18 3:48 PM, Don McKenzie wrote: On 18-Sep-11, at 12:38 PM, bby2...@columbia.edu wrote: This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the forum could help me. When I

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
with wings that are not equal -- Greenland First Nations elder quoted in EOS Transactions Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group Univers

Re: [R] ARIMA simulations

2011-07-25 Thread Don McKenzie
t.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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School

Re: [R] converting character to numeric

2011-06-21 Thread Don McKenzie
Bill is right on both points. My longer clumsier code is for chickens who are afraid to change any more than they have to. Don McKenzie On 21-Jun-11, at 4:36 PM, wrote: The point I would make is that for safety it's much better to use FALSE rather than F. FALSE is a reserved word

Re: [R] converting character to numeric

2011-06-21 Thread Don McKenzie
de.html and provide commented, minimal, self-contained, reproducible code. Science is organized skepticism in the reliability of expert opinion -- Richard Feynman Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Pro

Re: [R] Using jitter function with differing variable lengths

2011-04-18 Thread Don McKenzie
universe go to all the bother of existing? -- Stephen Hawking Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell

Re: [R] Partial Cross Correlation

2011-03-11 Thread Don McKenzie
Belay that. I misread the post. On 11-Mar-11, at 12:09 PM, Don McKenzie wrote: ?pacf On 11-Mar-11, at 9:42 AM, Kevin Boggs wrote: Does anyone know of any R code for computing partial cross- correlation? I have examples of cross correlation functions (ccfs) that are not smooth but rather

Re: [R] Partial Cross Correlation

2011-03-11 Thread Don McKenzie
ained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College o

Re: [R] cv.lm syntax error

2011-03-08 Thread Don McKenzie
ide commented, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Profes

Re: [R] allocating factor levels

2011-03-07 Thread Don McKenzie
ed, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of For

Re: [R] Parsing question, partly comma separated partly underscore separated string

2011-03-06 Thread Don McKenzie
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. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare

Re: [R] error in saved .csv

2011-03-01 Thread Don McKenzie
n/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. >>> >> >> >> >> -- >> Jim Holtman >> Data Munger Guru >>

Re: [R] Export R dataframes to excel

2011-03-01 Thread Don McKenzie
nted, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor Schoo

Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread Don McKenzie
___ > 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. Don McKenzie Research Ecologist Pacifi

Re: [R] scientific vs. fixed notation in xyplot()

2010-09-27 Thread Don McKenzie
- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington

Re: [R] hierarchical clustering with Jaccard index

2009-11-03 Thread Don McKenzie
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources and CSES Climate Impacts Group University of Washington

Re: [R] sort (all columns of) a matrix

2009-10-08 Thread Don McKenzie
lp PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources and CSE

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
ed to, you might expect i at the top-level to remain undefined. Hadley -- http://had.co.nz/ Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
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. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School

Re: [R] How not to keep the redundant space when convert a data frame with as.matrix()?

2009-09-16 Thread Don McKenzie
xy [1,] " 1" "k" [2,] " 2" "l" [3,] " 3" "m" [4,] " 4" "n" [5,] " 5" "o" [6,] " 6" "p" [7,] " 7" "q" [8,] " 8" "r" [9,] "

Re: [R] variable selection in logistic

2009-09-03 Thread Don McKenzie
; > <http://www.r-project.org/posting-guide.html> >> > and provide commented, minimal, self-contained, >>reproducible code. >> > >> > >> > >> &g

Re: [R] Unique command not deleting all duplicate rows

2009-08-24 Thread Don McKenzie
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 provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist

Re: [R] Selecting groups with R

2009-08-21 Thread Don McKenzie
Right, but he just wanted to eliminate "BLUE" as far as I could see. Your solution does more, of course. On 21-Aug-09, at 3:33 PM, David Winsemius wrote: On Aug 21, 2009, at 6:16 PM, Don McKenzie wrote: dataset[dataset$Color != "BLUE",] Will return a data.fram

Re: [R] Selecting groups with R

2009-08-21 Thread Don McKenzie
le.com/Selecting- groups-with-R-tp25088073p25088073.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 guide http://www.R-project.org/po

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Don McKenzie
;)) >> R> b2 >> [[1]] >> [1] "HH" "MM" "00" >> >> [[2]] >> [1] "HH" "MM" "00" >> >> [[3]] >> [1] "HH" "MM" "00" >> >> [[4]] >> [1] &quo

[R] axis values on lattice log-scale plot

2009-04-07 Thread Don McKenzie
nd a way to make the axis values display as simply numeric (i.e., 10,100,1000, ... on the X axis and proportions on the Y axis). Suggestions much appreciated. R 2.8.1 on mac OSX 10.4.11 Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor Co

Re: [R] Bar Plot ggplot2 Filling bars with cross hatching

2009-01-19 Thread Don McKenzie
e http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources CSES Climate Impacts Group University o

Re: [R] How to find the index

2008-09-16 Thread Don McKenzie
o be sorted on. HTH regards --- Peng Jiang 江鹏 ,Ph.D. Candidate Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell: 206-