cancel
Showing results for 
Search instead for 
Did you mean: 
suxinji
Employee Alumni
Employee Alumni
 

Overview

In this recipe, you'll learn how to convert Spark DataFrame into R DataFrame. Use collect() to collect the data from Spark DataFrame to R DataFrame. 

Solution

# collect the data from Spark to local
# convert Spark DataFrame into R data frame
local_df_r <- collect(df)
display(local_df_r)

Screen Shot 2022-04-05 at 5.49.04 PM.png

Best Practices Index
Best Practices

Just here to browse knowledge? This might help!

Version history
Last update:
‎04-08-2022 11:39 AM
Updated by: