Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 221 Bytes

File metadata and controls

15 lines (13 loc) · 221 Bytes

Proportion

Preparation Code
# Functions
library(psych)

# Sample Data
library(wooldridge)
HEC <- as.data.frame(HairEyeColor)
Actual Code
length(HEC$Hair[HEC$Hair == "Brown"])/nrow(HEC)