-
Notifications
You must be signed in to change notification settings - Fork 94
Export convert_*()
functions
#508
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
Conversation
I think I would prefix these functions with a |
R/convert_data.R
Outdated
#' @importFrom stats .checkMFClasses .getXlevels delete.response | ||
#' @importFrom stats model.offset model.weights na.omit na.pass | ||
.convert_form_to_xy_fit <- function(formula, | ||
data, |
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.
The indentation got slightly off from the .
. Ditto for the other exported functions
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.
good spot! I've fixed it and ran styler of the functions in general
R/convert_data.R
Outdated
.convert_form_to_xy_fit <- function(formula, | ||
data, | ||
..., | ||
na.action = na.omit, |
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.
So we omit for modeling, but pass for prediction? I guess this is probably right. VS passing for both
Co-authored-by: Davis Vaughan <davis@rstudio.com>
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Closes #507
This PR exports
convert_form_to_xy_fit()
andconvert_form_to_xy_new()
so they can be used in parsnip-adjacant packages like censored.Should this also export
convert_xy_to_form_fit()
andconvert_xy_to_form_new()
? The former has a# TODO slots for other roles
comment which makes me think maybe not yet?Should this go into the NEWS file?