similar to: all.equal and names?

Displaying 20 results from an estimated 50000 matches similar to: "all.equal and names?"

2004 Jun 06
1
Re: [R] Printing Lattice Graphs from Windows (PR#6948)
Hi, Duncan: I just did "plot(1:2)" in Rgui.exe, and that copied fine as a metafile into MS Word via the clipboard. Then I exited and restarted Rterm.exe under ESS and tried it again. This time, I got a blank image copied into MS Word. However, after I modified the Lattice defaults via, "trellis.par.set('background', list('white'));
2004 Jun 06
1
Re: [R] Printing Lattice Graphs from Windows (PR#6947)
I agree: It sounds like a bug, as you said, Irk, in that Rgui.exe cannot copy a metafile to the clipboard, at least under MS Windows 2000, 5.00.2195, Service Pack 3, even though Rterm.exe can. Therefore, I'm including "r-bugs@biostat.ku.dk" in the list of addresses to this email. Spencer Graves Irk Eddelbuettel wrote: >On Sun, Jun 06, 2004 at 12:26:45PM -0700,
2018 Feb 21
0
deparseDots to get names of all arguments?
Does substitute(...()) do what you want? > myFunc <- function(x, ...) substitute(...()) > myFunc(y=1/(1:10), x=sin(3:1), z=stop("Oops"), "untagged arg") $y 1/(1:10) $z stop("Oops") [[3]] [1] "untagged arg" > names(.Last.value) [1] "y" "z" "" Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Feb 20, 2018 at
2005 Aug 04
1
Counterintuitive Simulation Results
I wonder if someone can help me understand some counterintuitive simulation results. Below please find 12 lines of R code that theoretically, to the best of my understanding, should produce essentially a flat line with no discernable pattern. Instead, I see an initial dramatic drop followed by a slow rise to an asymptote. The simulation computes the mean of 20,000 simulated trajectories
2004 Jul 21
3
vector documentation error?
The help file for "vector" in R 1.9.1 for Windows includes the following: x <- c(a = 1, b = 2) is.vector(x) as.vector(x) all.equal(x, as.vector(x)) ## FALSE I ran this just now and got TRUE. Should I bother to report such things? If yes, to whom? Thanks for all your hard work to make R a reality. It makes it so much easier to develop
2012 Jul 20
1
subRaw?
Hello, All: Do you know of any capability to substitute more then one byte in an object of class Raw? Consider the following: > let4 <- paste(letters[1:4], collapse='') > (let4Raw <- charToRaw(let4)) [1] 61 62 63 64 > (let. <- sub('bc', '--', let4Raw)) [1] "61" "62" "63" "64" > # no
2020 Jan 19
2
rpois(9, 1e10)
On my Mac: str(.Machine) ... $ integer.max????????? : int 2147483647 ?$ sizeof.long????????? : int 8 ?$ sizeof.longlong????? : int 8 ?$ sizeof.longdouble??? : int 16 ?$ sizeof.pointer?????? : int 8 ????? On a Windows 10 machine I have, $ sizeof.long : int 4; otherwise the same as on my Mac. ????? Am I correct that $ sizeof.long = 4 means 4 bytes = 32 bits? log2(.Machine$integer.max)
2020 Jan 20
2
[External] Re: rpois(9, 1e10)
Thanks to Luke and Avi for their comments.? I wrapped "round" around the call to "rnorm" inside my "rpois.".? For "lambda" really big, that "round" won't do anything.? However, it appears to give integers in floating point representation that are larger than .Machine$integer.max.? That sounds very much like what someone would want.?
2004 Jun 02
3
S4 classes?
The following example, extracted from pp. 38-42 of Chambers (1998) Programming with Data (Springer), works for me in S-Plus 6.2 but not R 1.9.0pat, which returns the indicated error messages: > setClass('track', representation(x="numeric", y="numeric")) [1] "track" > tr1 <- new("track", x=1:3, y=4:6) > setMethod("plot", +
2020 Jan 19
2
rpois(9, 1e10)
On 2020-01-19 13:01, Avraham Adler wrote: > Crazy thought, but being that a sum of Poissons is Poisson in the sum, > can you break your ?big? simulation into the sum of a few smaller > ones? Or is the order of magnitude difference just too great? ????? I don't perceive that as feasible.? Once I found what was generating NAs, it was easy to code a function to return pseudo-random
2014 Dec 15
1
Making iconv portable?
On Dec 15, 2014, at 1:37 PM, Spencer Graves <spencer.graves at prodsyse.com> wrote: > > >> On Dec 15, 2014, at 10:13 AM, Simon Urbanek <simon.urbanek at r-project.org> wrote: >> >>> >>> On Dec 15, 2014, at 12:21 PM, Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote: >>> >>>>>>>> Spencer Graves writes:
2014 Dec 15
3
Making iconv portable?
Hello, All: What would it take to make ?iconv? portable? I ask, because I want to convert accented characters to vanilla ASCII, thereby converting, e.g., ?Ra?l? to ?Raul?, and Milan Bouchet-Valet suggested on R-help that I use 'iconv(x, ?", "ASCII//TRANSLIT?)?. This worked under Windows but failed on Linux and Mac. It?s part of the ?subNonStandardCharacters? function
2018 Sep 05
2
svg ignores cex.axis in R3.5.1 on macOS
Seems ok on my system. Axis label size changes when cex.axis does. ## tested in the middle of another long session, so many additional packages are attached, including some personal packages not available elsewhere > sessionInfo() R version 3.5.1 (2018-07-02) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.6 Matrix products: default BLAS:
2014 Dec 15
2
Making iconv portable?
> On Dec 15, 2014, at 12:21 PM, Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote: > >>>>>> Spencer Graves writes: > >> Hello, All: >> What would it take to make ?iconv? portable? > > >> I ask, because I want to convert accented characters to >> vanilla ASCII, thereby converting, e.g., ?Ra?l? to ?Raul?, and >> Milan
2020 Jan 19
2
rpois(9, 1e10)
????? This issue arose for me in simulations to estimate confidence, prediction, and tolerance intervals from glm(., family=poisson) fits embedded in a BMA::bic.glm fit using a simulate.bic.glm function I added to the development version of Ecfun, available at "https://github.com/sbgraves237/Ecfun".? This is part of a vignette I'm developing, available at
2018 Feb 20
5
deparseDots to get names of all arguments?
Hi, All: ????? How can I get the names of all the arguments in dots(...)? ????? I'm able to get the name of the first argument but not the second: deparseDots <- function(...){ ? deparse(substitute(...)) } a <- 1 b <- 2 deparseDots(a, b) [1] "a" ????? I'd like to get c('a', 'b'). ????? Thanks, ????? Spencer Graves > sessionInfo() R
2005 Nov 03
1
ML optimization question--unidimensional unfolding scalin g
Alternatively, just type debug(optim) before using it, then step through it by hitting enter repeatedly... When you're done, do undebug(optim). Andy > From: Spencer Graves > > Have you looked at the code for "optim"? If you > execute "optim", it > will list the code. You can copy that into a script file and walk > through it line by line to
2018 Sep 06
1
svg ignores cex.axis in R3.5.1 on macOS
On 06/09/2018 10:47, peter dalgaard wrote: > I think this needs to be taken off the bug repository and continued here. By now it seems pretty clear that this is not an R bug, but a local problem on Spencer's machine, likely connected to font configurations. Or even on R-sig-Mac. > I poked around a bit on the three Macs that I can access, and found that fc-match does different things,
2005 Nov 11
3
no package 'Matrix' at the repositories
Yesterday, I installed R2.2.0 for Windows [Version 2.2.0 (2005-10-06 r35749)]. Unfortunately, 'install.packages("Matrix")' produced the following message: Warning in download.packages(pkgs, destdir = tmpd, available = available, : no package 'Matrix' at the repositories I installed lme4, maps, mapproj, CircStats, scatterplot3d, gregmisc, Hmisc without
2017 Mar 09
2
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
This error can arise when getOption("width") is too small. 80 seems to be the limit for me with R-3.3.2 on Windows. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Mar 8, 2017 at 10:28 PM, Spencer Graves <spencer.graves at prodsyse.com> wrote: > Hello: > > > I tried "debug(help)" with the problem mentioned below. It stopped > with a call to