# mean of variable V3
xpssMeans(x=fromXPSS,variables="V3")
# mean of variable V3 and V4
xpssMeans(x=fromXPSS,variables=c("V3","V4"))
# mean of variable V3 and V6 by V4
xpssMeans(x=fromXPSS,variables=c("V3","V6"),by="V4")
# Filtering by V4 and calculate Mean of Variable V6 by V3 and V6_kl3
fromXPSS <- xpssFilter(x=fromXPSS,variable="V4",filtervalue=1)
xpssMeans(x=fromXPSS,variables="V6",by=c("V3","V6_kl3"))
fromXPSS <- xpssFilterOff(fromXPSS)
Run the code above in your browser using DataLab