Skip to contents

Fetches topsoil thickness data and associated metadata from ABARES.

Usage

.get_topsoil_thickness(.x)

Arguments

.x

Optional path to a local copy of the zipped data file. If it is NULL a copy is downloaded from the ABARES website.

Value

A read.abares.topsoil.thickness object, which is a named list() with the terra::rast() object of the data and text file of metadata.

Details

A custom print() method is provided that will print the metadata associated with these data. Examples are provided for interacting with the metadata directly.

Examples

x <- .get_topsoil_thickness(.x = NULL)
#> Error in .get_topsoil_thickness(.x = NULL): could not find function ".get_topsoil_thickness"

x
#> Error: object 'x' not found

# Extract the metadata as an object in your R session and use it with
# {pander}, useful for Markdown files

library(pander)
y <- x$metadata
#> Error: object 'x' not found
pander(y)
#> Error: object 'y' not found