An assignment operator to unpack vectors and lists


#1

This is a companion discussion topic for the original entry at:

An assignment operator to unpack vectors and lists

https://www.rstudio.com/resources/videos/an-assignment-operator-to-unpack-vectors-and-lists/


zeallot is a package which includes an operator (written %<-%) that can perform multiple assignment and automatic destructuring of vectors and lists. In addition to this operator there are a handful of features which allow nesting variable names, skipping values, specifying default values, and collecting multiple values into a single variable. This talk introduces the audience to multiple assignment (including destructuring and unpacking assignment), the zeallot package, and walks the audience through a series of examples to help them get started with and get the most out of zeallot.

Nathan Teetor - Software Engineer, ZevRoss Spatial Analysis
Nathan’s work focuses on R package and shiny application development. He is the author of the R package zeallot and enjoys teaching R as much as working with the language. Beyond muttering at an R console, Nate can be found improving his baking, stocking up on winter squash, drawing out the Breath of the Wild storyline, and awaiting the release of Doors of Stone.


closed

This topic has been closed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.
#2