Skip to content

Functions failing on tibbles #82

@R-Walmsley

Description

@R-Walmsley

Some functions fail on tibbles. For example, the comp_mean function.

In the case of comp_mean, this is because tibbles and data frames treat dat[, "colname"] differently, with a data frame returning a vector and a tibble returning a data frame. This leads later functions (in the case of comp_mean, the gm function, because of trying to run mean on a tibble) to return NA values, screwing up computations and leading to a cryptic error message that gives little hint as to the actual problem.

A (much needed!) major rewrite of the package might improve lots of this code to be smart about what it is and is not receiving and returning (e.g. lots more checking of class of objects).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions