Skip to content

import_instruments fail after dplyr #67

@TIngchangW

Description

@TIngchangW

The function uses:
drop_dot_one <- redcap[, c(meta, curr_instr_idx)] %>%
select(-ends_with(".1"))_
to select the variables names in instrument. However, duplicated colunmns are not appended by '.1' now in dplyr. I suggest the following changes:
drop_dot_one <- redcap[, unique(c(meta, curr_instr_idx))]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions