data(who.ref)
x <- data.frame(height=c(50,100,60,54),
sex=c("m","f","f","m"),
age=c(0,2.9,0.6,0.2))
sds.df(who.ref,df=x,item="height",value="height",sex="sex",age="age",male="m",female="f")
Run the code above in your browser using DataLab