| as.data.frame {SparkR} | R Documentation |
This function downloads the contents of a SparkDataFrame into an R's data.frame. Since data.frames are held in memory, ensure that you have enough memory in your system to accommodate the contents.
as.data.frame(x, row.names = NULL, optional = FALSE, ...) ## S4 method for signature 'SparkDataFrame' as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
a SparkDataFrame |
a data.frame
Other SparkDataFrame functions: SparkDataFrame-class,
[[, agg,
arrange, 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
## Not run:
##D
##D irisDF <- createDataFrame(sqlContext, iris)
##D df <- as.data.frame(irisDF[irisDF$Species == "setosa", ])
## End(Not run)