Learn R Programming

Dasst (version 0.3.4)

read.dssat: 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.

Value

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

Details

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

Examples

Run this code
# NOT RUN {
dssatfile <- system.file("extdata","PlantGro.OUT",package="Dasst")
dssatfile
plantgro <- read.dssat(dssatfile)
summary(plantgro)
# }

Run the code above in your browser using DataLab