Skip to content

Shortcut to put in variables with same names #158

@lauken13

Description

@lauken13
          Great to hear :) 

Could the values map be made an optional argument? Then, e.g.,

lga_map <- mrpkit::QuestionMap$new("lga", c("lga", "lga"))

would assume the levels are identical?

Could you do something similar for variable names that match so that you don't have to write the name twice? So:

lga_map <- mrpkit::QuestionMap$new("lga", "lga")

Going one step even futher, if the colnames are optional too, then we assume both columns have the same name as the question map. So in our instance:

lga_map <- mrpkit::QuestionMap$new("lga")

Originally posted by @kinto-b in #153 (comment)

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