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

Description Usage Arguments Value Author(s) References Examples

View source: R/zip2image.R

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

1

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

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

tensorBSS documentation built on June 2, 2021, 9:08 a.m.