Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-27 Thread Sebastian Martin Krantz
code > available somewhere. > > Cheers > Joris > > > > > > On Wed, Feb 27, 2019 at 9:01 AM Sebastian Martin Krantz < > sebastian.kra...@graduateinstitute.ch> wrote: > >> Dear Developers, >> >> Having spent time developing and thinking about how d

Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-28 Thread Sebastian Martin Krantz
m., Sebastian Martin Krantz wrote: > > Dear Developers, > > > > Having spent time developing and thinking about how data aggregation and > > summary statistics can be enhanced in R, I would like to present my > > ideas/efforts in the form of two commands: > &

[Rd] base::order making available retGrp and sortStr options for radix method?

2020-05-08 Thread Sebastian Martin Krantz
Hi together, a bit more than a month ago I have released the 'collapse' package for advanced and fast data transformation in R with an array of fast grouped and weighted functions and facilities for efficient grouped programming in R. As I am preparing the next update of this package I have come

[Rd] ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread Sebastian Martin Krantz
Hello together, I'm working on some custom (grouped, weighted) sum, min and max functions and I want them to support the special case of plain integer sequences using ALTREP. I thereby encountered some behavior I cannot explain to myself. The head of my fsum C function looks like this (g is

Re: [Rd] ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread Sebastian Martin Krantz
t; where is_altrep() is defined by the following C code: > > #include > #include > > SEXP is_altrep(SEXP x) > { > return Rf_ScalarLogical(ALTREP(x)); > } > > > -Bill > > On Tue, Jun 29, 2021 at 8:03 AM Sebastian Martin Krantz < > sebastian.kra...@gra

Re: [Rd] ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread Sebastian Martin Krantz
just mentioned this as well but I'll leave it in >> since I had already typed it. >> >> I hope that helps clarify some things. >> >> Best, >> ~G >> >> >> On Tue, Jun 29, 2021 at 10:13 AM Sebastian Martin Krantz < >> seb

[Rd] pmin() and pmax() should process a single list of vectors, rather than returning it

2022-10-28 Thread Sebastian Martin Krantz
Dear R Core, The {kit} package has a nice set of parallel statistical functions complimenting base R's pmin() and pmax(): psum(), pprod(), pmean(), etc.. These can be called on a set of vectors like pmin() and pmax() e.g. with(mtcars, psum(mpg, carb, wt)) or on a single list of vectors e.g.

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-11 Thread Sebastian Martin Krantz
Thanks Duncan and Ivan for the careful thoughts. I'm not sure I can follow all aspects you raised, but to give my limited take on a few: > your proposal violates a very basic property of the language, i.e. that all > statements are expressions and have a value. > What's the value of 1 + (A, C =

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-12 Thread Sebastian Martin Krantz
ate fundamental principles of the language. Which could form a basis for thinking about an actual addition to the language. Best regards, Sebastian On Sun 12. Mar 2023 at 13:18, Duncan Murdoch wrote: > On 12/03/2023 6:07 a.m., Sebastian Martin Krantz wrote: > > Thinking more about this

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-12 Thread Sebastian Martin Krantz
e a modification to R CMD Check to recognize .[<- as assignment. Best regards, Sebastian - 2.) On Sun, 12 Mar 2023 at 09:42, Sebastian Martin Krantz < sebastian.kra...@graduateinstitute.ch> wrote: > Thanks Gabriel and Kevin for your inputs, > > regarding your points Gabriel, I think Py

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-12 Thread Sebastian Martin Krantz
vy hammer to swing for this > issue, but you might consider the benefits worth the tradeoffs. > > Best, > Kevin > > On Sat, Mar 11, 2023 at 2:53 PM Duncan Murdoch > wrote: > > > > On 11/03/2023 4:42 p.m., Sebastian Martin Krantz wrote: > > > Thanks Duncan and Iva

[Rd] Multiple Assignment built into the R Interpreter?

2023-03-11 Thread Sebastian Martin Krantz
Dear R Core, working on my dynamic factor modelling package, which requires several subroutines to create and update several system matrices, I come back to the issue of being annoyed by R not supporting multiple assignment out of the box like Matlab, Python and julia. e.g. something like A, C,