search for: pfodx

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

2017 Dec 27
1
Error in dimnames in R
...following message: *"Error in dimnames(x) <- dn : length of 'dimnames' [1] not equal to array extent"*(see below for detail). How could I solve this. Thanks a lot. ##---------------------------- Portfolio construction & Optimisation------------------------ #Assets: LUTAX, PFODX,BRGAX,GFAFX,NMSAX,EGINX,IPOYX,SCWFX,FGLDX,PAGEX #Getting monthly returns of the assets library(quantmod) library(tseries) library(timeSeries) LUTAX <- monthlyReturn((getSymbols("LUTAX",auto.assign=FALSE)[,4]),type = "arithmetic") colnames(LUTAX) <- c("LUTAX") P...