Learn R Programming

forceR (version 1.0.20)

load_mult: Load Multiple Measurements

Description

Loads multiple measurements.

Usage

load_mult(folder, columns = c(1:2), show.progress = FALSE)

Value

Returns a tibble in the format

tyfilename
t.1y.1...
.........
t.ny.n...

Arguments

folder

Character string containing the path to the measurements.

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).

show.progress

A logical value indicating if progress should be printed to the console. Default: FALSE.

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 name of folder that contains files
input.folder <- forceR_example(type = "folder")

# load a mutiple files
df.all <- load_mult(folder = input.folder,
                    columns = c(1:2),
                    show.progress = FALSE)

Run the code above in your browser using DataLab