Learn R Programming

forceR (version 1.0.20)

load_single: Load single measurement

Description

Loads a single measurement.

Usage

load_single(filename, columns = c(1:2))

Value

A tibble with two columns named "t" and "y".

Arguments

filename

Character string containing the path to measurement file.

columns

A vector of column numbers. The first entry will be used as the x-axis values, the second entry as y-axis values. All other columns will be ignored. Default: c(1,2).

Details

#' The input files need to be in the following format (even though column names do not matter):

ty
t.1y.1
......
t.ny.n

All columns except the first two are removed.

Examples

Run this code
# Store filename
filename <- forceR_example(type="raw")

df.1 <- load_single(filename,
                    columns = c(1:2))

Run the code above in your browser using DataLab