Skip to content

Commit f629dcd

Browse files
committed
fix: [<-, [[<-, $<- on grouped epi_dfs: drop edf-ness only when necessary
1 parent 5154a66 commit f629dcd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

NAMESPACE

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method("$<-",epi_df)
34
S3method("[",epi_df)
5+
S3method("[<-",epi_df)
6+
S3method("[[<-",epi_df)
47
S3method("names<-",epi_df)
58
S3method(Summary,epi_df)
69
S3method(arrange_canonical,default)

R/methods-epi_df.R

+21
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,27 @@ reconstruct_light_edf <- function(data, template) {
235235
reconstruct_light_edf(res, x)
236236
}
237237

238+
#' @export
239+
`[<-.epi_df` <- function(x, ...) {
240+
res <- NextMethod()
241+
242+
reconstruct_light_edf(res, x)
243+
}
244+
245+
#' @export
246+
`[[<-.epi_df` <- function(x, ...) {
247+
res <- NextMethod()
248+
249+
reconstruct_light_edf(res, x)
250+
}
251+
252+
#' @export
253+
`$<-.epi_df` <- function(x, ...) {
254+
res <- NextMethod()
255+
256+
reconstruct_light_edf(res, x)
257+
}
258+
238259
#' @importFrom dplyr dplyr_col_modify
239260
#' @export
240261
dplyr_col_modify.epi_df <- function(data, cols) {

0 commit comments

Comments
 (0)