[R] Searching R Packages

2018-01-27 Thread Spencer Graves
might be interested.   Best Wishes,   Spencer Graves, PhD   Founder   EffectiveDefense.org   7300 W. 107th St. # 506   Overland Park, KS 66212 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

[R] Scraping info from a web site?

2018-01-31 Thread Spencer Graves
:   ..$ doc :   ..- attr(*, "class")= chr "xml_node"  $ :List of 2   ..$ node:   ..$ doc :   ..- attr(*, "class")= chr "xml_node"  - attr(*, "class")= chr "xml_nodeset"   This seems like it may be progress, but I'm still confused on what to

[R] Draft proposal for Searching R Packages

2018-02-17 Thread Spencer Graves
deadline is April 1.  This sounds like lots of time, except that the key thing that is missing in this draft proposal is principal investigator(s).  Without PI(s), it won't fly.       Thanks,   Spencer Graves, PhD   Founder   EffectivedDefense.org   7300 W. 107th St. # 506

[R] deparseDots to get names of all arguments?

2018-02-20 Thread Spencer Graves
'd like to get c('a', 'b').   Thanks,   Spencer Graves > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.3 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framewo

Re: [R] deparseDots to get names of all arguments?

2018-02-20 Thread Spencer Graves
On 2018-02-20 20:52, William Dunlap wrote: > Does substitute(...()) do what you want?   That's the key.  Thanks very much.   Spencer Graves > > > myFunc <- function(x, ...) substitute(...()) > > myFunc(y=1/(1:10), x=sin(3:1), z=stop("Oops"), &q

Re: [R] Learning advanced R

2018-03-14 Thread Spencer Graves
he past 90 days, over 26,000 in the past 3 months.  If you can improve that article, an audience that size might be worth talking to.    Spencer Graves Best regards, Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see ht

Re: [R] Package for Molecular Properties

2018-05-03 Thread Spencer Graves
library(sos) (mp <- findFn('{molecular properties}'))   ** found 7 matches in 4 packages and opened two web pages in my default browser with (a) the 7 matches and (b) the 4 packages. The first function was something for amino acids, like you suggested.  Two others returned compound and

Re: [R] Systemfit Question

2018-05-16 Thread Spencer Graves
  I got an error when I tried to source the "structure" below beginning with "Empdata <- structure(list(country = structure(c(1L, 1L, 1L, 1L, 1L, 1L,":  The source ended with " "98", "983", "991", "995", "997"), + + + + + +  )) +"   I supplied ")" a

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Spencer Graves
age summary to an Excel file using the "writeFindFn2xls" function, then annotate the package summary with other information to help me decide which package(s) and function(s) to try.   Hope this helps.   Spencer Graves, lead author of "sos" On 2018-06-26 07:01, Be

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

2017-04-02 Thread Spencer Graves
gt; Nr. 2 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 turn

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 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 goes back to March 20, 1996. The first archived

Re: [R] qqplot for binomial distribution

2017-04-17 Thread Spencer Graves
owing: 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 UNSUBS

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: Da

Re: [R] finding components of an API

2017-05-28 Thread Spencer Graves
m different 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.

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
On 2017-06-28 5:40 AM, Jeff Newmiller wrote: Showing your work so that someone else can either see something you missed or share in the joy when a rare answer comes through is what elevates such a posting from spam to shared research. A "fortune"? sg ___

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
roving search capabilities. If you can make it to useR!2017, we hope to see you in this session, Wed. July 5, from 17:00 - 18:30 in the main meeting room. If you might like to help with this but can't make Brussels, please stay tuned for further announcements or contact me after the con

Re: [R] Kalman filter for a time series

2017-07-30 Thread Spencer Graves
uctSSM function has been removed from KFAS library or it never was part of KFAS. I don't know. so it won't run. Does anyone know how to fix the code so that it runs? Have you tried the vignette with KFAS? Hope this helps. Spencer Graves library(KFAS)

Re: [R] weight in lm

2017-08-14 Thread Spencer Graves
you know one, please add it -- or post it here, to make it easier for someone else to add it.) Thanks, Peter. Spencer Graves -pd Best wishes Troels Ring Aalborg, Denmark __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

Re: [R] Rounding of problem with sum command in R

2017-08-22 Thread Spencer Graves
On 2017-08-22 9:26 AM, niharika singhal wrote: Hello I have a vector v=c(0.0886,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027) when i do sum(v) or 0.0886+0.1744455+0.1379778+0.1209769+0.1573065+0.1134463+0.2074027 i am getting output as 1 No:  That's only the display:

Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
On 2017-08-22 1:30 PM, Patrick Casimir wrote: Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes

Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
1-Aug-16 > Jan-161-Aug-16 > Feb-161-Aug-16 > Mar-161-Aug-16 > Apr-161-Aug-16 > May-161-Aug-16 > Jun-161-Aug-16 > Jul-161-Aug-16 > Aug-161-Aug-16 > Sep-161-Aug-16 > Oct-161-Aug-16 > >

Re: [R] Getting all possible combinations

2017-08-23 Thread Spencer Graves
On 2017-08-23 11:35 AM, Bert Gunter wrote: ummm, Ista, it's 2^n.   or (2^n-1) if the empty set is not considered as a "combination" ;-)  spencer Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (ak

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 know

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 t

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

2016-09-27 Thread Spencer Graves
36 rows. 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

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. # T

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

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

2014-12-14 Thread Spencer Graves
> On Nov 30, 2014, at 2:32 AM, Spencer Graves > 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: >>> >

Re: [R] Interview questions?

2015-01-11 Thread Spencer Graves
and quick to download it, try it, ... .] Hope this helps. Spencer Graves > On Jan 11, 2015, at 8:46 AM, Keith S Weintraub wrote: > > Folks, > > I was wondering if anyone has put together a list of R job interview > questions? > > I’m thinking of about 5-20 possibl

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 > 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? Th

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 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 in the

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 > wrote: > > >> On Feb 18, 2015, at 1:54 PM, David Winsemius > <mailto:dwinsem...@comcast.net>> wrote: >> >> >> On Feb 18, 2015, at 1:13 PM, C W wrote: >> >>> Thanks Thierry

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 whic

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 on Fri, 13 Mar 2015 06:16:19 -0800 writes: > I have the feeling that this was discuss

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] Converting chr to num

2018-08-20 Thread Spencer Graves
ocumentation including the examples, you will see that many of these issues and others are handled automatically in the way that I thought was the most sensible.  If you disagree, we can discuss other examples and perhaps modify the code for those functions.   Spencer Graves On 2018-08-20 0

[R] real time monitoring of streaming audio with R?

2018-09-10 Thread Spencer Graves
t can be done with ffplay, part of ffmpeg, but again I don't know how.   Thanks,   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

Re: [R] Question on Binom.Confint

2018-09-13 Thread Spencer Graves
On 2018-09-13 20:58, David Winsemius wrote: On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) wrote: Hi, I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero

Re: [R] [FORGED] Question on Binom.Confint

2018-09-14 Thread Spencer Graves
On 2018-09-14 08:52, Guo, Fang (Associate) wrote: It's method="lrt" and I used the "binom" package.   The ultimate answer can be obtained as follows: > debug(binom.confint) > binom.confint(x = 0, n = 100, tol = 1e-8, method='lrt')   Then walk through the code line by line.    

Re: [R] Summarizing R script

2018-09-26 Thread Spencer Graves
  It depends on what you want, but I've found it very useful to create packages and submitting them to CRAN.  See "Creating R Packages" for how to do that.[1]  Part of this involves creating vignettes using Rmarkdown within RStudio.  Creating R packages and routinely running "R CMD chec

[R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
, 2*pi, length = 6) all.equal(x, rev(x)) channel <- round(32000 * sin(440 * x)) Wobj <- Wave(left = channel, right=rev(channel)) with(Wobj, quantile(left-right))   ** This last statement throws "Error ... object 'left' not found".   Is there something c

Re: [R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
On 2018-09-26 15:34, Duncan Murdoch wrote: On 26/09/2018 4:16 PM, Spencer Graves wrote:     Is there anything comparable to "with" for S4 objects? EXAMPLE:     A "Wave" object in the tuneR package has slots "left" and "right", plus othe

[R] RMarkdown vignettes v. Jupyter notebooks?

2018-10-11 Thread Spencer Graves
dio from within Anaconda Navigator, or is one better off using RStudio as a separate, stand alone application -- or should one even abandon RStudio and run R instead from within a Jupyter Notebook? [I'm new to this topic, so it's possible that this question doesn't even make sen

Re: [R] density vs. mass for discrete probability functions

2019-03-15 Thread Spencer Graves
distributions, the "reference measure" is routinely taken to be the "improper prior" that assigns measure 1 to any unit interval on the real line.   Does that make it clear as mud?   Spencer Graves https://en.wikipedia.org/wiki/Probability_density_function Fur

Re: [R] 3.5.3

2019-03-15 Thread Spencer Graves
On 2019-03-15 08:54, Jeff Newmiller wrote: You really need to get into better touch with your feelings, man... how are we supposed to know what you want? ;-) In general you should be using the main release unless you know there is a bug in it that affects you and has specifically been addre

Re: [R] density vs. mass for discrete probability functions

2019-03-15 Thread Spencer Graves
On 2019-03-15 08:37, peter dalgaard wrote: Mathematically, you can bring discrete and continuous distributions on a common footing by defining probability functions as densities wrt. counting measure. You don't really need Radon-Nikodym derivatives to understand the idea, just the fact that

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

2014-07-27 Thread Spencer Graves
e solutions? [[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 provide commented, minimal, self

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 p

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 m

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

2014-07-31 Thread Spencer Graves
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 Office

[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

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

2014-08-04 Thread Spencer Graves
r On 8/3/2014 2:59 PM, 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 estim

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

2014-08-05 Thread Spencer Graves
's 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 Gra

[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 Awa

Re: [R] big data?

2014-08-07 Thread Spencer Graves
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 to

Re: [R] big data?

2014-08-07 Thread Spencer Graves
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% ;-) The

[R] clean email addresses?

2014-08-30 Thread Spencer Graves
to Clean Large Email 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 _

Re: [R] estimation for growth incidence curve

2014-08-31 Thread Spencer Graves
tional Chung Hsing University __ 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 P

Re: [R] a REALLY dumb question

2014-10-06 Thread Spencer Graves
e been using R and S-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

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 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 to avoid compute

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 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 to avoid compute

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

[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 wondere

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 &q

Re: [R] Multiple Integrals

2015-08-29 Thread Spencer Graves
don'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

Re: [R] R project and the TPP

2016-02-04 Thread Spencer Graves
untries from addressing pressing 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, Ro

Re: [R] R project and the TPP

2016-02-04 Thread Spencer Graves
ls-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 guide http://www.R-project.org/po

[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: plotxy(y1~x

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 > wrote: > > I'm getting an interesting error: > > > plotxy <- function(x, ...){ > > + plot(x, ...) > + } > >

Re: [R] calling plot

2016-02-09 Thread Spencer Graves
graphics grDevices utils datasets 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

Re: [R] calling plot

2016-02-09 Thread Spencer Graves
with the simpler "with" 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"

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 con

Re: [R] p values from GLM

2016-04-02 Thread Spencer Graves
tions, 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 growth. Best Wishes, Spencer Gra

[R] with vs. attach

2016-05-05 Thread Spencer Graves
functions "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.

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 wrote: I want a function to evaluate one argument in the environment of a data.frame supplied as another argument. "attach" works for

Re: [R] with vs. attach

2016-05-06 Thread Spencer Graves
t 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 Thu, May 5, 2016 at 7:38 PM, Spencer Graves wrote: Hi, David: That works. Thanks very muc

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 wrote: On May 5, 2016, at 5:12 PM, Spencer Graves wrote: I want a function to evaluate one argument in the environment of a data.frame supplied as another argument. "attach" works for this,

Re: [R] with vs. attach

2016-05-08 Thread Spencer Graves
er, David'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 Grave

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

2016-11-08 Thread Spencer Graves
on 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

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] da

Re: [R] are R packages safe?

2016-12-08 Thread Spencer Graves
to "q()" in 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

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] 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] Export R output in Excel

2016-12-29 Thread Spencer Graves
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] 3D Elliptic Fourier

2016-12-31 Thread Spencer Graves
st likely available 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.

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

2017-03-14 Thread Spencer Graves
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 To: r-help@r-project.org Hello eve

Re: [R] smooth.spline

2008-07-17 Thread Spencer Graves
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Hope this helps. Spencer Graves [EMAIL PROTECTED] wrote: I like what smooth.spline does but I am unclear on the output. I can see from the document

Re: [R] smooth.spline

2008-07-18 Thread Spencer Graves
y. I basically want to take these coefficients and outside of 'R' use them to form an interpolation. In other words I want 'R' to do the hard work and then export the results so they can be used else where. Thank you. Kevin Spencer Graves wrote: I believe that a sh

Re: [R] smooth.spline

2008-07-20 Thread Spencer Graves
0 0.000 0.125 0.250 0.375 0.500 0.625 0.750 0.875 1.000 [13] 1.000 1.000 1.000 $nk [1] 11 $min [1] 1 $range [1] 8 $coef [1] 0.90345898 0.73823276 0.40777431 -0.08046715 -0.54625461 -0.85205147 [7] -0.96233408 -0.91373830 -0.66529714 -0.47674774 -0.38246971 attr(,"class") [1] &qu

Re: [R] smooth.spline

2008-07-20 Thread Spencer Graves
Duncan Murdoch wrote: On 20/07/2008 11:11 AM, Spencer Graves wrote: Are you aware that there are many different kinds of splines? With "spline" and "splinefun", you can use method = "fmm" (Forsyth, Malcolm and Moler), "natural", or "per

Re: [R] R command history -- can it be like Matlab's?

2008-07-29 Thread Spencer Graves
Regarding dubuggers, RSiteSearch("debug", "fun") produced 183 hits for me just now. The first two reference a "debug" package, while the third describes the "debug" function in the "base" package. The "debug{base}" function is great, but not as good as the Matlab debugger. The "de

Re: [R] optim fails when using arima

2008-08-01 Thread Spencer Graves
ly and gave almost identical answers to the default "BFGS" 'optim' method, differing by one digit on the last decimal place in one of the summary numbers from "arima(lh, order = c(1,0,0))". If you try this, please let us know if it solves your problem. Hope th

Re: [R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-05 Thread Spencer Graves
EASE do read the posting guide 'http://www.R-project.org/posting-guide.html' and provide commented, minimal, self-contained, reproducible code. Hope this helps. Spencer Graves [EMAIL PROTECTED] wrote: Dear R users, I´m trying to optimize simultaneously two binomials inequalit

Re: [R] model mix problem. FALSE CONVERGENCE

2008-08-11 Thread Spencer Graves
ode using a publicly available data set, you will likely receive more replies quicker. ¡Buena Suerte! Spencer Graves mergullo wrote: Hi R users I try to use the lme but I can´t! My script is (some words in french, sorry!!): rm(list=ls(all=TRUE)) #Efface tous les objets en mé

Re: [R] predict for garch

2008-08-11 Thread Spencer Graves
Hi, Erin: I just got 46 hits from RSiteSearch('predict garch'). Might any of these help you? Spencer Erin Hodgess wrote: Dear R People: Is there a predict method for garch methods, please? I tried the usual "predict(d1.garch,n.ahead=3) but only got values for the original

Re: [R] how to read multiple lines per case

2008-09-01 Thread Spencer Graves
Dear Michael: There are doubtless better ways to do this, but the I just got the following ugly hack to work for me: rawDat <- readLines('linthall.dat') (N <- length(rawDat)) N2 <- ((N-1)/2) outDat <- character(N2+1) outDat[1] <- rawDat[1] for(i in 1:N2) outDat[i+1] <- paste(rawDat[(2*

Re: [R] CRAN R For Windows 3.6.3

2020-09-19 Thread Spencer Graves
If you have production code written in R that make it expensive to even consider upgrading to the latest R, it may be worth paying the support fees of an organization like RStudio. Otherwise, I think it make sense to upgrade to the latest version and hope for the best. If you encounter

[R] analyzing results from Tuesday's US elections

2020-11-01 Thread Spencer Graves
inner from NC-09 to the US House in 2018 was detected by a college prof, who accessed the data two weeks after the election.[2] Spencer Graves [1] https://github.com/sbgraves237 [2] https://en.wikiversity.org/wiki/Local_Journalism_Sustainabilit

Re: [R] analyzing results from Tuesday's US elections

2020-11-08 Thread Spencer Graves
tter for the 2024 US presidential elections. Thanks for asking. Spencer Graves [1] https://github.com/sbgraves237 [2] https://en.wikiversity.org/wiki/Electoral_integrity_in_the_United_States __ R-help@r-project.org mailing

Re: [R] WG: Packages for mathematics

2020-11-16 Thread Spencer Graves
tation.org"; to be most useful. Many functions are included in base R. Many more are provided in contributed packages. Spencer Graves On 2020-11-16 04:02, ELLENBERGER Mihaela via R-help wrote: Von: ELLENBERGER Mihaela Gesendet: Monta

  1   2   3   4   5   6   >