Displaying 5 results from an estimated 5 matches for "mpg_new".
Did you mean:
g_new
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...= carb] <- mtcars or .[new = log(carb)] <- mtcars. All
> the functionality proposed by Kevin at
> https://github.com/kevinushey/dotty
> <https://github.com/kevinushey/dotty> is useful, unambiguous and
> feasible.
> * Silent dropping of RHS values e.g. .[mpg_new, cyl_new] <- mtcars.
> * Mixing of positional and named assignment e.g .[mpg_new, carb_new =
> carb, cyl_new] <- mtcars. The inputs not assigned by name are simply
> the elements of RHS in the order they occur, regardless of whether
> they have been used previously e...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
....[new = log(carb)] <- mtcars. All
> > the functionality proposed by Kevin at
> > https://github.com/kevinushey/dotty
> > <https://github.com/kevinushey/dotty> is useful, unambiguous and
> > feasible.
> > * Silent dropping of RHS values e.g. .[mpg_new, cyl_new] <- mtcars.
> > * Mixing of positional and named assignment e.g .[mpg_new, carb_new =
> > carb, cyl_new] <- mtcars. The inputs not assigned by name are simply
> > the elements of RHS in the order they occur, regardless of whether
> > they have be...
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
Thanks Gabriel and Kevin for your inputs,
regarding your points Gabriel, I think Python and Julia do allow multiple
sub-assignment, but in-line with my earlier suggestion in response to
Duncan to make multiple assignment an environment-level operation (like
collapse::%=% currently works), this would not be possible in R.
Regarding the [a] <- coolest_function() syntax, yeah it would mean do
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...; > > ??? the functionality proposed by Kevin at
> > > ??? https://github.com/kevinushey/dotty
> > > ??? <https://github.com/kevinushey/dotty> is useful, unambiguous
> > > and
> > > ??? feasible.
> > > ? * Silent dropping of RHS values e.g. .[mpg_new, cyl_new] <-
> > > mtcars.
> > > ? * Mixing of positional and named assignment e.g .[mpg_new,
> > > carb_new =
> > > ??? carb, cyl_new] <- mtcars. The inputs not assigned by name are
> > > simply
> > > ??? the elements of RHS in the order...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...? the functionality proposed by Kevin at
>>>> ??? https://github.com/kevinushey/dotty
>>>> ??? <https://github.com/kevinushey/dotty> is useful, unambiguous
>>>> and
>>>> ??? feasible.
>>>> ? * Silent dropping of RHS values e.g. .[mpg_new, cyl_new] <-
>>>> mtcars.
>>>> ? * Mixing of positional and named assignment e.g .[mpg_new,
>>>> carb_new =
>>>> ??? carb, cyl_new] <- mtcars. The inputs not assigned by name are
>>>> simply
>>>> ??? the elements of RH...