readWide: Import measurement data

View source: R/02_exported_functions.R

readWideR 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

readWide(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
simDataWideFile <- system.file(
    "extdata", "simDataWide.csv",
    package = "blotIt"
)
readWide(simDataWideFile, description = seq_len(3))

JetiLab/blotIt documentation built on June 19, 2024, 7:18 a.m.