logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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.

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.monash.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!