incadata (version 0.8.2)

dplyr_methods: dplyr methods for INCA data

Description

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.

Usage

# S3 method for incadata
filter(.data, ...)

# S3 method for incadata mutate(.data, ...)

# S3 method for incadata arrange(.data, ...)

# S3 method for incadata rename(.data, ...)

# S3 method for incadata select(.data, ...)

# S3 method for incadata slice(.data, ...)

# S3 method for incadata summarise(.data, ...)

# S3 method for incadata summarize(.data, ...)

# S3 method for incadata group_by(.data, ...)

Arguments

.data, ...

arguments passed to dplyr-methods

Value

Object as return from corresponding dplyr functions but with additional class attribute incadata.

Details

These methods should not be used directly. They are just documented for clarification of underlying data structure.

Examples

Run this code
# NOT RUN {
x <- dplyr::slice(as.incadata(incadata::ex_data), 1:10)
class(x) # "incadata"   "tbl_df"     "tbl"        "data.frame"

# }

Run the code above in your browser using DataLab