matCrop: matrix crop

Description Usage Arguments Value Author(s) Examples

View source: R/tif_utility.R

Description

crop matrix to specific region

Usage

1
matCrop(mat, bndRow, bndCol)

Arguments

mat

matrix

bndRow

c(px1,px2) horizontal boundaries for croping in pixels

bndCol

c(px1,px2) vertical boundaries for croping in pixels

Value

list(pxRow, pxCol, mat) cropped matrix with croped horizontal and vertical scale

Author(s)

K. Juraic

Examples

1
2
3
4
m <- matrix(1:100,nrow = 10, ncol = 10, byrow = TRUE)
crop_px_h <- c(2,8)
crop_px_v <- c(3,6)
matCrop(m,crop_px_h,crop_px_v)

kjuraic/rsaxs documentation built on Nov. 29, 2017, 10:20 p.m.