-
Notifications
You must be signed in to change notification settings - Fork 0
Open interval #1
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- R/life-tables.R: Language not supported
|
||
d <- Mx |> | ||
Deaths <- read_table( | ||
"https://www.prdh.umontreal.ca/BDLC/data/ont/Deaths_5x1.txt", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How sustainable is this and all other links to prhd.umontreal.ca ? Could it happen that the data will be gone in, say, 5 years? Or if the university decides to change the link structure? So perhaps we would like to keep the data in the repository?
library(kableExtra) | ||
lt_2015 |> | ||
select(Age = age, x, n, Mx, ax, qx, px, lx, dx, Lx, Tx, ex) |> | ||
kable(format = "latex", booktabs = T, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only this specific table is with format='latex
? All other tables in this R script are printed with default output.
Also, perhaps, since we are saving figures to plots
folder, we should also save tables as PDF or HTML files that can be (1) recreated and (2) viewed when we run the repo in Binder and run this script.
This PR does the following for the period life table example:
kable()
function call to create Table 2