Learn R Programming

useful (version 1.2.6)

right: Grabs the right side of a data set

Description

Display the right side of a rectangular data set

Usage

right(x, c = 5L, ...)

Value

... The left side of the data set that was requested. The size depends on c.

Arguments

x

The data

c

Number of columns to show

...

Arguments passed on to other functions

Author

Jared P. Lander www.jaredlander.com

Details

Displays the right side of a rectangular data set.

This is a wrapper function for corner

See Also

head tail corner topright bottomleft bottomright topleft topleft

Examples

Run this code

data(diamonds)
head(diamonds)      # displays all columns
right(diamonds)    # displays all rows and only the last 5 columns

Run the code above in your browser using DataLab