Skip to content

Code Help

2 messages · finguy, Joshua Wiley

#
Am I missing a Package? I'm not sure why is won't read the functions. Any
help is much appreciated.
Error: could not find function "portfolioSpec"
Error in setTargetReturn(Spec) = mean(colMeans(PData)) : 
  object 'Spec' not found
Error: could not find function "efficientPortfolio"
Error: could not find function "portfolioFrontier"
Error: could not find function "frontierPlot"
Error: could not find function "minvariancePoints"
Error: could not find function "minvariancePortfolio"
Error: could not find function "tangencyPoints"
Error: could not find function "tangencyLines"
Error: could not find function "tangencyPortfolio"
Error: could not find function "equalWeightsPoints"
Error: could not find function "singleAssetPoints"


--
View this message in context: http://r.789695.n4.nabble.com/Code-Help-tp3658106p3658106.html
Sent from the R help mailing list archive at Nabble.com.
#
On Sun, Jul 10, 2011 at 12:32 PM, finguy <bball3brian at hotmail.com> wrote:
That is the implication, yes.  To find out which one (though one
wonders how you got this code without knowing the packages it runs
on), you can use the findFn() function from the sos package.  If you
do not have the sos package already:

install.packages("sos")
require(sos) # load it
findFn("portfolioSpec")

suggests that the package you are looking for (at least initially) is
"fPortfolio".  You can repeat the above search process as needed if
that does not solve the rest of your missing function problems.

Cheers,

Josh