slope_arr(arr, FUN = rtrend::slope_mk, return.list = FALSE)
Arguments
- arr
a matrix ([ngrid, ntime]) or array ([nlon, nlat, ntime]).
- FUN
slope functions, see slope_mk().
- return.list
boolean,
TRUE: list(slope, pvalue) will be return
FALSE: a array, with the dim of nx, ny, 2.
Value
t, A 3d array, with the dim of [nx, ny, 2].
t[,,1]: slope
t[,,2]: pvalue