| dplyr_methods {incadata} | R Documentation |
Verbs from the dplyr package can be used for incadata directly, but the incadata object will then loose its class. These methods will preserve the class.
## S3 method for class 'incadata' filter(.data, ...) ## S3 method for class 'incadata' mutate(.data, ...) ## S3 method for class 'incadata' arrange(.data, ...) ## S3 method for class 'incadata' rename(.data, ...) ## S3 method for class 'incadata' select(.data, ...) ## S3 method for class 'incadata' slice(.data, ...) ## S3 method for class 'incadata' summarise(.data, ...) ## S3 method for class 'incadata' summarize(.data, ...) ## S3 method for class 'incadata' group_by(.data, ...)
.data, ... |
arguments passed to dplyr-methods |
These methods should not be used directly. They are just documented for clarification of underlying data structure.
Object as return from corresponding dplyr functions but with
additional class attribute incadata.
x <- dplyr::slice(as.incadata(incadata::ex_data), 1:10) class(x) # "incadata" "tbl_df" "tbl" "data.frame"