head.duckplyr_df: Return the First Parts of an Object

View source: R/head.R

head.duckplyr_dfR Documentation

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 class '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

head()

Examples

head(mtcars, 2)

duckdblabs/duckplyr documentation built on March 5, 2025, 3:46 a.m.