Example in R

See example “SampleSize” in Tidy Ros