Skip to contents

Fetches topsoil thickness data and associated metadata from ABARES.

Usage

.get_topsoil_thickness(.x = NULL)

Arguments

.x

A character string passed that provides a file path to the local directory holding the unzipped files for topsoil thickness.

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.

Note

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