read.dssat: Read a DSSAT-style file into an object of class Dasst

View source: R/read.dssat.R

read.dssatR Documentation

Read a DSSAT-style file into an object of class Dasst

Description

read.dssat reads the contents of a file or group of files and stores the contents into an object of class Dasst.

Usage

  read.dssat(fileVec, fieldVec = character(),
    keyVec = character())

Arguments

fileVec

A character vector. The names including the paths to the files that will be read.

fieldVec

A character vector. An optional parameter. If it is not specified, all column fields are retrieved. Else, the names subset are the only retrieved column fields.

keyVec

A character vector. An optional parameter. If it is not specified, only sections satisfying this condition will be retrieved.

Details

This function reads the contents of a file or group of files and stores the contents into an object of class Dasst.

Value

A Dasst object with the structure and information originally saved in the file using DSSAT-style format specifications.

Examples

dssatfile <- system.file("extdata","PlantGro.OUT",package="Dasst")
dssatfile
plantgro <- read.dssat(dssatfile)
summary(plantgro)

Dasst documentation built on April 14, 2022, 1:07 a.m.