python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to use an undefined list of variables as column names in a SparkDataFrame with SparkR?
I keep progressing in the world of SparkR, and I am now facing an issue which I am unable to resolve.
Working on SparkDataFrame manipulations, I may want to update some columns, or aggregate others. I...
Discus23
Votes: 0
Answers: 1
Apply a function to multiple columns of a SparkDataFrame, at once
In basic R, this is how I apply a function to multiple columns at once, using data.table :
d <- data.table(V1 = rep(1:2, 4:3), V2 = c(1, 2, 4, 5, 2, 3, 4), V3 = 1:7, V4 = sample(letters, 7))
Cols &...
Discus23
Votes: 0
Answers: 1
How to store SparkR result into an R object?
Still new to the world of Azure Databricks, the use of SparkR remains very obscure to me, even for very simple tasks...
It took me a very long time to find how to count distinct values, and I'm not su...
Discus23
Votes: 0
Answers: 2
How to access a Databricks database with sparklyr
New in Azure Databricks environment, I discover the packages SparkR and sparklyr.
From my notebooks with SparkR, I manage to connect to a database :
library(SparkR)
DW <- sql("select * from my...
Discus23
Votes: 0
Answers: 1