Package: tinylens 0.1.0.9000
tinylens: Minimal Implementation of Functional Lenses
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>.
Authors:
tinylens_0.1.0.9000.tar.gz
tinylens_0.1.0.9000.zip(r-4.7-any)tinylens_0.1.0.9000.zip(r-4.6-any)tinylens_0.1.0.9000.zip(r-4.5-any)
tinylens_0.1.0.9000.tgz(r-4.6-any)tinylens_0.1.0.9000.tgz(r-4.5-any)
tinylens_0.1.0.9000.tar.gz(r-4.7-any)tinylens_0.1.0.9000.tar.gz(r-4.6-any)
tinylens_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tinylens/json (API)
| # Install 'tinylens' in R: |
| install.packages('tinylens', repos = c('https://arbelt.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/arbelt/tinylens/issues
Last updated from:3dfb2da973. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 153 | ||
| source / vignettes | OK | 164 | ||
| linux-release | OK | 112 | ||
| macos-release | OK | 174 | ||
| macos-oldrel | OK | 147 | ||
| windows-devel | OK | 65 | ||
| windows-release | OK | 64 | ||
| windows-oldrel | OK | 55 | ||
| wasm-release | OK | 96 |
Exports:%.%attr_lc_lfilter_ili_lid_lindex_lindices_llensmap_lnames_loverover_maprows_lselect_lsetslice_lvec_data_lviewwhere_il
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Compose two lenses | %.% |
| Attributes lens | attr_l |
| Lens for accessing and modifying nested elements of a list or vector | c_l |
| Filter ilens | filter_il |
| Identity lens | id_l |
| Index lens | index_l |
| Subset lens | indices_l i_l |
| Create a lens | lens |
| Lens into a list or vector | map_l |
| Names lens | names_l |
| Modify the focused part of a data structure | over |
| Map a function over a list lens | over_map |
| Rows lens | rows_l |
| include verbs.R include lens.R Select lens | select_l |
| Set the focused part of a data structure | set |
| Slice lens | slice_l |
| Vector data lens | vec_data_l |
| View the focused part of a data structure | view |
| Predicate ilens | where_il |
