Error message on when charting efficient frontier in r studios

101 Views Asked by At

When I run this line of code, I get the error message:

chart.RiskReward(maxret, risk.col = "StdDev", return.col = "mean",
                 chart.assets = "False")
chart.EfficientFrontier(maxret, match.col="StdDev", n.portfolios=100, type="l", tangent.line=FALSE)

Error in seq.default(from = minret, to = maxret, length.out = n.portfolios) :
  'from' must be a finite number
0

There are 0 best solutions below