Skip to content

rd_transform error #13

@husain-poonawala

Description

@husain-poonawala

I have a data set with repeating instruments ("antibiotic"; not longitudinal)

I am able to load the data and dictionary

The "dob" field is an identifier that was not exported with the data and so I drop it from the dictionary

staph_data_RedCap$dictionary<- staph_data_RedCap$dictionary |> 
  filter(field_name != "dob")

I am then able to run the rd_transform command

staph_data_transformed <- rd_transform(staph_data_RedCap)

However, when I try to split the data by form, I get this error message.

staph_data_transformed_by_form <- rd_transform(staph_data_RedCap,
                                       final_format = "by_form",
                                       which_form = "antibiotics")
Image

How do I fix this issue? Thanks!

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