I have the sql table on the databricks created using the following code
%sql
CREATE TABLE data
USING CSV
OPTIONS (header "true", inferSchema "true")
LOCATION "url/data.csv"
The following code converts that table to sparkr and r dataframe, respectively:
%r
library(SparkR)
data_spark <- sql("SELECT * FROM data")
data_r_df <- as.data.frame(data_spark)
But I don't know how should I convert any or all of these dataframes into sparklyr dataframe to leverage parallelization of sparklyr?
Just
or