Learn R Programming

useful (version 1.2.4)

left: Grabs the left side of a data set

Description

Display the left side of a rectangular data set

Usage

left(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 left side of a rectangular data set.

This is a wrapper function for corner

See Also

head tail corner topright bottomleft bottomright topleft right

Examples

Run this code
# NOT RUN {
data(diamonds)
head(diamonds)      # displays all columns
left(diamonds)    # displays all rows and only the first 5 columns

# }

Run the code above in your browser using DataLab