tibble-methods {prioritizr} | R Documentation |
Manipulate tibbles
Description
Assorted functions for manipulating tibble::tibble()
objects.
Usage
## S4 method for signature 'tbl_df'
nrow(x)
## S4 method for signature 'tbl_df'
ncol(x)
## S4 method for signature 'tbl_df'
as.list(x)
Arguments
x |
|
Details
The following methods are provided from manipulating
tibble::tibble()
objects.
- nrow
integer
number of rows.- ncol
integer
number of columns.- as.list
convert to a
list
.print the object.
Examples
# load tibble package
require(tibble)
# make tibble
a <- tibble(value = seq_len(5))
# number of rows
nrow(a)
# number of columns
ncol(a)
# convert to list
as.list(a)
[Package prioritizr version 8.0.4 Index]