Compute dimensions of a data.frame (work around https://github.com/rstudio/sparklyr/issues/976 ).

replyr_dim(x)

Arguments

x

tbl or item that can be coerced into such.

Value

dimensions (including rows)

Examples

d <- data.frame(x=c(1,2)) replyr_dim(d)
#> [1] 2 1