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

Cannot get chr to convert to num #19

Open
CarolineBay opened this issue Jul 31, 2023 · 0 comments
Open

Cannot get chr to convert to num #19

CarolineBay opened this issue Jul 31, 2023 · 0 comments

Comments

@CarolineBay
Copy link

CarolineBay commented Jul 31, 2023

I am new to using R and github so I apologize if this is incorrect formatting and/or bad github etiquette. I really want to learn how to use this package because it seems so helpful!

I am trying to convert a column (bmi) of my dataframe (nonbradypts) from chr to num

library("tidyverse") 
library("hablar")
nonbradypts %>%
  convert(num(bmi))

I get the error:
Screenshot 2023-07-31 at 1 49 07 PM

However, per my knowledge, bmi already does exist!
Screenshot 2023-07-31 at 1 58 26 PM

Doing nonbradypts$bmi = as.numeric(nonbradypts$bmi) is successful, however.

Thank you in advance, I'm sure I'm doing some beginner mistake...!

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