# NOT RUN {
if(!( Sys.info()[['sysname']]=="Windows") ){
# if on Windows, cut and paste this example
data(edhec)
# first do normal StdDev calc
StdDev(edhec)
# or the equivalent
StdDev(edhec, portfolio_method="single")
# now with outliers squished
StdDev(edhec, clean="boudt")
# add Component StdDev for the equal weighted portfolio
StdDev(edhec, clean="boudt", portfolio_method="component")
} # end CRAN Windows check
# }
Run the code above in your browser using DataLab