R/utils.R
safe_dim.Rd
safe_dim tries to get dimensions from dim and falls back on length if dim returns NULL
safe_dim
dim
length
NULL
safe_dim(x)
the object to get dimensions from