columns,DataFrame-method {SparkR}R Documentation

Column names

Description

Return all column names as a list

Usage

## S4 method for signature 'DataFrame'
columns(x)

## S4 method for signature 'DataFrame'
names(x)

Arguments

x

A SparkSQL DataFrame

Examples

## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D columns(df)
## End(Not run)

[Package SparkR version 1.4.1 Index]