Skip to content

hts_prep_triprate doesn't drop the correct "NA" columns #158

Closed
@ashleyasmus

Description

This line of code should drop columns that are "NA," helping us pivot from wide to long format in this gymnastics exercise trying to fill in missing levels of byvar // day_id :

na_filled_cols = names(triprate_cast)[names(triprate_cast) %like% "_NA"]

This misses columns that are named EXACTLY NA, which can lead to errors. This line should read:
names(triprate_cast) %like% "_NA" | names(triprate_cast) == "NA"

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions