Learn R Programming

tipom (version 1.0.2-1)

tipom.import: Import a data frame as a custom object with extra metadata (attributes) such as the dataset name, the unit of measurement.

Description

Objects created by tipom.import can be passed directly to the other functions provided by TIPOM, without need to specify the single vectors containing data. So, for example, the function tipom.lw will pick automatically the Length and Width columns of the data frame, and the resulting plot will have an indication of the unit of measurement.

Usage

tipom.import(imported.data, name, units, description=NULL)

Arguments

imported.data
data frame containing the observations
name
the human-readable name of the data
units
the unit of measurement used in the data (e.g. cm or mm)
description
a longer description of the data

Value

  • Returns a data frame with a few extra attributes that make it easier to pass data from one function to another.