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

add drop=TRUE to clamping to allow tibble pass-through #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

btupper
Copy link
Contributor

@btupper btupper commented May 30, 2023

Hi,

A tiny modification proposal... this pull request makes it possible to provide the newdata argument to predict() as a tibble in addition to as a data.frame or matrix. Single square bracket indexing (ala x[,column_name]) into a tibble always returns another tibble unless drop = TRUE is included in the argument list.

https://github.com/BigelowLab/maxnet/blob/afa40f410f0fc65bb62e6f4b1c0cc4232ef79269/R/predict.maxnet.R#L45

Best wishes,
Ben

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

Successfully merging this pull request may close these issues.

1 participant