Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifnullNA() doesn't return date format for date value #4

Open
anssonliang opened this issue Dec 4, 2020 · 1 comment
Open

ifnullNA() doesn't return date format for date value #4

anssonliang opened this issue Dec 4, 2020 · 1 comment
Assignees

Comments

@anssonliang
Copy link

anssonliang commented Dec 4, 2020

The helper function ifnullNA() doesn't work for date class. It will convert date class into numeric vector.

start_date = Sys.Date()-2
end_date = Sys.Date()-1

args_tbl <- tibble(start=ifnullNA(start_date),
end=ifnullNA(end_date),
sentiments=ifnullNA(sentiments)) %>%
remove_na_cols()
args_tbl
A tibble: 1 x 3
start end sentiments
1 18598 18599 positive+negative+neutral+mixed

args_tbl <- tibble(start=start_date,
end=end_date,
sentiments=ifnullNA(sentiments)) %>%
remove_na_cols()
args_tbl
A tibble: 1 x 3
start end sentiments
1 2020-12-02 2020-12-03 positive+negative+neutral+mixed

@randallhelms randallhelms self-assigned this Dec 7, 2020
@randallhelms
Copy link

hi @anssonliang can you download the newest version and try again? I think I've fixed it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants