
getValuesBlock(x, row, ...)
(x=RasterLayer)
or matrixnrows
Integer. How many rows? Default is 1
col
Integer. Start column. Default is 1
ncols
Integer. How many columns? Default is the number of colums left after the start column
}r <- raster(system.file("external/test.grd", package="raster"))
b <- getValuesBlock(r, row=100, nrows=3, col=10, ncols=5)
b
dim(b) = c(3,5)
b
Run the code above in your browser using DataLab