Description Usage Arguments Value Note Examples
Write given (dense) R matrix and R vector in sparse (LIBSVM) format to given file.
1 2 | writeSparseData(filename, X, Y, append = FALSE, skipBytes = 0L,
verbose = FALSE, zeroBased = FALSE)
|
filename |
the filename to write the given data to |
X |
The data to write as a matrix |
Y |
The labels for the data. |
append |
Append to the file (or overwrite)? |
skipBytes |
How many bytes of the head of the files should be skipped? |
verbose |
Be verbose? |
zeroBased |
Do the indices in the file start with 0, e.g. -1 0:2 1:4 ...? |
NULL.
Labels can any numeric, they are not converted in any way.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.