powered by
view() applies a lens to a data structure and returns the focused part.
view()
set() applies a lens to a data structure and sets the focused part.
set()
over() applies a lens to a data structure and modifies the focused part using a function.
over()
view(d, l)
The part of the data structure focused by the lens
The data structure to view
The lens to apply
x <- 1:10 names(x) <- letters[1:10] view(x, names_l) set(x, names_l, LETTERS[1:10]) over(x, names_l, toupper)
Run the code above in your browser using DataLab