Showing 2 of total 2 results (show query)
r-lib
zeallot:Multiple, Unpacking, and Destructuring Assignment
Provides a %<-% operator to perform multiple, unpacking, and destructuring assignment in R. The operator unpacks the right-hand side of an assignment into multiple values and assigns these values to variables on the left-hand side of the assignment.
Maintained by Nathan Teetor. Last updated 5 years ago.
destructuring-assignmentmultiple-assignmentpattern-matchingunpacking-assignment
259 stars 12.81 score 1.9k scripts 106 dependentskevinushey
dotty:The Unpacking Dot Operator
Provides a `.` object which can be used for unpacking assignments. For example, `.[rows, columns] <- dim(cars)` could be used to pull the number of rows and number of columns from `dim(cars)` into individual variables `rows` and `columns` in a single step.
Maintained by Kevin Ushey. Last updated 1 months ago.
44 stars 5.86 score 5 scripts 1 dependents