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

partial match on x$coeff #367

Open
r2evans opened this issue Nov 19, 2023 · 0 comments
Open

partial match on x$coeff #367

r2evans opened this issue Nov 19, 2023 · 0 comments

Comments

@r2evans
Copy link

r2evans commented Nov 19, 2023

The lm object has a property named coefficients, but the code refers to it as x$coeff. When options(warnPartialMatchDollar=TRUE), this emits a warning. (I found this while working on a PR for logger and running unit-tests that use logger::formatter_pander.)

pander/R/S3.R

Line 344 in 7d5d9dd

res <- as.data.frame(x$coeff)

Options:

  1. use stats::coef(x) (seems the canonical approach), or
  2. switch to x$coefficients
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

1 participant