You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
sort(x^2-5)[1:2] can be rewritten as:
x %>% raise_to_power(2) %>% subtract(5) %>% extract(1:2,)
Returns: Error in extract(., 1:2, ) : incorrect number of dimensions
Correct solution:
x %>% raise_to_power(2) %>% subtract(5) %>% sort %>% extract(1:2)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sort(x^2-5)[1:2] can be rewritten as:
x %>% raise_to_power(2) %>% subtract(5) %>% extract(1:2,)
Returns: Error in extract(., 1:2, ) : incorrect number of dimensions
Correct solution:
x %>% raise_to_power(2) %>% subtract(5) %>% sort %>% extract(1:2)
The text was updated successfully, but these errors were encountered: