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

Preterm Bayesian Modelling Code - 1.cleanAdminP2.R - Warning - excel dates #23

Closed
LOPEZ-Gerard opened this issue Aug 7, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@LOPEZ-Gerard
Copy link
Contributor

It seems like there is a problem in column V which was "Abstraction date for live birth LBW". It contains dates but clearly the R import from excel is not working properly as it is not picking them up as proper dates but rather excel dates which come in as numbers like this "44357".

Not clear if this is a real problem or not going forward.

Here is the warning:

> adminCodes=readxl::read_excel(paste0(adminName), 
+                               sheet = "VN Source database", skip=1)
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: Expecting numeric in V3 / R3C22: got a date
2: Expecting numeric in V4 / R4C22: got a date
3: Expecting numeric in V5 / R5C22: got a date
4: Expecting numeric in V6 / R6C22: got a date
5: Expecting numeric in V7 / R7C22: got a date
6: Expecting numeric in V8 / R8C22: got a date
7: Expecting numeric in V9 / R9C22: got a date
8: Expecting numeric in V10 / R10C22: got a date
9: Expecting numeric in V11 / R11C22: got a date
@ellenBradley18
Copy link
Collaborator

I have suppressed this warning thanks!

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

No branches or pull requests

2 participants