harrelfe / Hmisc

Harrell Miscellaneous
Other
205 stars 81 forks source link

Manually repeat length-1 values added to object #132

Closed graywh closed 4 years ago

graywh commented 4 years ago

This prevents an error when adding a variable with a single value and subset leaves 0 rows in the object

graywh commented 4 years ago

This could also be done at the line object[[v]] <- x if you prefer.