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

Equal data frames #2

Open
amirabarizah opened this issue Sep 20, 2023 · 3 comments
Open

Equal data frames #2

amirabarizah opened this issue Sep 20, 2023 · 3 comments

Comments

@amirabarizah
Copy link
Contributor

amirabarizah commented Sep 20, 2023

@haziqj Sorry for bothering you in the evening, Dr

Error (test-3) Data wrangling tasks.R:11:5): max_val_int
2363
Error in Ops.data.frame(max_val_int, top10longest): '*' only defined for equally-sized data frames

This is from the error details from the autograde for Question 2 of Task 2. Does this mean it wants equal data frames for both (i.e. 10 starting integers)?

@haziqj
Copy link
Member

haziqj commented Sep 21, 2023

Sorry I just saw this. Try converting your top10longest to a vector. @amirabarizah

@ninazuhairi
Copy link
Contributor

Good am Dr @haziqj ,

This error is still ongoing for task 2:

Error (test-3) Data wrangling tasks.R:18:5): even_odd_avg_len
Error in FUN(left, right): non-numeric argument to binary operator
Backtrace:

  1. testthat::expect_equal(...)
    at test-3) Data wrangling tasks.R:18:4
  2. base::Ops.data.frame(even_odd_avg_len[2], even_odd_avg_len[1])

I've checked and the data is actually in numeric form. May I know what does the error mean?

@haziqj
Copy link
Member

haziqj commented Sep 24, 2023

Ensure the object even_odd_avg_len is a vector of length 2. The first entry is for the even, and second for odd.

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

3 participants