Skip to content

join_keys added based on keys #58

Description

@mhallal1

Feature description

In the example below, the first FilteredData object will not have joins_keys while the second will:

#won't have join_keys
ds <- init_filtered_data(list(
  ADSL = list(
    dataset = data.frame(USUBJID = "USUBJID", STUDYID = "STUDYID"), 
    keys = c("USUBJID", "STUDYID")
    )
  ))
ds$get_join_keys()

# will have join_keys

ds2 <- init_filtered_data(list(
  ADSL = list(
    dataset = data.frame(USUBJID = "USUBJID", STUDYID = "STUDYID"), 
    keys = c("USUBJID", "STUDYID")
  )),
  join_keys = teal.data::join_keys(
    teal.data::join_key("ADSL", "ADSL", c("USUBJID", "STUDYID"))
  )
)
ds2$get_join_keys()

A suggestion would be to add by default the keys as join_keys for the dataset.
This would make it easier to extract the primary keys of a dataset in data_extrac_srv.

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions