assign: Typed assign

Description Usage Examples

Description

Drop-in replacement for standard assignment to parse input

Usage

1
(x) <- value

Examples

1
2
3
4
5
6
7
`at<-` <- function(a, b, c){
a[b[[1]], b[[2]]] <- c
a
}
mat <- matrix(0, 3, 3)
mat[2, 2] <- 7
at(mat, c(1,2)) <- 5

krzjoa/typed documentation built on Jan. 6, 2020, 12:46 a.m.