Subset a rayimg without losing attributes

# S3 method for class 'rayimg'
x[..., drop = TRUE]

Arguments

x

Default NULL. A rayimg object.

...

Default “. Standard subsetting indices.

drop

Default TRUE. Whether to drop dimensions (as in base [).

Value

A subset of x. Preserves the filetype attribute. Preserves the rayimg class if the result still has dimensions (array/matrix).