Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following file was read into R: MOAGUN.xls darr moag - readxl: :read _ xls ( file . choose ( ) ) This data frame

The following file was read into R: MOAGUN.xls darr
moag - readxl: :read_xls(file.choose())
This data frame is not tidy so we will need to pivot it to a longer format, and then summarize by group. Fill in the missing code and for HorizS4 submit
the mean to 2 decimal placesdf - moag $ >%
pivot_longer(
+, cols = starts_with("Horiz"),
+, names_to = "Horiz",
+, values_to ="y'')
>head(df,2)
# A tibble: 22
Horiz y
chr>dbl>
1 Horizs22.28
2 Horizs49.10
> df %>%
group_by (###)%>%
summarize(
+n=n(),
+, mean =mean(y),
+,sd=sd(y)
# A tibble: 34
Horiz n mean sd
1 Horizs11100,4.98,0.976
2 HorizS21100,4.98,2.05
3 HorizS41100 ### 3.82
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions