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 in a solution to the exercise #3

Open
mdebasrija opened this issue Aug 13, 2023 · 0 comments
Open

Error in a solution to the exercise #3

mdebasrija opened this issue Aug 13, 2023 · 0 comments

Comments

@mdebasrija
Copy link

mdebasrija commented Aug 13, 2023

In the Chapter 2 solutions I noticed a small error in solution 14.

Make a logical vector with TRUE, FALSE values of length 4, use c(). Ex: c(TRUE,FALSE). [Difficulty: Beginner]

c(TRUE,FALSE,FALSE,TRUE,FALSE)
c(TRUE,TRUE,FALSE,TRUE,FALSE)

Since the length of the vector should be 4, the solution vector should contain one less element. For example, one solution could be -

c(TRUE, TRUE, FALSE, FALSE)

Thanks!

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