Learn R Programming

hyperSpec (version 0.98-20140523)

empty: Empty hyperSpec object

Description

Empty produces an hyperSpec object with the same columns and wavelengths as x. The new object will either contain no rows at all (default), or the given number of rows with all data initialized to spc and extra, respectively.

Usage

empty(x, nrow = 0, spc = NA, extra = NA, short = "empty",
    user = NULL, date = NULL)

Arguments

x
hyperSpec object
nrow
number of rows the new object should have
spc
value to initialize the new spectra matrix with
extra
value to initialize the new extra data with
short
handed to logentry
user
handed to logentry
date
handed to logentry

Examples

Run this code
empty (chondro, nrow = 2, spc = 0)

Run the code above in your browser using DataLab