Re: [R] portfolio optimization in R

2014-11-20 Thread Boris Steipe
Indeed. Start here: http://www.r-bloggers.com/three-tips-for-posting-good-questions-to-r-help-and-stack-overflow/ and then read this: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Then put some comments into your code about what you think it should do. Oh

[R] portfolio optimization in R

2014-11-19 Thread Esra Ulasan
Dear Sir/Madam, I am a PhD candidate and writing my dissertation about portfolio optimization in R. However, I have some problems with the codes. It always give the dimension error. Could you help me to fix it? Yours sincerely, Here are the codes: optimization <- function(x) { mean <- colMe