Learn R Programming

splash (version 1.0.2)

read_txt: 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)

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.

Arguments

my_data

List same as the output from read_csv.

fname

String, file name.

var

String, variable name.

y

Numeric, year.