Skip to content

error with variable length hierarchical data #182

@macartan

Description

@macartan

this warning seems to appear when the second level N is determined by the first level and there is a potential oucoems cll

> fabricate(
+     A = add_level(N = 2, m = 1:2),
+     B = add_level(N = m,
+                   potential_outcomes(Y ~ Z))
+   )
  A m B Y_Z_0 Y_Z_1
1 1 1 1     0     1
2 2 2 2     0     1
3 2 2 3     0     1
Warning messages:
1: In if (nrow(variable_data) == inner_N) { :
  the condition has length > 1 and only the first element will be used
2: In rep(seq_len(nrow(variable_data)), each = N/inner_N) :
  first element used of 'each' argument

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