Recognise the geographical type of an object representing a risk factor.

factor_type(x)

Arguments

x

Any object.

Value

Character. Either "vector", "raster" or "network" depending on the object class. NA for unknown formats.

Examples

  factor_type(terra::rast())
#> [1] "raster"
  factor_type(sf::st_sf(sf::st_sfc()))
#> [1] "vector"