head.dm_zoomed {dm} | R Documentation |
utils table manipulation methods for dm_zoomed
objects
Description
Extract the first or last rows from a table.
Use these methods without the '.dm_zoomed' suffix (see examples).
The methods for regular dm
objects extract the first or last tables.
Usage
## S3 method for class 'dm_zoomed'
head(x, n = 6L, ...)
## S3 method for class 'dm_zoomed'
tail(x, n = 6L, ...)
Arguments
x |
object of class |
n |
an integer vector of length up to |
... |
arguments to be passed to or from other methods. |
Details
see manual for the corresponding functions in utils.
Value
A dm_zoomed
object.
Examples
zoomed <- dm_nycflights13() %>%
dm_zoom_to(flights) %>%
head(4)
zoomed
dm_insert_zoomed(zoomed, new_tbl_name = "head_flights")