Exercise

# Chi-square II

So you've managed to calculate your Chi-square value manually, but actually there was a really easy way to do it in R.
The function `chisq.test()`

takes your observed data as its first argument. For example `chisq.test(*insert data name here*)`

. Let's try it out!

Instructions

**100 XP**

- In your script, calculate the Chi-square value for the dataframe
`data`

(saved in your console) using the function`chisq.test()`

.