read_apsim_soils: Read in a soils (XML) file into a list of 'soil_profile'...

View source: R/apsim_soils.R

read_apsim_soilsR Documentation

Read in a soils (XML) file into a list of ‘soil_profile’ objects

Description

APSIM soils can be stored as XML files (soils) and reading them in converts them into a list of individual objects of class ‘soil_profile’

Usage

read_apsim_soils(file, src.dir = ".", verbose = TRUE)

Arguments

file

name of the file (the extension sohuld be .soils)

src.dir

directory containing the .soils file (defaults to the current directory)

verbose

whether to print additional information about the progress of reading the individual soils in.

Examples


extd.dir <- system.file("extdata", package = "apsimx")

sls <- read_apsim_soils("Clarion.soils", src.dir = extd.dir)



apsimx documentation built on Sept. 11, 2024, 5:42 p.m.