Difficulty with creating variable

We need a reproducible example (reprex)