powered by
Casts the column to a different data type.
cast(x, dataType)# S4 method for Column cast(x, dataType)
# S4 method for Column cast(x, dataType)
a Column.
a character object describing the target data type. See Spark Data Types for available data types.
Other colum_func: alias, between, endsWith, otherwise, over, startsWith, substr
alias
between
endsWith
otherwise
over
startsWith
substr
# NOT RUN { cast(df$age, "string") # }
Run the code above in your browser using DataLab