struct {SparkR}R Documentation

struct

Description

Creates a new struct column that composes multiple input columns.

Usage

## S4 method for signature 'characterOrColumn'
struct(x, ...)

struct(x, ...)

Arguments

x

a column to compute on.

...

optional column(s) to be included.

Note

struct since 1.6.0

See Also

Other normal_funcs: Column-class, column, column, column, column,character-method, column,jobj-method; abs, abs,Column-method; bitwiseNOT, bitwiseNOT, bitwiseNOT,Column-method; expr, expr, expr,character-method; greatest, greatest, greatest,Column-method; ifelse, ifelse,Column-method; is.nan, is.nan,Column-method, isnan, isnan, isnan,Column-method; least, least, least,Column-method; lit, lit, lit,ANY-method; nanvl, nanvl, nanvl,Column-method; negate, negate, negate,Column-method; randn, randn, randn, randn,missing-method, randn,numeric-method; rand, rand, rand, rand,missing-method, rand,numeric-method; when, when, when,Column-method

Examples

## Not run: 
##D struct(df$c, df$d)
##D struct("col1", "col2")
## End(Not run)

[Package SparkR version 2.1.0 Index]