limit: Limit or show a sample of a 'spark_tbl'

Description Usage Arguments Details Value Examples

Description

Limit or show a sample of a spark_tbl

Usage

1
2
3
4
5
6
limit(.data, n)

## S3 method for class 'spark_tbl'
head(x, ...)

take(.data, n)

Arguments

.data

a spark_tbl

n

numeric, the number of rows to collect

x

a spark_tbl

...

other arguments passed, currently unused

Details

limit and head just gets the top n rows of the spark_tbl but does not collect. take does a limit and then collects. show displays the result of take, but invisbly returns a spark_tbl.

Value

a spark_tbl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# limit returns a spark_tbl
spark_tbl(mtcars) %>% limit(15)

# take returns a tibble
spark_tbl(mtcars) %>% take(15)

# show displays the tibble, but returns a spark_tbl
spark_tbl(iris) %>% show
spark_tbl(mtcars) %>% show(15)

## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.