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

Error messages in "Explorando data frames" #122

Closed
Zulemma opened this issue Aug 26, 2021 · 1 comment
Closed

Error messages in "Explorando data frames" #122

Zulemma opened this issue Aug 26, 2021 · 1 comment

Comments

@Zulemma
Copy link

Zulemma commented Aug 26, 2021

In "Explorando Data Frames" episode when we run

gatos <- rbind(gatos, nueva_fila)

there is no an error message about "invalid factor level". May add a little a chunk of code and show the error message obtained to become clear.

errormessage

@nselem
Copy link
Contributor

nselem commented Feb 25, 2023

Dear Zulema
Thank you for pointing this out; the problem is that the color column was not a factor. I have added a chunk to convert it into a factor column, and now the error should be visible. Since these episodes are in r-markdown the output chunks are automatically generated. But now the following error should be shown:
Warning message:
In [<-.factor(*tmp*, ri, value = "carey") :
invalid factor level, NA generated

@nselem nselem closed this as completed Feb 25, 2023
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

2 participants