Short-hand functions for retriving file information such as number of columns or rows, or picking the first column (relevant if this contains IDs).
get_ncols returns number of columns.
get_nlines returns number of lines.
get_firstcolumn is a wrapper for
read.table that allows the user
to easily get the first column(s) by padding
"NULL" character elements to
1 2 3 4 5
Filename or connection to read from.
Character vector of classes to use for column(s), see
Parameters sent to
get_ncols: Number of read fields, including ID columns.
get_nlines: Number of lines, or
NA on error.
get_firstcolumn: Vector with elements of first column, or
class contains multiple not-
get_nlines is implemented in Fortran and may return
NA with an error message, if an error is encountered.
The first column most likely contains non-integer or non-numeric elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.