bash-4.3$ R R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [1] "Hello world!" Welcome to Slade's R! > source("indexExercise.R") > m SP500 RUSS2000 LEHAGGR MSCIWO HFRI NAREIT USTBILLS 1 -0.69 -0.06 0.28 -1.26 0.61 -4.42 0.31 2 -4.18 -7.18 1.80 -4.00 -2.05 -8.62 0.32 3 1.59 2.87 0.90 3.09 2.87 0.82 0.36 4 3.74 1.72 0.76 4.78 2.70 4.24 0.38 5 1.50 2.27 1.23 -0.01 -1.53 5.50 0.41 6 -3.10 -6.84 0.83 -2.20 0.08 -8.79 0.40 7 -1.66 -1.46 -0.30 -0.72 0.73 -9.04 0.40 8 3.49 4.10 -0.76 2.91 1.99 0.10 0.42 9 4.43 1.80 0.54 4.48 1.78 0.11 0.41 10 1.12 1.07 0.00 1.87 0.96 -2.50 0.43 11 -1.95 -0.79 1.54 -0.47 0.68 -2.92 0.38 12 1.51 1.67 -0.04 1.20 1.10 7.83 0.42 > cm SP500 RUSS2000 LEHAGGR MSCIWO HFRI NAREIT 0.48333333 -0.06916667 0.56500000 0.80583333 0.82666667 -1.47416667 USTBILLS 0.38666667 > csd SP500 RUSS2000 LEHAGGR MSCIWO HFRI NAREIT USTBILLS 2.78663151 3.58496725 0.76333598 2.71772786 1.49251669 5.65489242 0.03892495 > cm SP500 RUSS2000 LEHAGGR MSCIWO HFRI NAREIT 0.48333333 -0.06916667 0.56500000 0.80583333 0.82666667 -1.47416667 USTBILLS 0.38666667 > both csd cm SP500 2.78663151 0.48333333 RUSS2000 3.58496725 -0.06916667 LEHAGGR 0.76333598 0.56500000 MSCIWO 2.71772786 0.80583333 HFRI 1.49251669 0.82666667 NAREIT 5.65489242 -1.47416667 USTBILLS 0.03892495 0.38666667 > plot(both) > Save workspace image? [y/n/c]: y bash-4.3$ exit Process shell finished