The following little program assigns column names to a row vector mu_vec. However, if this processing is carried out within a function, then the command "return(mu_vec);" will get rid of the column names. Is there a way to preserve these column names? assetNames={"MSFT" "NORD" "SBUX"};
mu_vec={0.042 0.0015 0.028};
mattrib mu_vec c=assetNames;
print mu_vec;
... View more