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
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
I found the answer in an older post Add column to DataFrame in sparkR
df$new <- ifelse(condition, "N", "N")