Learn R Programming

duckplyr (version 1.0.1)

head.duckplyr_df: Return the First Parts of an Object

Description

This is a method for the head() generic. See "Fallbacks" section for differences in implementation. Return the first rows of a data.frame

Usage

# S3 method for duckplyr_df
head(x, n = 6L, ...)

Arguments

x

A data.frame

n

A positive integer, how many rows to return.

...

Not used yet.

Fallbacks

There is no DuckDB translation in head.duckplyr_df()

  • with a negative n.

These features fall back to head(), see vignette("fallback") for details.

See Also

Examples

Run this code
head(mtcars, 2)

Run the code above in your browser using DataLab