read_wide: Import measurement data

View source: R/02_exported_functions.R

read_wideR Documentation

Import measurement data

Description

Data from a given wide style csv-file is imported. While importing, the data is converted into a long table

Usage

read_wide(file, description = NULL, time = 1, header = TRUE, ...)

Arguments

file

character, the name of the data file.

description

numeric index vector of the columns containing the description.

time

numeric index of length 1: the time column.

header

a logical value indicating whether the file contains the names of the variables as its first line.

...

further arguments being passed to read.csv.

Value

data frame with columns "name", "time", "value" and other columns describing the measurements.

Examples

## Import example data set
sim_data_wide_file <- system.file(
    "extdata", "sim_data_wide.csv",
    package = "blotIt3"
)
read_wide(sim_data_wide_file, description = seq_len(3))

SeverinBang/blotIt3 documentation built on April 4, 2022, 5 a.m.