read_txt: Read plain text file

View source: R/data.R

read_txtR Documentation

Read plain text file

Description

Reads plain text file (no header) of one of the input arrays.

Usage

read_txt(my_data, fname, var, y = -1)

Arguments

my_data

List same as the output from read_csv.

fname

String, file name.

var

String, variable name.

y

Numeric, year.

Value

List with the following properties:

$file_name

File name.

$sf

Sunshine fraction.

$tair

Air temperature.

$pn

Precipitation.

$num_lines

Number of data points.

$year

Year of data.


splash documentation built on Oct. 12, 2022, 5:07 p.m.