Learn R Programming

replyr (version 0.9.2)

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

Description

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

Usage

replyr_ncol(x)

Arguments

x

tbl or item that can be coerced into such.

Value

number of columns

Examples

Run this code
# NOT RUN {
d <- data.frame(x=c(1,2))
replyr_ncol(d)

# }

Run the code above in your browser using DataLab