powered by
Construct a lens that is a view of the data with a new set of dimensions. Both view and set check that the new dimensions match the number of elements of the data.
reshape_l(dims)
a vector with the new dimensions
# NOT RUN { x <- 1:9 view(x, reshape_l(c(3,3))) set(x, reshape_l(c(3,3)) %.% diag_l, 100) # }
Run the code above in your browser using DataLab