Skip to content

Commit 23fc1d7

Browse files
committed
revert
1 parent 560ff0e commit 23fc1d7

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

R/pkg/R/DataFrame.R

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ setMethod("saveAsParquetFile",
715715

716716
#' Save the content of SparkDataFrame in a text file at the specified path.
717717
#'
718-
#' Saves the content of the SparkDataFrame in a text file at the specified path.
718+
#' Save the content of the SparkDataFrame in a text file at the specified path.
719719
#' The SparkDataFrame must have only one column of string type with the name "value".
720720
#' Each row becomes a new line in the output file.
721721
#'
@@ -820,8 +820,6 @@ setMethod("sample_frac",
820820
sample(x, withReplacement, fraction, seed)
821821
})
822822

823-
#' nrow
824-
#'
825823
#' Returns the number of rows in a SparkDataFrame
826824
#'
827825
#' @param x A SparkDataFrame
@@ -852,8 +850,6 @@ setMethod("nrow",
852850
count(x)
853851
})
854852

855-
#' ncol
856-
#'
857853
#' Returns the number of columns in a SparkDataFrame
858854
#'
859855
#' @param x a SparkDataFrame
@@ -876,7 +872,7 @@ setMethod("ncol",
876872
length(columns(x))
877873
})
878874

879-
#' dim
875+
#' Returns the dimensions of SparkDataFrame
880876
#'
881877
#' Returns the dimensions (number of rows and columns) of a SparkDataFrame
882878
#' @param x a SparkDataFrame
@@ -899,8 +895,6 @@ setMethod("dim",
899895
c(count(x), ncol(x))
900896
})
901897

902-
#' collect
903-
#'
904898
#' Collects all the elements of a SparkDataFrame and coerces them into an R data.frame.
905899
#'
906900
#' @param x A SparkDataFrame
@@ -998,8 +992,6 @@ setMethod("limit",
998992
dataFrame(res)
999993
})
1000994

1001-
#' take
1002-
#'
1003995
#' Take the first NUM rows of a SparkDataFrame and return a the results as a data.frame
1004996
#'
1005997
#' @family SparkDataFrame functions
@@ -1050,8 +1042,6 @@ setMethod("head",
10501042
take(x, num)
10511043
})
10521044

1053-
#' first
1054-
#'
10551045
#' Return the first row of a SparkDataFrame
10561046
#'
10571047
#' @param x A SparkDataFrame
@@ -2058,8 +2048,6 @@ setMethod("merge",
20582048
joinRes
20592049
})
20602050

2061-
#' generateAliasesForIntersectedCols
2062-
#'
20632051
#' Creates a list of columns by replacing the intersected ones with aliases.
20642052
#' The name of the alias column is formed by concatanating the original column name and a suffix.
20652053
#'
@@ -2189,9 +2177,9 @@ setMethod("except",
21892177

21902178
#' Save the contents of SparkDataFrame to a data source.
21912179
#'
2192-
#' Save the contents of the SparkDataFrame to a data source. The data source is specified by the
2193-
#' `source` and a set of options (...). If `source` is not specified, the default data source
2194-
#' configured by spark.sql.sources.default will be used.
2180+
#' The data source is specified by the `source` and a set of options (...).
2181+
#' If `source` is not specified, the default data source configured by
2182+
#' spark.sql.sources.default will be used.
21952183
#'
21962184
#' Additionally, mode is used to specify the behavior of the save operation when data already
21972185
#' exists in the data source. There are four modes:
@@ -2250,8 +2238,6 @@ setMethod("saveDF",
22502238
write.df(df, path, source, mode, ...)
22512239
})
22522240

2253-
#' saveAsTable
2254-
#'
22552241
#' Save the contents of the SparkDataFrame to a data source as a table
22562242
#'
22572243
#' The data source is specified by the `source` and a set of options (...).
@@ -2791,7 +2777,7 @@ setMethod("histogram",
27912777

27922778
#' Save the content of SparkDataFrame to an external database table via JDBC.
27932779
#'
2794-
#' Saves the content of the SparkDataFrame to an external database table via JDBC. Additional JDBC
2780+
#' Save the content of the SparkDataFrame to an external database table via JDBC. Additional JDBC
27952781
#' database connection properties can be set (...)
27962782
#'
27972783
#' Also, mode is used to specify the behavior of the save operation when

0 commit comments

Comments
 (0)