## getClass-
getClass("fPFOLIOCON")
## getSlots -
getSlots("fPFOLIOCON")
## data -
Data = SMALLCAP.RET
print(head(Data))
print(class(Data))
## spec -
Spec = portfolioSpec()
setTargetReturn(Spec) = mean(Data)
## constraints -
Constraints = "LongOnly"
portfolioConstraints(Data, Spec, Constraints)
Run the code above in your browser using DataLab