<html theme="midnight"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body
style="font-family: Proxima Nova; font-size: 14px;" text="#000000">
<div style="font-size: 14px;font-family: Proxima Nova;">Dear R-Finance,<br>I
just try to do portfolio analysis by using Rmetrics-fPortfolio. But, on
some timeseries, there is error at below.<br><span style="font-weight:
bold;"><span style="font-style: italic;">Below, it's my R code</span></span><span
style="font-weight: bold;"><span style="font-style: italic;"> (</span></span><span
style="font-weight: bold;"><span style="font-style: italic;">Attached
is the timeseries data)</span></span><span style="font-weight: bold;"><span
style="font-style: italic;"><br>Ret_ts <- as.timeSeries(RollingData)</span></span><span
style="font-weight: bold;"><span style="font-style: italic;"><br></span></span><span
style="font-weight: bold;"><span style="font-style: italic;">
EffFrontier <- portfolioFrontier(Ret_ts, constraints ="LongOnly")</span></span><span
style="font-weight: bold;"><span style="font-style: italic;"><br></span></span><span
style="font-weight: bold;"><span style="font-style: italic;"> </span></span><span
style="font-weight: bold;"><span style="font-style: italic;"><span
style="color: rgb(255, 79, 55);">Error in `colnames<-`(`*tmp*`, value
= names(getMu(Data))) : </span></span></span><span style="font-weight:
bold;"><span style="font-style: italic;"><span style="color: rgb(255,
79, 55);"><br></span></span></span><span style="font-weight: bold;"><span
style="font-style: italic;"><span style="color: rgb(255, 79, 55);">
attempt to set 'colnames' on an object with less than two dimensions</span></span></span><br>From
my observation, it's related with timeseries
data because most of timeseries periods works well.<br>Only some
periods will force be stop and get this error message. Google above
error message. <br>It has been raised in several years ago. Someone
thought it might come from "<strong>setNFrontierPoints".</strong> I
tried this way and it can't work.<br>I adjusted others parameters,
constraints. It still is the same error. Unfortunately, I didn't get
solution by self and don't know how to debug.<br>Now, I raise this
problem again. wish this issue could be here again and someone can
figure out.<br>Thanks for R-community. <div class="moz-signature">-- <br><span
style="font-weight: bold;">Josh Chien</span><br>
Sent from <a
href="https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach"><span
style="color: rgb(0, 157, 247);">Postbox</span></a><br>
</div></div>
</body>
</html>