Re: [R] finding components of an API

2017-05-28 Thread Spencer Graves
rent web sites. If spotcrime.com says it's OK to access their web site as you have AND you'd like to add a function to do this to the "Ecfun" package, please go to R-Forge, find the "Ecdat" project, and "request to join" I will approve. Spencer Grave

Re: [R] Looking for a package to replace xtable

2017-04-22 Thread Spencer Graves
packageSum" and "writeFindFn2xls" can provide more information. * a vignette, also available at "https://journal.r-project.org/archive/2009/RJ-2009-017/RJ-2009-017.pdf;. hope this helps Spencer Graves On 2017-04-22 6:47 AM, BR_email wrote: David:

Re: [R] qqplot for binomial distribution

2017-04-17 Thread Spencer Graves
: set.seed(123) qqplot(jitter(rbinom(n=100,size=100,p=.05)), jitter(rbinom(n=100,size=100,p=.05) )) Spencer Graves Best Regards, Ashim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] The R-help community list was started on this day 20 years ago

2017-04-02 Thread Spencer Graves
On 2017-04-02 8:42 AM, peter dalgaard wrote: On 02 Apr 2017, at 14:53 , Spencer Graves <spencer.gra...@effectivedefense.org> wrote: On 2017-04-02 4:10 AM, peter dalgaard wrote: Not fooling, no. However, r-help/r-announce/r-devel was a restructuring of the r-testers list. This goe

Re: [R] The R-help community list was started on this day 20 years ago

2017-04-02 Thread Spencer Graves
Martin Maechler so the actual start may have been a few days before. So R was 11 when we celebrated its tenth birthday in Ames, Iowa, August 8-10, 2007? Best Wishes, Spencer Graves ... Incidentally, looking at the last posts of r-testers, it seems that CRAN turned 20 las

Re: [R] Fwd: Error: memory exhausted (limit reached?)

2017-03-14 Thread Spencer Graves
under Ubuntu 16.10's R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Did you try R 3.3.3? Spencer Graves Forwarded Message Subject: Error: memory exhausted (limit reached?) Date: Mon, 13 Mar 2017 16:51:15 +0100 From: Guillaume MULLER <g...@presans.

Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Spencer Graves
in R. Hope this helps. Spencer Graves On 2016-12-30 8:40 PM, Liza van Eijk wrote: Dear Yingqi, Have you had any luck finding a way to run an Elliptic Fourier Analysis on 3D coordinates in R? If so, could you let me know which package you used? Thank you. Kind regards, Liza

Re: [R] Export R output in Excel

2016-12-29 Thread Spencer Graves
his writes an Excel workbook with 3 sheets. That may not be what you want, but it might provide other options. Spencer Graves On 2016-12-29 3:19 AM, Jim Lemon wrote: Hi Bryan, What functions like "htmlize" (prettyR) do is format the basic R output into HTML tables with the option of i

Re: [R] Log plus one transformation in R

2016-12-12 Thread Spencer Graves
"?log" includes documentation for "log1p" in the base package Will that work? Spencer Graves On 12/12/2016 10:23 AM, Faradj Koliev wrote: Hi all, How do I perform log(x+1) in R? log1p_trans() from the package ”scales" doesn’t seem to w

Re: [R] are R packages safe?

2016-12-08 Thread Spencer Graves
On 12/8/2016 12:24 PM, Marc Schwartz wrote: Dimitri, Even if you narrowly define "safe" as being virus/malware free and even if the CRAN maintainers have extensive screening in place, the burden will still be on the end users to test/scan the downloaded packages (whether in source or binary

Re: [R] are R packages safe?

2016-12-08 Thread Spencer Graves
a package if that line of code was not exercised in any of the standard tests. Even of they could catch that, I don't know if they'd catch "do.call(q, list())" Best Wishes, Spencer Graves Thank you! Dimitri On Thu, Dec 8, 2016 at 1:04 PM, Marc Schwartz <marc_schwa...@m

Re: [R] Inconsistency of 1^NA=1 vs. 1.1^NA=NA

2016-11-17 Thread Spencer Graves
> (1+ 0i)^ NA [1] NA > sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.6 (El Capitan) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils [5]

Re: [R] a book recommendation, please [O/T]

2016-11-08 Thread Spencer Graves
of this book when I did. Still, any title "with R" sounds like it's worth reviewing and maybe using. Spencer Graves On 11/8/2016 12:36 AM, Erin Hodgess wrote: I like BH^2 as well as a reference book! I actually think I will go with the DOE with R by Larson. Tha

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Spencer Graves
I couldn't get xls.reader{ProjectTemplate} to work. read.xlsx{openxlsx} read the file I wanted to read. Spencer Graves On 9/26/2016 5:09 PM, jim holtman wrote: I use the "openxlsx" package to handle spreadsheets. Jim Holtman Data Munger Guru What is the problem

Re: [R] Diethelm Wuertz (founder 'Rmetrics')

2016-08-10 Thread Spencer Graves
Diethelm and Barbara very generously invited me into their home after I had contacted Diethelm asking about Rmetrics prior to visiting Zürich years ago. I agree with Martin. His legacy will live on via the Rmetrics code and companion books. I don't know if anyone else will be able to

Re: [R] Reading and converting time data via read.table

2016-06-07 Thread Spencer Graves
ge version: install.packages("Ecfun", repos="http://R-Forge.R-project.org;). If I recall correctly, the R-Forge version works the same as the CRAN version for POSIX but fixes a subtle bug for Dates. Hope this helps. Spencer Graves p.s. If anyone knows a better way t

Re: [R] with vs. attach

2016-05-08 Thread Spencer Graves
s solution solved my immediate problem, and it's not immediately obvious to me how his "expr_text" function (or other functions in "lazyevel") to produce a better solution. Thanks again to David, Peter and Hadley for their replies. Spencer Graves On 5/6/2016 5:08

Re: [R] with vs. attach

2016-05-06 Thread Spencer Graves
On 5/6/2016 6:46 AM, peter dalgaard wrote: On 06 May 2016, at 02:43 , David Winsemius <dwinsem...@comcast.net> wrote: On May 5, 2016, at 5:12 PM, Spencer Graves <spencer.gra...@effectivedefense.org> wrote: I want a function to evaluate one argument in the environment of

Re: [R] with vs. attach

2016-05-06 Thread Spencer Graves
"The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, May 5, 2016 at 7:38 PM, Spencer Graves <spencer.gra...@effectivedefense.org> wrote: Hi, David:

Re: [R] with vs. attach

2016-05-05 Thread Spencer Graves
Hi, David: That works. Thanks very much. Spencer Graves On 5/5/2016 7:43 PM, David Winsemius wrote: On May 5, 2016, at 5:12 PM, Spencer Graves <spencer.gra...@effectivedefense.org> wrote: I want a function to evaluate one argument in the environment of a data.frame supplied as a

[R] with vs. attach

2016-05-05 Thread Spencer Graves
unctions "eval.w.attach" works but "eval.w.with" fails: dat <- data.frame(a=1:2) eval.w.attach <- function(x, dat){ attach(dat) X <- x detach() X } eval.w.with <- function(x, dat){ with(dat, x) } eval.w.attach(a/2, dat) # returns c(.5, 1) eval.w.wit

Re: [R] p values from GLM

2016-04-02 Thread Spencer Graves
n of publications, articles and software, for which the authors are not remunerated from copyright proceeds should not be limited by pre-internet rules that stifle unnecessarily the distribution of knowledge and with it improvements in productivity and economic

Re: [R] package ‘xlsx’ is not available (for R version 3.2.3)

2016-02-13 Thread Spencer Graves
If you aren't happy with that, you might review other options: library(sos) > (xlsx <- ???xlsx) found 372 matches; retrieving 19 pages 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Downloaded 268 links in 58 packages. This opened a table in my default browser listing 268 help pages

Re: [R] calling plot

2016-02-09 Thread Spencer Graves
th" solution. Thanks again, Spencer Cheers, Bert Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Fe

Re: [R] calling plot

2016-02-09 Thread Spencer Graves
ts methods base loaded via a namespace (and not attached): [1] tools_3.2.3 I don't understand this, but "with" is acceptable for my current needs. Thanks again to Bert & Jeff. Spencer Graves Best, Bert Bert Gunter "The trouble with having an

[R] calling plot

2016-02-08 Thread Spencer Graves
I'm getting an interesting error: > plotxy <- function(x, ...){ + plot(x, ...) + } > XY <- data.frame(x1=1:3, y1=4:6) > plotxy(y1~x1, XY, xlim=c(0, max(x1))) Show Traceback Rerun with Debug Error in eval(expr, envir, enclos) : object 'x1' not found The following work:

Re: [R] calling plot

2016-02-08 Thread Spencer Graves
gt; -- > Sent from my phone. Please excuse my brevity. > > On February 8, 2016 7:17:57 PM PST, Spencer Graves > <spencer.gra...@effectivedefense.org> wrote: > > I'm getting an interesting error: > > > plotxy <- function(x, ...){ > > + plot(x

Re: [R] R project and the TPP

2016-02-04 Thread Spencer Graves
ng information security problems, such as widespread and massive vulnerability in closed-source home routers." (www.eff.org/issues/tpp) I hope you find this interesting and useful even if some of it is off topic. Spencer Graves On 2/4/2016 5:15 PM, Rolf Turner wrote: Quite a wh

Re: [R] R project and the TPP

2016-02-04 Thread Spencer Graves
ews/US/2015/12/21/Congress-repeals-country-of-origin-labeling-for-meat/3241450709277/). Spencer Graves __ 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 guid

Re: [R] Multiple Integrals

2015-08-29 Thread Spencer Graves
#39;t think this can be handled for log normal distribution by integrals by hand. Have you looked at distr and related packages on CRAN? Spencer Graves Sorry! My tired eyes missed the absolute value. FWIW, there are some quadrature packages on CRAN. Chuck

Re: [R] NATURAL Smoothing B-splines

2015-08-02 Thread Spencer Graves
library(sos) ns. - findFn('natural spline') found 191 matches; retrieving 10 pages 2 3 4 5 6 7 8 9 10 Downloaded 113 links in 70 packages. ns2 - findFn('natural splines') found 145 matches; retrieving 8 pages 2 3 4 5 6 7 8 Downloaded 70 links in 42 packages. ns2. - ns.|ns2 ns2. # This

Re: [R] Returning to parent function

2015-03-17 Thread Spencer Graves
On 3/17/2015 10:01 AM, David Winsemius wrote: On Mar 16, 2015, at 5:05 PM, Saptarshi Guha wrote: Example was complicated, but here is a simpler form continueIfTrue - function(mm=return()){ eval(mm) } What are you trying to accomplish by passing `return()` to a formal parameter?

Re: [R] Course and book announcements on r-help

2015-03-14 Thread Spencer Graves
While answering a question, I believe it's acceptable (even encouraged) to cite a relevant book, even if it's yours ;-) Spencer On 3/14/2015 9:53 AM, Martin Maechler wrote: John Kane jrkrid...@inbox.com on Fri, 13 Mar 2015 06:16:19 -0800 writes: I have the feeling

Re: [R] Date extract Year

2015-03-08 Thread Spencer Graves
The Ecfun package includes a function as.Date1970, that merely provides a default origin for as.Date. This kind of thing can be found using library(sos) findFn('as.Date1970') This produced a list in my default browser showing 4 links in 3 packages, the first 2 of which

Re: [R] Numerical stability of eigenvalue and hessian matrix in R

2015-02-18 Thread Spencer Graves
On Feb 18, 2015, at 1:54 PM, David Winsemius dwinsem...@comcast.net wrote: On Feb 18, 2015, at 1:13 PM, C W wrote: Thanks Thierry for the pointer, that's explains the problem. Is there anything I can do about the matrix instability or numerical inaccuracy? There are matrix methods

Re: [R] Numerical stability of eigenvalue and hessian matrix in R

2015-02-18 Thread Spencer Graves
On Feb 18, 2015, at 2:15 PM, Spencer Graves spencer.gra...@prodsyse.com wrote: On Feb 18, 2015, at 1:54 PM, David Winsemius dwinsem...@comcast.net mailto:dwinsem...@comcast.net wrote: On Feb 18, 2015, at 1:13 PM, C W wrote: Thanks Thierry for the pointer, that's explains

Re: [R] qq-Plot function in version 3.1.2.

2015-02-13 Thread Spencer Graves
On Feb 13, 2015, at 1:32 PM, CHIRIBOGA Xavier xavier.chirib...@unine.ch wrote: Hello! SORRY PROBLEMS WITH FUNCTIONS AGAIN... I NEED TO RUN A qqPlot ...I TRIED TO INSTALL IT , BUT A WARNING MESSAGE SAID qqPlot is not available for version 3.1.2. What do you want?

Re: [R] Interview questions?

2015-01-11 Thread Spencer Graves
this helps. Spencer Graves On Jan 11, 2015, at 8:46 AM, Keith S Weintraub kw1...@gmail.com wrote: Folks, I was wondering if anyone has put together a list of R job interview questions? I’m thinking of about 5-20 possibly open ended questions for interviewing a candidate to do R

Re: [R] Comparing Latin characters with and without accents?

2014-12-14 Thread Spencer Graves
, 2014, at 2:32 AM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Wonderful. Thanks very much. Spencer On 11/30/2014 2:25 AM, Milan Bouchet-Valat wrote: Le dimanche 30 novembre 2014 à 02:14 -0800, Spencer Graves a écrit : Hello: How can one convert Latin

Re: [R] combining two distributions

2014-12-08 Thread Spencer Graves
Have you considered distr and related packages? If this does not solve your problem, have you considered searching with findFn in the sos package? If that still does not produce sufficient enlightenment, please try this list again with commented, minimal, self-contained,

[R] Comparing Latin characters with and without accents?

2014-11-30 Thread Spencer Graves
Hello: How can one convert Latin characters with to the corresponding characters without? For example, I want to convert ú to u, similar to how tolower('U') returns u. This can be done using chartr{base}, e.g., chartr('ú', 'u', 'Raúl') returns Raul. However, I wondered if a

Re: [R] Comparing Latin characters with and without accents?

2014-11-30 Thread Spencer Graves
Wonderful. Thanks very much. Spencer On 11/30/2014 2:25 AM, Milan Bouchet-Valat wrote: Le dimanche 30 novembre 2014 à 02:14 -0800, Spencer Graves a écrit : Hello: How can one convert Latin characters with to the corresponding characters without? For example, I want to convert ú

Re: [R] Parsing Google Finance page data?

2014-11-20 Thread Spencer Graves
The Ecfun package includes functions written to scrape data from web pages. See, e.g., readUShouse, readUSsenate, readUSstateAbbreviations. They use getURL{RCurl} and readHTMLTable{XML}. Hope this helps. Spencer Graves On 11/20/2014 5:42 PM, Matt Considine wrote: Hi

Re: [R] Trace of product of matrices

2014-10-19 Thread Spencer Graves
On 10/19/2014 8:42 AM, peter dalgaard wrote: On 19 Oct 2014, at 16:43 , Wagner Bonat wbo...@gmail.com wrote: Dear, I have to compute the trace of a product between four matrices. For example, I know the matrices Wi, Wj and C, I need to compute this -trace(Wi%*%C^-1%*%Wj%*%C^-1) I would like

Re: [R] Trace of product of matrices

2014-10-19 Thread Spencer Graves
On 10/19/2014 8:42 AM, peter dalgaard wrote: On 19 Oct 2014, at 16:43 , Wagner Bonat wbo...@gmail.com wrote: Dear, I have to compute the trace of a product between four matrices. For example, I know the matrices Wi, Wj and C, I need to compute this -trace(Wi%*%C^-1%*%Wj%*%C^-1) I would like

Re: [R] a REALLY dumb question

2014-10-06 Thread Spencer Graves
-Plus almost daily for over 20 years; if I'm not mistaken, he still accepts suggestions for changes via GitHub). Spencer Graves S Ellison *** This email and any attachments are confidential. Any use...{{dropped:8

Re: [R] estimation for growth incidence curve

2014-08-31 Thread Spencer Graves
__ 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. -- Spencer Graves, PE, PhD President and Chief Technology

[R] clean email addresses?

2014-08-30 Thread Spencer Graves
Contact Lists for Email Marketing Campaigns; www.wikihow.com/Clean-Large-Email-Contact-Lists-for-Email-Marketing-Campaigns. Before I went further with this, I felt a need to ask. Thanks, Spencer Graves __ R-help@r-project.org mailing

Re: [R] big data?

2014-08-07 Thread Spencer Graves
and analytic functionality. I have used these packages on 15 Gb files of 18 million rows and 250 columns. On Tuesday, August 5, 2014 1:39:03 PM UTC-5, David Winsemius wrote: On Aug 5, 2014, at 10:20 AM, Spencer Graves wrote: What tools do you like for working with tab delimited text files up

Re: [R] big data?

2014-08-07 Thread Spencer Graves
, at 10:20 AM, Spencer Graves wrote: What tools do you like for working with tab delimited text files up to 1.5 GB (under Windows 7 with 8 GB RAM)? ?data.table::fread Standard tools for smaller data sometimes grab all the available RAM, after which CPU usage drops to 3

Re: [R] Normal probability plot examples for Wikipedia (was qqnorm with histogram?)

2014-08-05 Thread Spencer Graves
for the normal plot breaks down and you need to resort to simulation techniques, e.g. something like Y - rgamma(10, 5) qqnorm(scale(Y)) for (i in 1:10) lines(qqnorm(sort(scale(rnorm(10))),plot=FALSE), col=lightgray) -pd On 04 Aug 2014, at 18:55 , Spencer Graves spencer.gra...@structuremonitoring.com

[R] big data?

2014-08-05 Thread Spencer Graves
What tools do you like for working with tab delimited text files up to 1.5 GB (under Windows 7 with 8 GB RAM)? Standard tools for smaller data sometimes grab all the available RAM, after which CPU usage drops to 3% ;-) The bigmemory project won the 2010 John Chambers

[R] Normal probability plot examples for Wikipedia (was qqnorm with histogram?)

2014-08-04 Thread Spencer Graves
, Jim Lemon wrote: Hi Spencer, The last example for the twoord.plot function (plotrix) does this. Jim On Sun, 3 Aug 2014 12:38:10 PM Spencer Graves wrote: Does a function exist that combines a normal probability plot with a histogram and maybe a density estimate on the same plot

[R] qqnorm with histogram?

2014-08-03 Thread Spencer Graves
Does a function exist that combines a normal probability plot with a histogram and maybe a density estimate on the same plot? I'm revising the Wikipedia article on Normal probability plot, and I think it would be good to provide examples of this. Thanks, Spencer

Re: [R] Working with the Animation package in R

2014-07-31 Thread Spencer Graves
, self-contained, reproducible code. -- Spencer Graves, PE, PhD President and Chief Technology Officer Structure Inspection and Monitoring, Inc. 751 Emerson Ct. San José, CA 95126 ph: 408-655-4567 web: www.structuremonitoring.com __ R-help@r

Re: [R] How to modify the body of a function?

2014-07-27 Thread Spencer Graves
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. -- Spencer Graves, PE, PhD President and Chief Technology Officer Structure Inspection and Monitoring, Inc

Re: [R] How to modify the body of a function?

2014-07-27 Thread Spencer Graves
On 7/27/2014 4:29 PM, MacQueen, Don wrote: As long as people are sharing their preferences . . . I find return() useful in a scenario like the following: Myfun - function() { {a few lines of code} if (condition) return(whatever) {Many, many lines of code} Results } Which I find

Re: [R] How to modify the body of a function?

2014-07-27 Thread Spencer Graves
On 7/27/2014 8:03 PM, super wrote: Tks for your opinions, let me describe the background for my question: The orignal purpose is to call the function which defined in anothor function, e.g. f1-function(){ x-1 f2-function(x) {x} f3-function(){ 1+1 } a-1 return(x+a) } The real function f1 may

[R] QR code?

2014-07-18 Thread Spencer Graves
Is there an R function to convert text to a QR Code? My search attempts yielded QR decompositions ;-) Thanks, Spencer __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] intermittent errors in [.data.frame

2014-07-03 Thread Spencer Graves
I get inconsistent results from [.data.frame. I've so far been unable to create a simple, replicable example nor a workaround. With debug, I traced the problem to rows - rows[i], line 131 in [.data.frame: In this example, rows = 1:45, and rows[1:3] = 1:3, as we expect. However with

Re: [R] intermittent errors in [.data.frame

2014-07-03 Thread Spencer Graves
Hi, Duncan: On 7/3/2014 12:25 PM, Duncan Murdoch wrote: On 03/07/2014 2:55 PM, Spencer Graves wrote: I get inconsistent results from [.data.frame. I've so far been unable to create a simple, replicable example nor a workaround. With debug, I traced the problem to rows - rows[i

Re: [R] mixing grid and traditional graphics

2014-06-30 Thread Spencer Graves
that this differs for the different devices. Would you be surprised if you wrote some text on a piece of paper, then layed a paper map over the top and could not read the paper? If you want the text visible on top of the map, do the text after the map. On Sun, Jun 29, 2014 at 5:56 PM, Spencer Graves

[R] mixing grid and traditional graphics

2014-06-29 Thread Spencer Graves
I'm confused with the results I'm getting from mixing grid and traditional graphics. A toy example appears below: The png file created by gridFn() shows a label over Africa, as expected. However, when run interactively, a label appears for roughly half a second, then disappears.

Re: [R] Trucated Normal Function

2014-06-05 Thread Spencer Graves
library(sos) tn - findFn('truncated normal', 999) found 421 matches; retrieving 22 pages 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Downloaded 305 links in 138 packages. tn # opens the list of 305 links in a web browser installPackages(tn) # installs the packages with the most

[R] as.character.call?

2014-06-03 Thread Spencer Graves
How can I get a call object as a character string? Example: cl - quote(round(10.5)) str(cl) language round(10.5) as.character(cl) [1] round 10.5 How can I get round(10.5)? I can get this answer for this toy problem with paste0(paste(as.character(cl), collapse='('),

Re: [R] as.character.call?

2014-06-03 Thread Spencer Graves
Hi, Henrik: Thanks. I should probably know that by now ... but it didn't come to mind just now. Thanks again. Spencer. On 6/3/2014 8:13 PM, Henrik Bengtsson wrote: cl - quote(round(10.5)) deparse(cl) [1] round(10.5) /Henrik On Tue, Jun 3, 2014 at 8:07 PM, Spencer Graves spencer.gra

Re: [R] how to access an executing environment?

2014-05-29 Thread Spencer Graves
funList ib nbo op [1] 2 2 2 1 [1] bi bo fun funList ib nbo op [1] 5.1 4.1 4.1 2.1 [1] bi bo fun funList ib nbo op On Wed, May 28, 2014 at 6:29 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hello: I'm writing code

[R] how to access an executing environment?

2014-05-28 Thread Spencer Graves
Hello: I'm writing code to modify a function, and I want to know how to access the executing environment of the function. The example below extracts the body of a function and executes a single line but can't find x1 in the function's executing environment. How would you suggest

Re: [R] clipart - box with rounded corners?

2014-05-12 Thread Spencer Graves
reading that first part of your chapter 6 to see if that produces sufficient enlightenment. I failed to achieve sufficient understanding of grid from your first edition. Thanks, Spencer Paul On 05/12/14 13:46, Spencer Graves wrote: Is there a function for creating a box

Re: [R] clipart - box with rounded corners?

2014-05-12 Thread Spencer Graves
edition of our R Graphics. I'll try reading that first part of your chapter 6 to see if that produces sufficient enlightenment. I failed to achieve sufficient understanding of grid from your first edition. Thanks, Spencer Paul On 05/12/14 13:46, Spencer Graves wrote

Re: [R] Making a trial based Package for 30-days.

2014-05-12 Thread Spencer Graves
On 5/12/2014 7:28 AM, Barry Rowlingson wrote: On Mon, May 12, 2014 at 1:11 PM, Ashis Deb ashisde...@gmail.com wrote: Well it's the company requirement to do so , and give it on a trial basis to client to check , if they like they will BUY or it will self destruct itself , No,

Re: [R] Making a trial based Package for 30-days.

2014-05-12 Thread Spencer Graves
On 5/12/2014 8:21 AM, Barry Rowlingson wrote: On Mon, May 12, 2014 at 3:45 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: One company I know installed an S-Plus or R package only on servers, so their customers had to use it on a server. (In this case, the customers

[R] clipart - box with rounded corners?

2014-05-11 Thread Spencer Graves
Is there a function for creating a box with rounded corners? I can write one, but I thought I'd ask first. Thanks, Spencer Graves __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] clipart - box with rounded corners?

2014-05-11 Thread Spencer Graves
On 5/11/2014 8:29 PM, Jim Lemon wrote: On Sun, 11 May 2014 06:46:29 PM Spencer Graves wrote: Is there a function for creating a box with rounded corners? I can write one, but I thought I'd ask first. Hi Spencer, The tab.title function in plotrix has most of the code

Re: [R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-09 Thread Spencer Graves
Nonclinical Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. H. Gilbert Welch On Thu, May 8, 2014 at 8:56 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: On 5/8/2014 8:05 PM, Bert Gunter wrote: [1] x$y Spencer

Re: [R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-09 Thread Spencer Graves
() doesn't return TRUE for some NaNs Hadley On Fri, May 9, 2014 at 4:32 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Duncan: Thanks very much. I used to think that everything in R was a object. Now I know that is.object(quote(x)) is FALSE. (A decade ago, S-Plus asked

Re: [R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-08 Thread Spencer Graves
is certainly not wisdom. H. Gilbert Welch On Wed, May 7, 2014 at 2:30 PM, Greg Snow 538...@gmail.com wrote: deparse(quote(x$y)) [1] x$y It looks like deparse does what you want here. On Wed, May 7, 2014 at 3:23 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hello, All

Re: [R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-08 Thread Spencer Graves
On Thu, May 8, 2014 at 5:56 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: as.character.call seems not to work as an alias for deparse. Consider the following: xDy - quote(x$y) class(xDy) call as.character.call - function(x, ...)deparse(x, ...) as.character(xDy

[R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-07 Thread Spencer Graves
Hello, All: Is there a simple utility someplace to convert quote(x$y) to x$y? I ask, because as.character(quote(x$y)) is a character vector of length 3 = $ x y. I want to convert this to x$y for a diagnostic message. class(quote(x$y)) = call, which suggests I could

Re: [R] as.character(quote(x$y) ) = $ x y not x$y?

2014-05-07 Thread Spencer Graves
want here. On Wed, May 7, 2014 at 3:23 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hello, All: Is there a simple utility someplace to convert quote(x$y) to x$y? I ask, because as.character(quote(x$y)) is a character vector of length 3 = $ x y. I want

[R] function to compare lengths?

2014-05-05 Thread Spencer Graves
Is there a function someplace to compare lengths? For example, if longer object length is not a multiple of shorter object length, a/b issues a warning. I'd like something with more flexibility in what is reported. Hadley Wickham's testthat and assertthat packages

Re: [R] function to compare lengths?

2014-05-05 Thread Spencer Graves
On 5/5/2014 1:19 PM, Duncan Murdoch wrote: On 05/05/2014, 3:39 PM, Spencer Graves wrote: Is there a function someplace to compare lengths? For example, if longer object length is not a multiple of shorter object length, a/b issues a warning. I'd like something with more

[R] Max characters from deparse(substitute(.))?

2014-05-05 Thread Spencer Graves
Is there a standard or or a standard utility to limit the size of deparse(substitute(.))? Below please find an example of the problem plus one solution. If another solution already exists, I might prefer to use it. Thanks, Spencer ## ## Problem ## deparse.x0 -

Re: [R] Max characters from deparse(substitute(.))?

2014-05-05 Thread Spencer Graves
at 2:44 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Is there a standard or or a standard utility to limit the size of deparse(substitute(.))? Below please find an example of the problem plus one solution. If another solution already exists, I might prefer

[R] function to compare lengths of objects?

2014-05-04 Thread Spencer Graves
' or 'incompatible'. The second element is the message composed for the desired action. Thanks, Spencer Graves __ 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

[R] reading understanding SVG?

2014-04-21 Thread Spencer Graves
Hello: What would you suggest I use to read and manipulate an SVG file? I'd like to extract components of an svg file. I see it's XML, but I have very little experience with either SVG or XML. I've tried GIMP and findFn{sos} without finding a clear suggestion of where to

Re: [R] reading understanding SVG?

2014-04-21 Thread Spencer Graves
On 21 April 2014 08:30, Spencer Graves spencer.gra...@structuremonitoring.com mailto:spencer.gra...@structuremonitoring.com wrote: Hello: What would you suggest I use to read and manipulate an SVG file? I'd like to extract components of an svg file. I see it's

Re: [R] reading understanding SVG?

2014-04-21 Thread Spencer Graves
seriously beyond Wikimedia commons, because I'm making a video, and I want something I can release under the Creative Commons Attribution-Share Alike license. - Peter On 21 April 2014 08:30, Spencer Graves spencer.gra...@structuremonitoring.com mailto:spencer.gra...@structuremonitoring.com

Re: [R] reading understanding SVG?

2014-04-21 Thread Spencer Graves
:19 AM, Boris Steipe wrote: Indeed you don't need R. This is accomplished in two minutes with the excellent, free, and open software inkscape. But before I type more and since I have it open anyway, I'll just send you the three images off-list. B. On 2014-04-21, at 10:43 AM, Spencer Graves

[R] get element of list with default?

2014-04-15 Thread Spencer Graves
Hello: Do you know of a simple function to return the value of a named element of a list if that exists, and return a default value otherwise? It's an easy function to write (e.g., below). I plan to add this to the Ecfun package unless I find it in another CRAN package.

Re: [R] get element of list with default?

2014-04-15 Thread Spencer Graves
really want to use the names of the list since lists can contain null. I'd recommend something more like: getElement - function(x, i, default) { if (i %in% names(x)) return(x[[i]]) default } Hadley On Tue, Apr 15, 2014 at 10:53 AM, Spencer Graves spencer.gra...@structuremonitoring.com wrote

Re: [R] Growth of CRAN?

2014-04-14 Thread Spencer Graves
for the version of fda now on CRAN is 2013-05, but fda was on CRAN at least in 2006 and probably earlier. You are listed as second author on that package based on work you did in by 2006. Spencer Hadley On Sun, Apr 13, 2014 at 12:59 PM, Spencer Graves spencer.gra...@structuremonitoring.com

Re: [R] Growth of CRAN?

2014-04-14 Thread Spencer Graves
on that package based on work you did in by 2006. Spencer Hadley On Sun, Apr 13, 2014 at 12:59 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: What data exist on the growth of CRAN? John Fox published some data on it in 2009 (Aspects of the Social Organization

Re: [R] Growth of CRAN?

2014-04-14 Thread Spencer Graves
, Apr 14, 2014 at 11:13 AM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Hadley: On 4/14/2014 5:53 AM, Hadley Wickham wrote: For finer level detail, have a look at https://github.com/hadley/cran-packages. It contains the description file of every package ever uploaded to CRAN

[R] Growth of CRAN?

2014-04-13 Thread Spencer Graves
What data exist on the growth of CRAN? John Fox published some data on it in 2009 (Aspects of the Social Organization and Trajectory of the R Project, R Journal, http://journal.r-project.org/archive/2009-2/RJournal_2009-2_Fox.pdf). Below please find those numbers plus some

Re: [R] Growth of CRAN?

2014-04-13 Thread Spencer Graves
-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Spencer Graves Sent: Sunday, April 13, 2014 12:59 PM To: R list Subject: [R] Growth of CRAN? What data exist on the growth of CRAN? John Fox published some data on it in 2009 (Aspects of the Social

Re: [R] Growth of CRAN?

2014-04-13 Thread Spencer Graves
On 4/13/2014 7:41 PM, Gabor Grothendieck wrote: On Sun, Apr 13, 2014 at 1:26 PM, John Fox j...@mcmaster.ca wrote: I've attached the most recent data I have, which are from mid-2012. My package counts came from https://svn.r-project.org/R/branches/R-*-branch/tests/internet.Rout.save (where the *

Re: [R] Growth of CRAN?

2014-04-13 Thread Spencer Graves
(minor correct) On 4/13/2014 7:41 PM, Gabor Grothendieck wrote: On Sun, Apr 13, 2014 at 1:26 PM, John Fox j...@mcmaster.ca wrote: I've attached the most recent data I have, which are from mid-2012. My package counts came from

Re: [R] getting arg names in function calls?

2014-04-09 Thread Spencer Graves
, since some of its methods do not have an argument called 'y' (e.g., plot.stepfun) and it has a lot of ... arguments which you need to go to the help file for. Bill Dunlap TIBCO Software wdunlap tibco.com -Original Message- From: Spencer Graves [mailto:spencer.gra

Re: [R] getting arg names in function calls?

2014-04-08 Thread Spencer Graves
, ... = list(extraArg = 3, 4)) Bill Dunlap TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Spencer Graves Sent: Monday, April 07, 2014 3:05 PM To: R list Subject: [R] getting arg names in function calls

<    1   2   3   4   5   6   >