cast {SparkR}R Documentation

Casts the column to a different data type.

Description

Casts the column to a different data type.

Usage

cast(x, dataType)

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

Arguments

x

a Column.

dataType

a character object describing the target data type. See Spark Data Types for available data types.

Note

cast since 1.4.0

See Also

Other column_func: alias(), between(), endsWith(), otherwise(), over(), startsWith(), substr()

Examples



## Not run: 
##D   cast(df$age, "string")
## End(Not run)




[Package SparkR version 3.2.4 Index]