# NOT RUN {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
dropna(df)
# }
# NOT RUN {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
fillna(df, 1)
fillna(df, list("age" = 20, "name" = "unknown"))
# }
Run the code above in your browser using DataLab