showd {relevance} | R Documentation |
Show a Part of a Data.frame
Description
Shows a part of the data.frame which allows for grasping the nature of the data. The function is typically used to make sure that the data is what was desired and to grasp the nature of the variables in the phase of getting acquainted with the data.
Usage
showd(data, first = 3, nrow. = 4, ncol. = NULL, digits=getOption("digits"))
Arguments
data |
a data.frame, a matrix, or a vector |
first |
the first |
nrow. |
a selection of |
ncol. |
number of columns (variables) to be shown. The first and
last columns will also be included. If |
digits |
number of significant digits used in formatting numbers |
Value
returns invisibly the character vector containing the formatted data
Author(s)
Werner A. Stahel, ETH Zurich
See Also
Examples
showd(iris)
data(d.blast)
names(d.blast)
## only show 3 columns, including the first and last
showd(d.blast, ncol=3)
showd(cbind(1:100))