R: dplyr methods for INCA data

dplyr_methods {incadata} | R Documentation

## 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 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, ...)

### Arguments

`.data, ...` | arguments passed to dplyr-methods

### Details

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

### Value

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

### Examples

    x <- dplyr::slice(as.incadata(incadata::ex_data), 1:10)
    class(x) # "incadata"   "tbl_df"     "tbl"        "data.frame"

[Package incadata version 0.6.4 Index]