Open tpemartin opened 2 years ago
@AmyChen20021003, @stone05261234 Please check:
@AmyChen20021003
The following is wrong.
#3
pick3<-johnDoe[["data"]][["死亡方式描述"]]==c("不詳","他殺")
country<-johnDoe[["data"]][["發現縣市"]][pick3]
table(country)
@stone05261234
Errors:
https://github.com/stone05261234/110-1-r4ds-main/blob/08e97cd622073eb1bdceae9f5fe308d48cda2f72/4.13%20try%20to%20do#L11 https://github.com/stone05261234/110-1-r4ds-main/blob/08e97cd622073eb1bdceae9f5fe308d48cda2f72/4.13%20try%20to%20do#L20
Exercise 4.13 Regarding johnDoe in exercise 1 of Exercise section,
For those whose reported unit (通報機構) is not NA, what are their records? (in other words, construct a reported-unit-not-NA subsample)
For those dead bodies reported (通報機構) by “海巡隊” (use =="海巡隊" here. Ignore other similar unit names), what are their death types (死亡方式描述)? How many bodies in each type?
For those whose death type (死亡方式描述) is 不詳 or 他殺, what are their discovered counties (發現縣市)? How many such bodies in each counties?