Learn R Programming

oppr (version 1.0.5)

tibble-methods: Manipulate tibbles

Description

Assorted functions for manipulating tibble::tibble() objects.

Usage

# S4 method for tbl_df
nrow(x)

# S4 method for tbl_df ncol(x)

# S4 method for tbl_df as.list(x)

Arguments

x

tibble::tibble() object.

Details

The following methods are provided from manipulating tibble::tibble() objects.

nrow

extract integer number of rows.

ncol

extract integer number of columns.

as.list

convert to a list.

print

print the object.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab