[Rd] Will the R Project be a Mentoring Organization for GSOC 2025?

2025-01-21 Thread Greg Forkutza
Hi there, I just wanted to confirm if this will be true this year. Best, Greg Forkutza [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] feature request: optim() iteration of functions that return multiple values

2023-08-10 Thread Greg Snow
.000260 1.000506 > ## > ## $value > ## [1] 8.825241e-08 > ## > ## $counts > ## function gradient > ## 195 NA > ## > ## > > data$i > ## 195 > > plot(data$fun.value[1:data$i]) > > > > > -- > Enrico Schumann > Lucerne, Switzerland > http://enricoschumann.net > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] anova and intercept

2022-12-27 Thread Greg Snow
rg Plads 3, 2000 Frederiksberg, Denmark > > Phone: (+45)38153501 > > Office: A 4.23 > > Email: pd@cbs.dk Priv: pda...@gmail.com > > > > > -- > Statistics & Software Consulting > GKX Group, GKX Associates Inc. > tel: 1-877-GKX-GROUP > email: ggrothendieck at gmail.com > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] order of operations

2021-08-31 Thread Greg Minshall
Gabor Grothendieck wrote: > ... and maybe not having a guarantee would simplify implementation? +1 for: "The results of such statements are not defined.", or something to that effect. (Erasmus had something to say here. :) __ R-devel@r-project.org ma

Re: [Rd] S3 dispatch does not work for generics defined inside an environment

2021-07-01 Thread Greg Minshall
as > getting silly. i can imagine. > In the end, I wrote a package that implements lightweight python-like > modules for R and that has really improved my workflow. I hope to > publish this package later this year after I have cleaned it up a bit. cool --

Re: [Rd] S3 dispatch does not work for generics defined inside an environment

2021-06-30 Thread Greg Minshall
k > reliably. i'm not knowledgeable about S3. but, a different way to try to modularize large code bases is to split them into separate packages. just in case you hadn't already thought about, and rejected, that idea. cheers, Greg __ R-de

Re: [Rd] [External] Re: 1954 from NA

2021-06-03 Thread Greg Warnes
I would be glad to add this to one of my R packages, probably `gdata`.. -G Gregory R. Warnes, Ph.D. g...@warnes.net Eternity is a long time, take a friend! > On May 26, 2021, at 1:09 PM, Adrian Dușa wrote: > > Yes, that is even better. > Best, > Adrian > > On Wed, May 26, 2021 at 7:05 PM Dun

Re: [Rd] [External] Re: 1954 from NA

2021-05-24 Thread Greg Minshall
luke, > PLEASE DO NOT DO THIS! very happy to withdraw my offered alternative! cheers, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] 1954 from NA

2021-05-24 Thread Greg Minshall
column has for why the NA exists. i guess the CS'y thing that comes to my mind here is that one thing is the *semantics* of what you are trying to convey, and the other is how those semantics are *encoded* in whatever representation you are using. cheers, Greg __

Re: [Rd] 1954 from NA

2021-05-23 Thread Greg Minshall
+1 Avi Gross via R-devel wrote: > Arguably, R was not developed to satisfy some needs in the way intended. > > When I have had to work with datasets from some of the social sciences I have > had to adapt to subtleties in how they did things with software like SPSS in > which an NA was done us

Re: [Rd] New pipe operator and gg plotz

2020-12-09 Thread Greg Snow
e > >>> this goal. > >>> Which, in my opinion, would require one to model programs as > >>> directed graphs, along with some degree of asynchronous input. > >>> > >>> Presumably, these operators w

Re: [Rd] pipe(): input to, and output from, a single process

2020-03-17 Thread Greg Minshall
Dirk, > Octave had this already in the 1990s, see documentation for 'popen2' here: thanks. unix that had since the 1970s... :) cheers, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] pipe(): input to, and output from, a single process

2020-03-17 Thread Greg Minshall
Simon, > FWIW if you're on unix, you can use named pipes (fifos) for that: i've always wondered what named pipes actually were. thanks! cheers, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] pipe(): input to, and output from, a single process

2020-03-17 Thread Greg Minshall
y blocking, though other times one wants better control over when to block. cheers, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] pipe(): input to, and output from, a single process

2020-03-16 Thread Greg Minshall
heers, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-13 Thread Greg Minshall
Gabe, > Also, I would expect the year 1e50 and the "year" Inf to be functionally > equivalent in meaning (and largely meaningless) in context. indeed. thanks, Greg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-12 Thread Greg Minshall
IXct. storing years as a double makes me worry slightly about > year <- 1e50 > (year+1)-year [1] 0 which is not how one thinks of years (or integers) as behaving. cheers, Greg ps -- sorry for the ">" overloading! __ R-dev

Re: [Rd] Understanding the sequence of events when calling the R dpois function

2018-05-31 Thread Greg Minshall
Jason, as Chuck Berry (to whom, *thanks* for 'do {...} while(0)'!) suggested, using grep, or even grep executed from find, such as find . -type f -exec grep -H "dpois" \{\} \; | less (executed from the root of an R source tree), is your f

Re: [Rd] Different results for tan(pi/2) and tanpi(1/2)

2016-09-09 Thread Greg Snow
d >>> >>> By redefining tanpi with sinpi and cospi, we can get closer: >>> >>> > tanpi <- function(x) sinpi(x) / cospi(x) >>> >>> > tanpi(c(0, 1/2, 1, 3/2, 2)) >>> [1]0 Inf0 -Inf0 >>> >>> Hans We

Re: [Rd] [FORGED] Different results based on the order of arguments to par

2016-03-15 Thread Greg Snow
> hist(rexp(1000), main='') > abline( v=1, col='red') > > sp.par <- subplot(hist(rnorm(100), main=''), x='topright') > > subplotadd <- function(fun, pars) { > par(new=TRUE) > par(pars['plt']) >

Re: [Rd] [FORGED] Different results based on the order of arguments to par

2016-03-15 Thread Greg Snow
) > # Start new plot > plot.new() > # Set up coordinates on new plot > # (though plot.window() might be better here) > par(usr=c(0,1,0,1)) > # Start drawing > box() > points(c(0,1), c(0,1), pch=16, col='red', cex=3) > > Is there a good argument against doing t

[Rd] Different results based on the order of arguments to par

2016-03-14 Thread Greg Snow
tential responses to this issue: 1. consider that this is a rare enough issue that only Greg Snow will ever care and he has already learned the lesson, so do nothing (other than laugh at Greg when he forgets and has to remember to properly order his par arguments). 2. Since this came up as an issu

Re: [Rd] Inconsistency in treating NaN-results?

2015-11-30 Thread Greg Snow
IFICATION=C > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Why doesn't R have a float data type?

2015-06-30 Thread Greg Snow
deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] is.whole()

2014-10-28 Thread Greg Snow
oject.org wrote: > >> Diverted to R-devel, as I'm requesting comments about a proposal > >> to add is.whole() to R just so this issue does not trail on for > >> centuries (;-), see below. > >> > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Advice on package design for handling of dots in a formula

2014-10-15 Thread Greg Ridgeway
rs. Any elegant ways to do that? 3. Fix Approach #2, the coxph style, to try to remove redundant covariates. Not sure if there's a graceful way not involving string matching 4. Any existing elegant approaches to interpreting the dot? Or should I just do string matching to delete duplicate variable

Re: [Rd] Looking for new maintainer of orphans R2HTML SemiPar cghseg hexbin lgtdl monreg muhaz operators pamr

2014-09-05 Thread Greg Snow
(for the CRAN team) > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] how to list external dependencies (i.e., non-R packages)?

2014-07-18 Thread Greg Minshall
is package to CRAN? in general, builds will fail, unless the build machine happens to have one or both of the underlying libraries on it. (and, if i made it *compile* successfully -- fairly easy to do -- then the tests will fail or, if the tests *don't* fail, what were they testing?? :) che

[Rd] how to list external dependencies (i.e., non-R packages)?

2014-07-13 Thread Greg Minshall
ce my #error with a #warning), and just generate at error at run time? (this will require me to figure out what that means for build tests/, but obviously some sort of hack is doable.) cheers, Greg __ R-devel@r-project.org mailing list https://stat.et

[Rd] arguments to .Call(), .External should be read-only?

2014-07-08 Thread Greg Minshall
i'd like to consider these writable. assuming sufficient warnings in the documentation, etc., is that permissable? cheers, Greg Minshall __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] request for "minor" fix to src/library/tools/QC.r

2014-07-06 Thread Greg Minshall
s. a sample size of 1 is *always* my favorite. :) cheers, Greg Minshall --- src/library/tools/R/QC.r2014-03-25 01:15:06.0 +0200 +++ src/library/tools/R/mod-QC.r2014-07-06 14:05:46.0 +0300 @@ -4372,6 +4372,9 @@

Re: [Rd] DESCRIPTION.in file causes R CMD check to fail?

2014-07-05 Thread Greg Minshall
Duncan, > That looks like a good fix in any case. I'll put it in. (It's too > late to make it into 3.1.1, but I'll try to remember to backport it to > R-patched after the release.) great -- thanks! cheers, Greg Minshall

Re: [Rd] DESCRIPTION.in file causes R CMD check to fail?

2014-07-04 Thread Greg Minshall
UE pkgname <- desc["Package"] # should be same as pkgname0 } } (i'm looking at R-3.1.0.) XML doesn't run into this because although it has a DESCRIPTION.in, it does *not* have Makefile.in, so the suspect code isn't run. it s

[Rd] DESCRIPTION.in file causes R CMD check to fail?

2014-07-04 Thread Greg Minshall
t, "R CMD check" wants to look at DESCRIPTION, so i've let that also come into the package tarball. however, when i run "R CMD check" with DESCRIPTION.in in the tree, it fails: bash greg-minshalls-mbp: {3359} R CMD check image2k_0.1.tar.gz * using log directory ‘/User

Re: [Rd] creating a package from a development source tree

2014-07-01 Thread Greg Minshall
thanks! that, as did an off-list reply, gave me the clue i needed. cheers. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] creating a package from a development source tree

2014-07-01 Thread Greg Minshall
personal development tree to a tree from which the package can be passed to "R CMD *". do "you" have a makefile in their tree that creates this? during development, is this the path you use for building and testing? cheers, Greg Minshall

Re: [Rd] Pretty-printer for R data

2014-05-27 Thread Greg Snow
ly could be under control of parameters.) > > -s > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] dput line width

2014-05-27 Thread Greg Snow
; __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Strange behaviour of the ':' operator

2014-04-27 Thread Greg Snow
] > pi; x[4] - pi > [1] TRUE > [1] 1e-07 > > and the same, of course, for the seq() function. > I would understand this behaviour for 1e-14 or so, but it seems > unexpected for such a distinct difference as 1e-07. > > __

Re: [Rd] The case for freezing CRAN

2014-03-20 Thread Greg Snow
g | http://dirk.eddelbuettel.com > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Including R code from another package...

2013-10-03 Thread Greg Snow
ding, MC-150 > 605 East Springfield Avenue > Champaign, IL 61820-6371 > Phone: 217-300-1924 > http://www.geog.illinois.edu/~jgrn/ > AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat: jgrn307, Skype: jgrn3007 > > __ > R-devel@r-project.o

Re: [Rd] Milestone: 4000 packages on CRAN

2012-08-24 Thread Greg Snow
ven easier if you don't feel the need to understand them. It is only when us darn statisticians get involved and start asking the important questions that things get complicated. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-pro

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Greg Snow
University of Kansas > http://pj.freefaculty.org            http://quant.ku.edu > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] configure-args for R CMD build

2012-01-15 Thread Finak, Greg
I think you need to enclose the arguments to configure-args in quotes. i.e. > --configure-args='--with-graphviz=/Users/khansen/Source/usr' Greg Finak, Ph.D Post-doctoral Fellow Vaccine and Infectious Disease Division Fred Hutchinson Cancer Research Center Seattle, WA On 2012-01-1

Re: [Rd] how to make a true binary package?

2011-10-12 Thread Greg Snow
ight slow down an expert by a whole 30 seconds, but at least they would not be able to claim that they accidentally saw the code. Whether this violates the spirit of R licensing or not is another issue. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg

Re: [Rd] default par

2011-07-26 Thread Greg Snow
2 the plots will be expanded automatically to include all the data (unless you limit the range in the call). You could also write your own points or plot function that would check the range and give warnings then call the regular points or plot function. -- Gregory (Greg) L. Snow Ph.D. Statis

Re: [Rd] Fwd: Understanding R's "Environment" concept

2011-07-18 Thread Greg Snow
that environment without affecting variables of the same name in other environments. Environments can be used for other things as well, but that starts getting more technical. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 >

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
That works as well, I will suggest it to Luke for the package to use. Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: peter dalgaard [mailto:pda...@gmail.com] > Sent: Wedne

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
It looks like the spaces in the path is the problem, when I run the line below with shQuote then everything starts working and all is right with the world again. Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111

[Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
9 loaded via a namespace (and not attached): [1] tools_2.13.0 Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Wish R Core had a standard format (or generic function) for "newdata" objects

2011-04-28 Thread Greg Snow
through the predictors for the plots. It can also give you a command line version of the commands that you could then run, or loop through to get your plots. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Mess

Re: [Rd] Use keep.source for function in package with lazy loading

2011-04-18 Thread Greg Snow
x to make sure that everything is doing what it should there. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Sunday, April 10,

Re: [Rd] Use keep.source for function in package with lazy loading

2011-04-05 Thread Greg Snow
urce manually using .onAttach, I'll have to experiment some more. Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent

[Rd] Use keep.source for function in package with lazy loading

2011-04-04 Thread Greg Snow
keep the source to TRUE before calling install.package, but that does not seem to work. Is there a way to "strongly encourage" the source to be kept for this function (or the entire package)? Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare

Re: [Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Greg Snow
You might consider using odfWeave, then you can create a single document, save it as a word doc, and send it to collaborators where they can then cut and paste from the word doc to whatever they are using. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s

Re: [Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-15 Thread Greg Snow
You could use winProgressBar (windows only) or TkProgressBar (tcltk package required) instead, then nothing is output to the console/standard out but you still have a visual of your progress. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org

Re: [Rd] normality and equal variance testing

2011-01-24 Thread Greg Snow
guide further tests. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- > project.org] On Behalf Of Karthi Subramanian >

Re: [Rd] Wait for user input with readline()

2010-12-07 Thread Greg Snow
get the input (this will not allow the entry to ever be automated, the script will wait until the entry is submitted). You could combine these using if statements on the results of the interactive() function to help decide whether to pop up the boxes or not. Hope this helps, -- Gregory (Greg

Re: [Rd] Plotting an agnes tree with images instead of labels?

2010-11-18 Thread Greg Snow
You could use the my.symbols function in the TeachingDemos package to add the structures to the plot (once you create the plot without the default labels and find the positions to plot them at ). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s

Re: [Rd] small syntax suggestion

2010-08-24 Thread Greg Snow
want to change the warning to cat (and add \n), or extend the regular expression logic to other cases, or ... But if nothing else getting the warning will reinforce that parens/spaces are a good idea if only to avoid the computer complaining. The problem is I can think of some false positives tha

Re: [Rd] How do you make a formal "feature" request?

2010-08-24 Thread Greg Snow
s a success story of what you are trying to accomplish, I think the key elements were/are: Show that you are willing to put in some effort Clear documentation of what you want the function(s) to do Examples Enough usability that others use or are interested as well Hope this helps, -- Gr

[Rd] Should mcnemar.test use as.factor instead of factor

2010-04-27 Thread Greg Snow
[5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.11.0 -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare

Re: [Rd] R crashes when setWinProgressBar is give a numeric value for label argument

2010-02-11 Thread Greg Snow
(Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Thursday, February 11, 2010 11:05 AM > To: Greg Snow > Cc: r-devel > Subject: Re: [

[Rd] R crashes when setWinProgressBar is give a numeric value for label argument

2010-02-10 Thread Greg Snow
ed States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.10.1 > Same thing happens in non-patched 2.10.1 Thanks,

Re: [Rd] boxplot: auto sizing for ylim variable

2009-12-02 Thread Greg Snow
stead? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project.org] On Behalf Of violet lock > Sent: Tuesday, December

Re: [Rd] inconsistent behavior for logical vectors when using apply (" TRUE")

2009-11-04 Thread Greg Snow
what you are seeing. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project.org] On Behalf Of Adrian Dragulescu > Sen

Re: [Rd] Problem using model.frame with argument subset in own function

2009-09-10 Thread Greg B. Hill
the list of variable names so the collision didn't occur, e.g. df[, vars] instead of df[, var], it worked as expected. Sincerely, Greg B. Hill Gavin Simpson wrote: > > Dear List, > > I am writing a formula method for a function in a package I maintain. I > want the m

Re: [Rd] Polymorphism of predict

2009-08-19 Thread Greg Snow
Instead of using smooth.spline, use lm with spline terms, e.g.: > library(splines) > sp.fit <- lm(y~bs(x,4)) Now both use predict.lm for the predictions and all will be consistent. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthca

Re: [Rd] Accuracy (PR#13867)

2009-08-04 Thread Greg . Snow
What research into this problem did you do that failed to turn up FAQ 7.31? --=20 Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bou

Re: [Rd] Accuracy (PR#13867)

2009-08-04 Thread Greg Snow
What research into this problem did you do that failed to turn up FAQ 7.31? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bou

Re: [Rd] Recommendations for a quick UI.

2009-06-02 Thread Greg Snow
GUI with R doing the heavy work behind the scenes. There are various examples of tools using the excel interface available. There is a lot of info at: http://www.sciviews.org/_rgui/ Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s

Re: [Rd] License status of CRAN packages

2009-04-23 Thread Greg Snow
te to the discussion. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project.org] On Behalf Of Dirk Eddelbuettel > Sent: Thursda

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Greg Snow
(I do remember it made things simpler than using the average of the middle 2 when n was even). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: Simone Giannerini [mailto:sgianner...@gmail.

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Greg Snow
directly bypassing the checks/branches. Just out of curiosity (from someone who only learned from English (Americanized at that) and not Italian texts), what would the median of [Low, Low, Medium, High] be? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Greg Snow
I see the same problem on Windows XP. But if I run loess with surface='direct' then the results are correct. So it looks like the problem comes from the smoothing/interpolating, not the main loess algorithm. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain

Re: [Rd] getGraphicsEvent in an example

2009-02-17 Thread Greg Snow
playSudoku in the sudoku package and dynIdentify in TeachingDemos. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bou

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Greg Snow
Or use range( 0, y1, y2, y3, na.rm=TRUE, finite=TRUE ) -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: William Dunlap [mailto:wdun...@tibco.com] > Sent: Thursday, February 05, 200

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Greg Snow
, y1, y2, y3) and it will give enough room to add the other y variables in latter. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [ma

Re: [Rd] [R] Is abline misbehaving?

2009-02-05 Thread Greg Snow
Apparently the fix was simpler than I anticipated (at least for Prof. Ripley). Thanks for finding and implementing this improvement. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From

Re: [Rd] gregexpr - match overlap mishandled (PR#13391)

2008-12-12 Thread Greg . Snow
ll of the string. Here is one way to do it= with your example: > gregexpr("1122(?=3D1122)", paste(rep("1122", 10), collapse=3D""), perl= =3DTRUE) [[1]] [1] 1 5 9 13 17 21 25 29 33 attr(,"match.length") [1] 4 4 4 4 4 4 4 4 4 -- Gregory (Gr

Re: [Rd] gregexpr - match overlap mishandled (PR#13391)

2008-12-12 Thread Greg Snow
f the string. Here is one way to do it with your example: > gregexpr("1122(?=1122)", paste(rep("1122", 10), collapse=""), perl=TRUE) [[1]] [1] 1 5 9 13 17 21 25 29 33 attr(,"match.length") [1] 4 4 4 4 4 4 4 4 4 -- Gregory (Greg) L. Snow P

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Greg . Snow
r the scrollbar has= been created and placed. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of [E

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Greg Snow
r the scrollbar has been created and placed. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of [EMAIL PRO

Re: [Rd] writting null (\000 or ^@) to an external text file without the new warning

2008-10-28 Thread Greg Snow
that. Thanks again, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: Simon Urbanek [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 28, 2008 3:20 PM > To: Greg Snow > Cc: R-dev

[Rd] writting null (\000 or ^@) to an external text file without the new warning

2008-10-28 Thread Greg Snow
arnings before doing this, but then if there is some other warning generated, then I will miss the other warning(s). Is there a better way to write the null to the text file? Or is there a way to suppress just this warning without suppressing any other warnings that may occur? Thanks, -- Gr

Re: [Rd] RFC: Kerning, postscript() and pdf()

2008-10-16 Thread Greg Snow
ank You to the rest of R core for all the great work. R: Come for the price, Stay for the Quality -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] &

[Rd] splinefun gives incorrect derivs when extrapolating to the left (PR#13132)

2008-10-06 Thread Greg . Snow
ics, package:grDevices, package:ut= ils, package:datasets, package:methods, Autoloads, package:base -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Cross-platform function availability

2008-09-15 Thread Greg Snow
give some idea if the function works on the tested platforms (if the documentation for the function has examples not wrapped in dontrun commands or other tests). Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111

[Rd] Typo in man page for "packBits" (PR#11435)

2008-05-10 Thread greg
nput (using only the lowest bit for raw or integer vectors) least-significant bit first to a raw or integer vector. } \details{ -Greg _ platform i386-apple-darwin8.10.1 arch i386 os darwin8.10.1 system i386, darwin8.10.1 status ma

Re: [Rd] HOW TO AVOID LOOPS

2008-04-14 Thread Greg Snow
st) [1] TRUE For the second question, you can do something like: > test2 <- c(0,0,1,0,0,0,3,0,0,0,2,0,1,0,0,0,0,0,0,6) > out2 <- out * c( out[-1]==0, 1 ) > all.equal(out2,test2) [1] TRUE -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthc

Re: [Rd] Clipping using par(plt=..., xpd=FALSE) inconsistencies

2008-03-03 Thread Greg Snow
ion set by clip is only honored when "reset"? or that these functions reset the clipping region to match the plot region? (my tests were done using the latest windows port and a default graphics window) Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain H

Re: [Rd] mean (PR#10864)

2008-02-28 Thread Greg Snow
Look again at the whole function of mean.default. All of the missing values have already been removed if na.rm==TRUE before the call to stats::median, so why waste time looking for missing values that are not there. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain

[Rd] Clipping using par(plt=..., xpd=FALSE) inconsistencies

2008-02-22 Thread Greg Snow
ne have a better work around than drawing transparent boxes? Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Assigning a sub-matrix from a data frame to a regular (PR#10822)

2008-02-21 Thread Greg . Snow
something the computer knows about. Wrap the d[,1:2] in either as.matrix or unlist and it does what I expect you expect it to do. Hope this helps, --=20 Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 =20 =20 > -Original Mess

Re: [Rd] Assigning a sub-matrix from a data frame to a regular matrixcauses strange behaviour (version 2.6.1) (PR#10799)

2008-02-21 Thread Greg Snow
the computer knows about. Wrap the d[,1:2] in either as.matrix or unlist and it does what I expect you expect it to do. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- >

Re: [Rd] Vector binding on harddisk

2008-02-14 Thread Greg Snow
You may want to look at the SQLiteDF package, this allows you to put your data into an SQLite database and treat that like a normal vector or data frame inside of R. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408

Re: [Rd] 0.45<0.45 = TRUE (PR#10744)

2008-02-12 Thread Greg Snow
esult then they should read FAQ 7.31 (and maybe even include a link they can click on right then). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL

[Rd] Minor documentation bug in R-exts (PR#10515)

2007-12-14 Thread Greg . Snow
Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 =20 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] gregexpr (PR#9965)

2007-10-11 Thread Greg . Snow
tr(,"match.length") [1] 2 2 The book "Mastering Regular Expressions" by Jeffrey Friedl has a lot of detail on the hows and whys of regular expression matching. --=20 Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 =20

Re: [Rd] gregexpr (PR#9965)

2007-10-10 Thread Greg Snow
tch.length") [1] 2 2 The book "Mastering Regular Expressions" by Jeffrey Friedl has a lot of detail on the hows and whys of regular expression matching. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -

  1   2   >