You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have come across a number of cases where I'd like to remove rows (column) that are empty for some selected columns (rows), but not all. The most straightforward example is that of a data table that has non-empty keys in all rows, but some rows have no information in the other columns. Like this:
key
var1
var2
var3
1
10
"foo"
TRUE
2
NA
NA
NA
3
32
"bar"
TRUE
Although the second row is not completely empty, it would be useful to be able to remove it quickly and neatly.
The text was updated successfully, but these errors were encountered:
Would the ideal implementation of this be a tidyselect ... for the remove_empty function, so that you could say remove_empty(dat,,,,-key) ? That seems like a worthwhile addition to me, with little downside.
I have come across a number of cases where I'd like to remove rows (column) that are empty for some selected columns (rows), but not all. The most straightforward example is that of a data table that has non-empty keys in all rows, but some rows have no information in the other columns. Like this:
Although the second row is not completely empty, it would be useful to be able to remove it quickly and neatly.
The text was updated successfully, but these errors were encountered: