cast {SparkR}R Documentation

Casts the column to a different data type.

Description

Casts the column to a different data type.

Usage

## S4 method for signature 'Column'
cast(x, dataType)

See Also

Other colum_func: alias; between; otherwise; substr

Examples

## Not run: 
##D   cast(df$age, "string")
##D   cast(df$name, list(type="array", elementType="byte", containsNull = TRUE))
## End(Not run)

[Package SparkR version 1.5.2 Index]