as-sdf: Convert to a SparkR 'SparkDataFrame'

Description Usage Arguments Examples

Description

Convert to a SparkR SparkDataFrame

Usage

1
2
3
4
5
6
7
as_SparkDataFrame(x, ...)

## S3 method for class 'spark_tbl'
as_SparkDataFrame(x, ...)

## S3 method for class 'jobj'
as_SparkDataFrame(x, ...)

Arguments

x

a spark_tbl or jobj representing a DataFrame

...

additional arguments passed on to methods, currently unused

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
spark_session()

df <- spark_tbl(iris)
as_SparkDataFrame(df)

df_jobj <- attr(df, "jc")
as_SparkDataFrame(df_jobj)

spark_session_stop()

## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.