WhichCorner: WhichCorner

Description Usage Arguments Details Value Author(s) Examples

View source: R/corner.r

Description

Function to build the right row selection depending on the desired corner.

Usage

1
2
WhichCorner(corner = c("topleft", "bottomleft", "topright", "bottomright"),
  r = 5L, c = 5L, object = "x")

Arguments

corner

(character) which corner to display c("topleft", "bottomleft", "topright", "bottomright")

r

(numeric) the number of rows to show

c

(numeric) the number of columns to show

object

The name of the object that is being subsetted

Details

Function to build the right row selection depending on the desired corner. Helper function for getting the indexing for data.frame's, matrices

Value

An expression that is evaluated to return the proper portion of the data

Author(s)

Jared P. Lander

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
WhichCorner('topleft')
WhichCorner('bottomleft')
WhichCorner('topright')
WhichCorner('bottomright')

WhichCorner('topleft', r=6)
WhichCorner('bottomleft', r=6)
WhichCorner('topright', r=6)
WhichCorner('bottomright', r=6)

WhichCorner('topleft', c=7)
WhichCorner('bottomleft', c=7)
WhichCorner('topright', c=7)
WhichCorner('bottomright', c=7)

WhichCorner('topleft', r=8, c=3)
WhichCorner('bottomleft', r=8, c=3)
WhichCorner('topright', r=8, c=3)
WhichCorner('bottomright', r=8, c=3)

## End(Not run)

useful documentation built on June 7, 2017, 9:02 a.m.

Search within the useful package
Search all R packages, documentation and source code