read_dssat {DSSAT}R Documentation

Reads data from a single DSSAT file

Description

Reads data from a single DSSAT file

Usage

read_dssat(
  file_name,
  col_types = NULL,
  col_names = NULL,
  na_strings = NULL,
  left_justified = "EXCODE",
  guess_max = 10
)

Arguments

file_name

a character vector of length one that contains the name of a single DSSAT output file

col_types

One of NULL, a cols() specification, or a string. See read_fwf or vignette("readr") for more details.

col_names

A character vector of column names; primarily helpful for cases where there are no white spaces between column names within the header line

na_strings

A character vector containing strings that should be interpreted as missing values

left_justified

A character vector of column names that should be left justified

guess_max

An integer indicating the maximum number of lines that should be used to guess the type of a column

Value

a tibble containing the data from the raw DSSAT output

Examples


# Extract file path for sample output file path
sample_output <- system.file('extdata','SAMPLE.OUT',package='DSSAT')

read_dssat(sample_output)


[Package DSSAT version 0.0.9 Index]