logo

Crowdly

The following question is about tidy data. The table below contains looks at c...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The following question is about tidy data. The table below contains looks at crime occurrence in different locations across Victoria:

entry_pointLocationcrime_typecount
FRONT DOOROakleighviolent67
FRONT DOORClaytonviolent53
WINDOWOakleighburglaryNA
WINDOWClaytonburglary6
RoofOakleighOthers17
RoofClaytonOthers22

If you would like to calculate the proportion of the different crime types by location which code do you need to use?

Hint: Missing values is typically denoted by "NA" in the dataset, we can ignore these values by passing the option "na.rm = TRUE" to the appropriate R command.

Incorrect answers will be penalised.

More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!