Minimal Implementation of Functional Lenses
Attributes lens
Lens for accessing and modifying nested elements of a list or vector
Filter ilens
Compose two lenses
Identity lens
Index lens
Subset lens
Create a lens
Lens into a list or vector
Names lens
Map a function over a list lens
Modify the focused part of a data structure
Rows lens
include verbs.R include lens.R Select lens
Set the focused part of a data structure
Slice lens
tinylens: Minimal Implementation of Functional Lenses
Vector data lens
View the focused part of a data structure
Predicate ilens
Provides utilities to create and use lenses to simplify data manipulation. Lenses are composable getter/setter pairs that provide a functional approach to manipulating deeply nested data structures, e.g., elements within list columns in data frames. The implementation is based on the earlier 'lenses' R package <https://github.com/cfhammill/lenses>, which was inspired by the Haskell 'lens' package by Kmett (2012) <https://github.com/ekmett/lens>, one of the most widely referenced implementations of lenses. For additional background and history on the theory of lenses, see the 'lens' package wiki: <https://github.com/ekmett/lens/wiki/History-of-Lenses>.