@@ -158,8 +158,8 @@ group_vars.Ranges <- function(x) character(0)
158
158
# ' @method group_keys GroupedGenomicRanges
159
159
# ' @export
160
160
# ' @importFrom dplyr group_keys
161
- group_keys.GroupedGenomicRanges <- function (.data , ... ) {
162
- .data @ group_keys
161
+ group_keys.GroupedGenomicRanges <- function (.tbl , ... ) {
162
+ .tbl @ group_keys
163
163
}
164
164
165
165
# ' @method group_keys GroupedIntegerRanges
@@ -168,11 +168,11 @@ group_keys.GroupedIntegerRanges <- group_keys.GroupedGenomicRanges
168
168
169
169
# ' @method group_keys Ranges
170
170
# ' @export
171
- group_keys.Ranges <- function (.data , ... ) {
171
+ group_keys.Ranges <- function (.tbl , ... ) {
172
172
if (length(enquos(... )) == 0 ) {
173
173
return (new(" DFrame" , nrows = 1L ))
174
174
}
175
- NextMethod(group_by(.data , ... ))
175
+ NextMethod(group_by(.tbl , ... ))
176
176
}
177
177
178
178
# ' @method group_indices GroupedGenomicRanges
@@ -228,20 +228,20 @@ group_data.Ranges <- function(.data) {
228
228
# ' @method group_split GroupedGenomicRanges
229
229
# ' @export
230
230
# ' @importFrom dplyr group_split
231
- group_split.GroupedGenomicRanges <- function (.data , ... , keep = TRUE ) {
231
+ group_split.GroupedGenomicRanges <- function (.tbl , ... , keep = TRUE ) {
232
232
if (length(enquos(... )) > 0 ) {
233
233
warning(" Ignoring arguments to `...`
234
234
and using existing group structure" )
235
235
}
236
236
237
- rng <- .data @ delegate
237
+ rng <- .tbl @ delegate
238
238
239
239
if (! keep ) {
240
- vars_drop <- lapply(group_vars(.data ), function (. ) rlang :: quo(- !! . ))
240
+ vars_drop <- lapply(group_vars(.tbl ), function (. ) rlang :: quo(- !! . ))
241
241
rng <- select(rng , !!! vars_drop )
242
242
}
243
243
244
- unname(S4Vectors :: split(rng , .data @ group_indices ))
244
+ unname(S4Vectors :: split(rng , .tbl @ group_indices ))
245
245
}
246
246
247
247
# ' @method group_split GroupedIntegerRanges
@@ -250,9 +250,9 @@ group_split.GroupedIntegerRanges <- group_split.GroupedGenomicRanges
250
250
251
251
# ' @method group_split Ranges
252
252
# ' @export
253
- group_split.Ranges <- function (.data , ... , keep = TRUE ) {
253
+ group_split.Ranges <- function (.tbl , ... , keep = TRUE ) {
254
254
if (length(enquos(... )) == 0 ) {
255
- return (as(.data , " List" ))
255
+ return (as(.tbl , " List" ))
256
256
}
257
- NextMethod(group_by(.data , ... ))
257
+ NextMethod(group_by(.tbl , ... ))
258
258
}
0 commit comments