Question: In this lab we will be working with data from 2 0 1 6 - 2 3 of the Portland Thorns, a highlysuccessful National Women

In this lab we will be working with data from 2016-23 of the Portland Thorns, a highlysuccessful National Womens Soccer League (NWSL) team located in Portland, OR. Our goalsincludevisualizing categorical datainvestigating associations between categorical datainvestigating associations with numerical dataWe will also see some new ways of working with data with R.1 Packages and DataTheres nothing in this section that you actually need to do just read through tomake sure you understand whats happening.Thetidyversepackage includes many of the R commands we need to work with data.library(tidyverse)The data for this lab was sourced from thenwslRpackage on Github. The code below readsthis data from a csv file and then assigns the namethornsto the dataset.thorns<-read_csv("thorns.csv")Thethornsdataset has 197 rows and 9 variables. The observations are all the Thorns gamesup through the 2013 season. The variables are as follows:1
Variable Descriptongame_idAn unique ID for the gamegame_dateGame datehome_teamName of the home team, abbreviatedaway_teamName of the away team, abbreviatedopponentThe team Thorns played againsthome_ptsNumber of points by the home teamaway_ptsNumber of points by the away teamresultResult of the game for Thorns (win, loss, tie)yearSeason (2017-2023)2 ThornsresultsIn this section we start looking at the categorical variableresultwhich records the result(win, loss, or tie) for each game.Task 1Create a bar plot for the variableresult.Additionally, calculate the numbers of wins, losses, and ties. Hint: in previous activities, wehave used thecount()function to do this kind of calculation.# add code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!