Skip to contents

Return all column names and their data types as a list

Usage

dtypes(x)

# S4 method for SparkDataFrame
dtypes(x)

Arguments

x

A SparkDataFrame

Note

dtypes since 1.4.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
dtypes(df)
}