showd | R Documentation |
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.
showd(data, first = 3, nrow. = 4, ncol. = NULL, digits=getOption("digits"))
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 |
The tit
attribute of data
will be printed if available and
getUserOption("doc") > 0
, and any doc
attribute,
if getUserOption("doc") >= 2
(see tit
).
returns invisibly the character vector containing the formatted data
Werner A. Stahel, ETH Zurich
head
and tail
.
showd(iris)
data(d.birthrates)
names(d.birthrates)
## only show 7 columns, including the first and last
showd(d.birthrates, ncol=7)
showd(cbind(1:100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.