tests/testthat/_snaps/tidyr-compat.md

tidyr::pivot_longer works with propensity classes

Code
  expr
Condition <propensity_coercion_warning>
  Warning in `vec_ptype2.psw.psw()`:
  Converting psw to numeric: incompatible estimands 'ate' and 'att'
  i Metadata cannot be preserved when combining incompatible objects
  i Use identical objects or explicitly cast to numeric to avoid this warning

tidyr::pivot_longer works with mixed propensity classes

Code
  expr
Condition <propensity_class_downgrade_warning>
  Warning in `vec_ptype2.psw.ps_trim()`:
  Converting psw and ps_trim to numeric
  i Class-specific attributes and metadata have been dropped
  i Use explicit casting to numeric to avoid this warning
  Warning in `vec_ptype2.double.ps_trunc()`:
  Converting ps_trunc to numeric
  i Class-specific attributes and metadata have been dropped
  i Use explicit casting to numeric to avoid this warning
Code
  expr

c() works as expected with warnings

Code
  expr
Condition <propensity_coercion_warning>
  Warning in `vec_ptype2.psw.psw()`:
  Converting psw to numeric: incompatible estimands 'ate' and 'att'
  i Metadata cannot be preserved when combining incompatible objects
  i Use identical objects or explicitly cast to numeric to avoid this warning
Code
  expr
Condition <propensity_class_downgrade_warning>
  Warning in `vec_ptype2.psw.double()`:
  Converting psw to numeric
  i Class-specific attributes and metadata have been dropped
  i Use explicit casting to numeric to avoid this warning

rbind and data frame operations work

Code
  expr
Condition <propensity_coercion_warning>
  Warning in `vec_ptype2.psw.psw()`:
  Converting psw to numeric: incompatible estimands 'ate' and 'att'
  i Metadata cannot be preserved when combining incompatible objects
  i Use identical objects or explicitly cast to numeric to avoid this warning

tidyr works with stabilized weights

Code
  expr
Condition <propensity_coercion_warning>
  Warning in `vec_ptype2.psw.psw()`:
  Converting psw to numeric: different stabilization status
  i Metadata cannot be preserved when combining incompatible objects
  i Use identical objects or explicitly cast to numeric to avoid this warning


Try the propensity package in your browser

Any scripts or data that you put into this service are public.

propensity documentation built on March 3, 2026, 1:06 a.m.