sdim | R Documentation |
sdim()
prints the name and dimensions of list
object elements,
such as a list
of data.frame
ssdim()
prints the name and dimensions of nested elements of list
objects, for example a list
of list
objects that each contain
other objects.
sdima()
prints the name and dimensions of object attributes(x)
.
It is useful for summarizing the attributes()
of an object.
ssdima()
prints the name and dimensions of nested elements of list
object attributes()
, for example a list
of list
objects that each
contain other objects. It is useful for comparing attributes across list
elements.
This function prints the dimensions of a list of objects, usually a list
of data.frame
objects, but extended to handle more complicated lists,
including even S4 object slotNames()
.
Over time, more object types will be made compatible with this function.
Currently, igraph
objects will print the number of nodes and edges, but
requires the igraph package to be installed.
sdim(
x,
includeClass = TRUE,
doFormat = FALSE,
big.mark = ",",
verbose = FALSE,
...
)
sdima(
x,
includeClass = TRUE,
doFormat = FALSE,
big.mark = ",",
verbose = FALSE,
...
)
ssdima(
x,
includeClass = TRUE,
doFormat = FALSE,
big.mark = ",",
verbose = FALSE,
...
)
ssdim(
x,
includeClass = TRUE,
doFormat = FALSE,
big.mark = ",",
verbose = FALSE,
...
)
x |
one of several recognized object classes:
|
includeClass |
|
doFormat |
|
big.mark |
|
verbose |
|
... |
additional parameters are ignored. |
data.frame
where each row indicates the dimensions of
each element in the input list. When includeClass
is TRUE
it
will include a column class
which indicates the class of each
list element. When the input list contains arrays with more than
two dimensions, the first two dimensions are named "rows"
and
"columns"
with additional dimensions named "dim3"
and so on.
Any list element with fewer than that many dimensions will only have
values populated to the relevant dimensions, for example a character
vector will only populate the length.
list
of data.frame
each of which
describes the dimensions of the objects in
attributes(x)
.
list
of data.frame
, each row indicates the dimensions of
each element in the input list.
When includeClass
is TRUE
it
will include a column class
which indicates the class of each
list element.
When the input list
contains arrays with more than
two dimensions, the first two dimensions are named "rows"
and
"columns"
with additional dimensions named "dim3"
and so on.
Any list
element with fewer than that many dimensions will only have
values populated to the relevant dimensions, for example a character
vector will only populate the length.
Other jam practical functions:
breakDensity()
,
checkLightMode()
,
check_pkg_installed()
,
colNum2excelName()
,
color_dither()
,
diff_functions()
,
exp2signed()
,
fileInfo()
,
fixYellow()
,
getAxisLabel()
,
handleArgsText()
,
heads()
,
isFALSEV()
,
isTRUEV()
,
jamba
,
jargs()
,
kable_coloring()
,
lldf()
,
log2signed()
,
make_html_styles()
,
make_styles()
,
match_unique()
,
mergeAllXY()
,
middle()
,
minorLogTicks()
,
newestFile()
,
printDebug()
,
renameColumn()
,
rmInfinite()
,
rmNAs()
,
rmNA()
,
rmNULL()
,
sclass()
,
setPrompt()
Other jam list functions:
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
heads()
,
jam_rapply()
,
list2df()
,
mergeAllXY()
,
mixedSorts()
,
rbindList()
,
relist_named()
,
rlengths()
,
sclass()
,
uniques()
,
unnestList()
L <- list(LETTERS=LETTERS,
letters=letters,
lettersDF=data.frame(LETTERS, letters));
sdim(L)
LL <- list(L=L, A=list(1:10))
sdim(LL)
ssdim(LL)
m <- matrix(1:9,
ncol=3,
dimnames=list(
Rows=letters[1:3],
Columns=LETTERS[1:3]));
sdima(m);
ssdima(m);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.