From 89657f8f059ea91b83cace02314b1b6865eea80d Mon Sep 17 00:00:00 2001 From: Sun Rui Date: Wed, 16 Dec 2015 15:47:10 +0800 Subject: [PATCH] Use read.json() instead of jsonFile() in function description of drop(). --- R/pkg/R/DataFrame.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg/R/DataFrame.R b/R/pkg/R/DataFrame.R index d18d1d0534c52..51510e4101e44 100644 --- a/R/pkg/R/DataFrame.R +++ b/R/pkg/R/DataFrame.R @@ -2413,7 +2413,7 @@ setMethod("str", #' sc <- sparkR.init() #' sqlCtx <- sparkRSQL.init(sc) #' path <- "path/to/file.json" -#' df <- jsonFile(sqlCtx, path) +#' df <- read.json(sqlCtx, path) #' drop(df, "col1") #' drop(df, c("col1", "col2")) #' drop(df, df$col1)