table.sR: A Tabulate Function

Description Usage Arguments Examples

Description

This function allows you to attain a frequency table of a single or two columns from a SparkR DataFrame. The output is meant to replicate that of base::table().

Usage

1
table.sR(df, col, col2 = col)

Arguments

df

The name of the DataFrame.

col

The name of the column, character string.

Examples

1
2
table.sR(iris, "Sepal_Length")
table.sR(iris, "Sepal_Length", "Sepal_Width")

mtoto/SparkRhelpers documentation built on May 23, 2019, 8:19 a.m.