Skip to content

exportRecordsTyped() behavior with one record-level var and one instance-level var - record-level var lost #434

@berryld1

Description

@berryld1

I seem to be seeing the following:

dat <- exportRecordsTyped(rcon = rcon, fields = c(record-id, var-rec, var-inst), cast = raw_cast)

Where:
record-id = record id field for project
var-rec = any record-level variable with any non-missing data
var-inst = any instance-level (repeating form) with any non-missing data

Then, dat looks like:

record-id, rri, rri, var-rec, var-inst
value, value, value, NA, value

for all rows of data - in other words, only the instance-level values are returned, and there's no form level data, i.e., something more like:

record-id, rri, rri, var-rec, var-inst
value, NA, NA, value, NA
value, value, value, NA, value

Are you able to reproduce this? I've not noticed encountering this before - but then, it would likely be unusual that I would be asking for only record id, one record-level variable, and one instance-level variable. Also, my brain no longer works right, so there's that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions