search for: stockspotf

Displaying 1 result from an estimated 1 matches for "stockspotf".

2016 Apr 22
0
non-numeric argument to binary operator problem in stock analysis
...e non-numeric argument to binary operator problem in stoc thank you guys first. library(quantmod)library(quadprog)library(stockPortfolio)library(fPortfolio)library(tseries)source("efficientFrontierFunction.r") myenv <- new.env()##Calculate the mean and sd of the monthly returns of each stocksPotf <- c('IBM', 'KO', 'C', 'TSLA', 'F')getSymbols(Potf, from="2011-01-01", env=myenv)ts<-do.call(merge,eapply(myenv, Ad)) #we allocate equal weights to every stocksstocks <- c('IBM'=.20, 'KO'=.20, 'C'=.20, 'TSLA'...