logspline (version 2.1.21)

unstrip: Reformat data as vector or matrix

Description

This function tries to convert a date.frame or a matrix to a no-frills matrix without labels, and a vector or time-series to a no-frills vector without labels.

Usage

unstrip(x)

Value

If x is two-dimensional a matrix without names, if x is one-dimensional a numerical vector

Arguments

x

one- or two-dimensional object.

Author

Charles Kooperberg clk@fredhutch.org.

Details

Many of the functions for logspline, oldlogspline, were written in the ``before data.frame'' era; unstrip attempts to keep all these functions useful with more advanced input objects. In particular, many of these functions call unstrip before doing anything else.

Examples

Run this code
data(co2)
unstrip(co2)
data(iris)
unstrip(iris)

Run the code above in your browser using DataLab