I want to find out what percentage of patient population that was assaulted, i.e those with ICD9== Y.04.0XXA
are male or female, white or non white. Dataframe is called trauma, it has all icd9
that start with S,T, W, Y.
names(trauma)
Patient.Account.number, ICD.9.code, Patient.Gender, Patient.Race, Patient.Age
summarise(trauma[trauma$ICD.9.Code=="Y04.0XXA",],
count= count(as.factor(Patient.Gender)))
Error in summarise_impl(.data, dots) :
Evaluation error: no applicable method for 'groups' applied to an object of class "factor".
Comments
Post a Comment