the-Hull / datacleanr

Interactive and Reproducible Data Cleaning
https://the-hull.github.io/datacleanr
GNU General Public License v3.0
19 stars 5 forks source link

.annotation as column name #7

Closed PappasChristoforos closed 3 years ago

PappasChristoforos commented 4 years ago

In case in the data.frame imported to datacleanr there is already a column called '.annotation' (for example when using the application in a 'sequential mode' and doing 'back-and-forth' in data processing), then the selected data points/outliers, will be identified in a column called '.annotation.y' and the original '.annotation' column will be renamed to '.annotation.x'. Thus, the following line in the proposed code for excluding data points obtained from the 'Extract' tab:

# DR_df_lg  <- DR_df_lg %>% dplyr::filter(is.na(.annotation))

has to be modified to

# DR_df_lg  <- DR_df_lg %>% dplyr::filter(is.na(.annotation.y))
the-Hull commented 3 years ago

Added a check for this, with a prompt to adjust the column name when launching dcr_app(). See https://github.com/the-Hull/datacleanr/commit/1e3f6e622658f7867424dfdf939ba0dae510b8db for details.