Skip to content

Commit acc8457

Browse files
committed
mark optional for subset argument
1 parent 92b1bd7 commit acc8457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/pkg/R/DataFrame.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ setMethod("[", signature(x = "DataFrame", i = "Column"),
11851185
#'
11861186
#' Return subsets of DataFrame according to given conditions
11871187
#' @param x A DataFrame
1188-
#' @param subset A logical expression to filter on rows
1188+
#' @param subset (Optional) A logical expression to filter on rows
11891189
#' @param select expression for the single Column or a list of columns to select from the DataFrame
11901190
#' @return A new DataFrame containing only the rows that meet the condition with selected columns
11911191
#' @export
@@ -1211,9 +1211,9 @@ setMethod("[", signature(x = "DataFrame", i = "Column"),
12111211
setMethod("subset", signature(x = "DataFrame"),
12121212
function(x, subset, select, ...) {
12131213
if (missing(subset)) {
1214-
x[, select, ...]
1214+
x[, select, ...]
12151215
} else {
1216-
x[subset, select, ...]
1216+
x[subset, select, ...]
12171217
}
12181218
})
12191219

0 commit comments

Comments
 (0)