Skip to contents

Registry of feature kinds and named feature lists

Usage

register_feature_factory(kind, factory, overwrite = FALSE)

available_features()

make_feature(kind, ...)

feature_list(name, args)

Arguments

kind

Name of a feature kind (ruca, sdi, area, sql, custom, or one you register).

factory

function(...) returning a study_feature.

overwrite

Replace an existing kind.

...

Arguments for the factory.

name

Name of a feature list ("geography" = RUCA + SDI).

args

Named list: for each kind in the list, a list of arguments for its factory.

Value

register_feature_factory(): NULL invisibly. make_feature(): a study_feature. available_features(): kind names.

feature_list(): a feature_set.