I would like to add a column filled with a character N in a DataFrame in SparkR. I would do it like that with non-SparkR code :
N
df$new_column &l
There's an easier way to use SparkR::lit() that more closely mimics the syntax you tried first:
SparkR::lit()
df$new_column <- lit("N")