right: Select the last 'n' columns of a dataframe or matrix

View source: R/around.R

rightR Documentation

Description

This function returns the last n columns of a dataframe or matrix.

Usage

right(x, n = 6L)

Arguments

x

A dataframe or matrix.

n

The number of columns to return.

Value

The function returns the last n columns of a dataframe or matrix.

Author(s)

Edward Lavender

Examples

right(x = data.frame(x = 1, y = 1, z = 1), n = 2L)

edwardlavender/utils.add documentation built on Dec. 14, 2024, 8:11 a.m.