Chainable functional alias of x[, j] <- value
.
Examples
mat <- matrix(1:9, nrow = 3)
setCol(mat, j = 2, value = 5) # Set entire second column to 5
#> [,1] [,2] [,3]
#> [1,] 1 5 7
#> [2,] 2 5 8
#> [3,] 3 5 9
Chainable functional alias of x[, j] <- value
.
mat <- matrix(1:9, nrow = 3)
setCol(mat, j = 2, value = 5) # Set entire second column to 5
#> [,1] [,2] [,3]
#> [1,] 1 5 7
#> [2,] 2 5 8
#> [3,] 3 5 9