similar to: round() and signif() do not check argument names when a single argument is given

Displaying 20 results from an estimated 1000 matches similar to: "round() and signif() do not check argument names when a single argument is given"

2010 Aug 21
1
Speed improvement to evalList
I've been inspired to look at the R source code by some strange timing results that I wrote about on my blog at radfordneal.wordpress.com (see the posts on "Speeding up parentheses..." and "Two surprising things...". I discovered that the strange speed advantage of curly brackets over parentheses is partially explained by an inefficiency in the evalList and
2020 May 23
1
round() and signif() do not check argument names when a single argument is given
On Fri, May 22, 2020 at 9:55 PM David Winsemius <dwinsemius at comcast.net> wrote: > The premise in the first few lines of your preamble is at odds (in the > logical sense) with my understanding of primitive function behavior. Try: > > data.frame(x=1:2,y=letters[1:2])[j=2, i=1] > > David > I had never seen naming indexes of the [] operator. The documentation of []
2004 Mar 17
1
best methods for strings and structures?
I'm trying to generate an R interface for a library that's commonly used and I'm currently writing wrapper functions for file i/o and return an object (list?) that contains the elements of the C structure. For example, reading a file that contains: struct CONFIG_RECORD { char coeffs_filename[256]; char species_filename[256]; unsigned long
2020 Mar 28
0
[klibc:update-dash] dash: eval: avoid leaking memory associated with redirections
Commit-ID: 2993257551260450b6471d0650bec6e859cafed4 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=2993257551260450b6471d0650bec6e859cafed4 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Fri, 14 Dec 2018 13:44:14 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: eval: avoid
2006 Jun 04
1
Fwd: Re: How to call a value labels attribute?
How is what you are doing any different from factors? > x <- factor(c(1, 2, 3, 3, 2, 3, 1), labels=c("apple", "banana", "other")) > x [1] apple banana other other banana other apple Levels: apple banana other > as.numeric(x) [1] 1 2 3 3 2 3 1 > levels(x)[3] <- "birne" > x [1] apple banana birne birne banana birne apple
2020 Jun 30
0
Build a R call at C level
Thanks Jan and Tomas for the feedback. Answer from Jan is what I am looking for. Maybe I am not looking in the right place buy it is not easy to understand how these LCONS, CONS, SETCDR...etc works. Thank you Best regards Morgan On Tue, 30 Jun 2020, 12:36 Tomas Kalibera, <tomas.kalibera at gmail.com> wrote: > On 6/30/20 1:06 PM, Jan Gorecki wrote: > > It is quite known that R
2020 Jun 15
1
Voice "broken" during calls
On Monday 15 June 2020 at 21:50:36, Luca Bertoncello wrote: > Am 15.06.2020 um 21:28 schrieb Antony Stone: > > On Monday 15 June 2020 at 21:19:51, Luca Bertoncello wrote: > >> But I'm not really sure, that Asterisk could be the problem, since, as I > >> said, the problem happens even if I connect the phone direct to the > >> server of Telekom... > >
2023 Apr 14
0
sum(), min(), max(), prod() vs. named arguments in ...
Hello R-devel, As mentioned on Fosstodon [1] and discussed during RCOH [2], named arguments to sum(), min(), max() and prod() are currently processed the same way as the un-named ones. Additionally, when specifying the na.rm argument more than once, the last specified value is silently taken into account. Most of this behaviour is exactly as documented, but it's arguably a source of mistakes
2017 Jan 03
1
.Internal for functions in distn.R
Hi, the functions in distn.R were converted from .Internal to .External ([1], in 2012), and to .Call ([2], in 2014). They are still listed as .Internal in names.c, although they are not used in that way. Shouldn?t they be removed? There?s quite some simplification to be had, e.g., do_math3 could go away and do_math2 would be simpler. If that makes sense (I may be missing something?), I?d be
2020 Sep 12
0
Garbage collection of seemingly PROTECTed pairlist
Hi, In line 5, you are allocating a vector of length nc. Then, in line 12, you are using nr as a limit, so if nr goes beyond nc, which is happening in line 39, you are in trouble. I?aki On Sat, 12 Sep 2020 at 03:30, Rory Nolan <rorynoolan at gmail.com> wrote: > I want to write an R function using R's C interface that takes a 2-column > matrix of increasing, non-overlapping
2005 Apr 12
0
'net ads join' Segmentation fault for one ADS tree but not another?!
The cmd 'net ads join -U username' dies with 'Segmentation fault' for our PROD ADS environment, however works fine in our DEV ADS environment! The only [Linux] configuration change between the two environments is update SAMBA and Kerberos config to read 'ADS' vs 'ADSDEV' and change the domain controller FQDN. The /var/kerberos/krb5kdc directory, samba/secrets.tdb
2019 Jan 25
0
[klibc:update-dash] eval: Return status in eval functions
Commit-ID: ef5fd2060f3c7d1a4a22a079bc1c32b61964bb5f Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=ef5fd2060f3c7d1a4a22a079bc1c32b61964bb5f Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 7 Jun 2016 16:47:59 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] eval: Return status in
2020 Mar 28
0
[klibc:update-dash] dash: eval: Return status in eval functions
Commit-ID: 777b77571a451d5fc5dfc04749854ea40abe8093 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=777b77571a451d5fc5dfc04749854ea40abe8093 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 7 Jun 2016 16:47:59 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: eval: Return
2005 Dec 04
1
Understanding nonlinear optimization and Rosenbrock's banana valley function?
GENERAL REFERENCE ON NONLINEAR OPTIMIZATION? What are your favorite references on nonlinear optimization? I like Bates and Watts (1988) Nonlinear Regression Analysis and Its Applications (Wiley), especially for its key insights regarding parameter effects vs. intrinsic curvature. Before I spent time and money on several of the refences cited on the help pages for "optim",
2015 Jun 01
0
sum(..., na.rm=FALSE): Summing over NA_real_ values much more expensive than non-NAs for na.rm=FALSE? Hmm...
This is a great example how you cannot figure it out after spending two hours troubleshooting, but a few minutes after you post to R-devel, it's just jumps to you (is there a word for this other than "impatient"?); Let me answer my own question. The discrepancy between my sum2() code and the internal code for base::sum() is that the latter uses LDOUBLE = long double (on some system
2009 Jun 03
1
Still can't find missing data - How do I get NA in xtabs with factors?
The problem here is Table doesn't seem to have a way to weigh the data. > ToyData Data1 Data2 Data3 Weight 101 Sam Red Banana 1.1 102 Sam Green Banana 2.1 103 Sam Blue Orange 2.1 104 Fred Red Orange 2.1 105 Fred Green Guava 2.1 106 Fred Blue Guava 2.1 107 <NA> Red Pear 50.1 108 <NA> Green Pear 50.1 109 <NA> Blue
2023 Apr 16
0
sum(), min(), max(), prod() vs. named arguments in ...
On 2023-04-15 6:00 am, r-devel-request at r-project.org wrote: > Date: Fri, 14 Apr 2023 13:38:00 +0300 > From: Ivan Krylov<krylov.r00t at gmail.com> > To:r-devel at r-project.org > Subject: [Rd] sum(), min(), max(), prod() vs. named arguments in ... Message-ID: <20230414133800.75383dae-6792 at arachnoid> > Content-Type: text/plain; charset="us-ascii" > >
2014 Oct 31
3
ScalarLogical and setAttrib
Is it expected that attributes set on a LGLSXP created by ScalarLogical will apply to all future objects created by ScalarLogical as well? For example: the 'test1' function below returns FALSE and 'test2' returns FALSE with an attribute: library(inline) test1 <- cfunction(body = 'return ScalarLogical(0);') test2 <- cfunction(body = ' SEXP success =
2010 Jan 14
1
how to call a function from C
Hi, In Rcpp, we now have a "Function" class to encapsulate functions (they cover all three kinds, but this may change). To call the function, what we do is generate a call with the function as the first node and then evaluate the call. SEXP stats = PROTECT( R_FindNamespace( mkString( "stats") ) ); SEXP rnorm = PROTECT( findVarInFrame( stats, install( "rnorm") ) )
2020 Jun 15
3
Voice "broken" during calls
On Monday 15 June 2020 at 21:19:51, Luca Bertoncello wrote: > But I'm not really sure, that Asterisk could be the problem, since, as I > said, the problem happens even if I connect the phone direct to the > server of Telekom... I think that is significant, even if the routing is still going through the Banana. > Well, during the calls, the BananaPI has a load of max 1, and it