Chainable functional alias of x[i, ] <- value
.
Examples
mat <- matrix(1:9, nrow = 3)
setRow(mat, i = 1, value = 10) # Set entire first row to 10
#> [,1] [,2] [,3]
#> [1,] 10 10 10
#> [2,] 2 5 8
#> [3,] 3 6 9
Chainable functional alias of x[i, ] <- value
.
mat <- matrix(1:9, nrow = 3)
setRow(mat, i = 1, value = 10) # Set entire first row to 10
#> [,1] [,2] [,3]
#> [1,] 10 10 10
#> [2,] 2 5 8
#> [3,] 3 6 9