WhichCorner | R Documentation |
Function to build the right row selection depending on the desired corner.
WhichCorner(corner = c("topleft", "bottomleft", "topright",
"bottomright"), r = 5L, c = 5L, object = "x")
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 |
Function to build the right row selection depending on the desired corner. Helper function for getting the indexing for data.frame's, matrices
An expression that is evaluated to return the proper portion of the data
Jared P. Lander
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.