Closed juserrano closed 4 years ago
You can combine lines 87-97 by having p1
p2
and p3
all created in the same mutate call and mse_1
mse_2
and mse_3
all created in the same summarise like this:
Auto_2 %>%
filter(k ==k) %>%
mutate(
p1 = ---,
p2 = ---,
p3 = ---
) %>%
summarise(
mse_1 = ---,
mse_2 = ---,
mse_3 = ---,
n_k = n()
)
Thank you! That worked out!
@LucyMcGowan I am having a similar issue, but that object (k) is not found. I took the advice you gave above and implemented it in my coding. Here is the full rundown:
I am having issues outputting the data frame for exercise 6. I have tried some variations of the code, and even the basic data frame code we used in previous labs but I always get this error: Error in summarise(mse_1, mse_2, mse_3, n_k = n()) : object 'mse_1' not found
Does anyone know what the proper code is?