imls_to_arr {geocausal} | R Documentation |
convert a list of im objects to a three-dimensional array
Description
'imls_to_arr()' convert a list of im object to a 3D array
Usage
imls_to_arr(imls, start = 1, end = NULL, entire_window = NULL, ngrid = NULL)
Arguments
imls |
a list of im objects (imlist) |
start |
the index of the first im to be converted. Default is 1. |
end |
the index of the last im to be converted. If not provided, then it will be set to the length of the list. |
entire_window |
a owin object. If given, then the values outside the region will be set to 'NA' |
ngrid |
an optional arugument that takes one integer or vector of two integers specifying the dimensions of the 'im' objects. If provided, the dimensions of the objects will be adjusted to 'ngrid' before the conversion to the array. |
Details
'imls_to_arr()' is a internal function for 'imls_to_vec()'. By default, it returns a three-dimensional array of dimension n
by m
byl
where n
and m
are the dimensions of the im objects, and l
is the length of the list. All the im objects in the list need to have the same dimensions.