zip2image: function to convert row of zip file to format used by image()

View source: R/zip2image.R

zip2imageR Documentation

function to convert row of zip file to format used by image()

Description

This .RD-file and the corresponding function are originally from the R-package ElemStatLearn which has now been removed from CRAN.

This is a utility function converting zip.train/zip.test data to format useful for plotting with the function image.

Usage

zip2image(zip, line)

Arguments

zip

zip.train or zip.test.

line

row of matrix to take

Value

16 x 16 matrix suitable as argument for image.

Author(s)

Kjetil Halvorsen

References

Kjetil B Halvorsen (package maintainer) (2019), R-package ElemStatLearn: Data Sets, Functions and Examples from the Book: "The Elements of Statistical Learning, Data Mining, Inference, and Prediction" by Trevor Hastie, Robert Tibshirani and Jerome Friedman

Examples

## See example section of help file for zip.train

tensorBSS documentation built on Sept. 12, 2024, 5:07 p.m.