Learn R Programming

useful (version 1.2.4)

right: Grabs the right side of a data set

Description

Display the right side of a rectangular data set

Usage

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

Arguments

x

The data

c

Number of columns to show

Arguments passed on to other functions

Value

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

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
# NOT RUN {
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