search for: cyl_new

Displaying 5 results from an estimated 5 matches for "cyl_new".

2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...<- 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.g. .[mpg...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...og(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 p...
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?
...t; ??? 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 occu...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...ctionality 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...