Ir al contenido

This function takes a data frame containing information about geographic coordinates and prepares it for spatial analysis by converting it into a Simple Features (sf) object.

Uso

prepareGeo(x)

Argumentos

x

A data frame containing at least the columns 'campo' and 'valor', where 'campo' specifies the type of information (e.g., 'crs', 'coord_x', 'coord_y', 'elevacion'), and 'valor' contains the corresponding values.

Valor

A Simple Features (sf) object with spatial coordinates and attributes.

Detalles

This function creates an sf object with spatial coordinates and attributes, from an input data frame thata contain specific columns for 'campo' and 'valor'.