SparkDataFrame-class {SparkR}R Documentation

S4 class that represents a SparkDataFrame

Description

DataFrames can be created using functions like createDataFrame, read.json, table etc.

Usage

dataFrame(sdf, isCached = FALSE)

Arguments

sdf

A Java object reference to the backing Scala DataFrame

isCached

TRUE if the SparkDataFrame is cached

Slots

env

An R environment that stores bookkeeping states of the SparkDataFrame

sdf

A Java object reference to the backing Scala DataFrame

See Also

createDataFrame, read.json, table

https://spark.apache.org/docs/latest/sparkr.html#sparkr-dataframes

Other SparkDataFrame functions: [[, agg, arrange, as.data.frame, attach, cache, collect, colnames, coltypes, columns, count, dapply, describe, dim, distinct, dropDuplicates, dropna, drop, dtypes, except, explain, filter, first, group_by, head, histogram, insertInto, intersect, isLocal, join, limit, merge, mutate, ncol, persist, printSchema, registerTempTable, rename, repartition, sample, saveAsTable, selectExpr, select, showDF, show, str, take, unionAll, unpersist, withColumn, write.df, write.jdbc, write.json, write.parquet, write.text

Examples

## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D df <- createDataFrame(sqlContext, faithful)
## End(Not run)

[Package SparkR version 2.0.0 Index]