cast {SparkR} | R Documentation |
Casts the column to a different data type.
cast(x, dataType)
## S4 method for signature 'Column'
cast(x, dataType)
x |
a Column. |
dataType |
a character object describing the target data type. See Spark Data Types for available data types. |
cast since 1.4.0
Other column_func:
alias()
,
between()
,
endsWith()
,
otherwise()
,
over()
,
startsWith()
,
substr()
## Not run:
##D cast(df$age, "string")
## End(Not run)