left: Select the first 'n' columns of a dataframe or matrix

View source: R/around.R

leftR Documentation

Select the first n columns of a dataframe or matrix

Description

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

Usage

left(x, n = 6L)

Arguments

x

A dataframe or matrix.

n

The number of columns to return.

Value

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

Author(s)

Edward Lavender

Examples

left(x = data.frame(x = 1, y = 1, z = 1), n = 4)

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