-1

I want to do this in a sparkR data frame:

I'm adding a column with the String "a" to the data frame

df$new_col <- "a"

I can't find a way to do this in sparkR

Erick Díaz
  • 98
  • 2
  • 15

1 Answers1

0

I found the answer in an older post Add column to DataFrame in sparkR

df$new <- ifelse(condition, "N", "N")
Community
  • 1
  • 1
Erick Díaz
  • 98
  • 2
  • 15