Re: [R] Creating S4 class with a slot as an array

2015-10-20 Thread Morgan, Martin
> -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Glenn > Schultz > Sent: Tuesday, October 20, 2015 10:36 AM > To: R Help R > Subject: [R] Creating S4 class with a slot as an array > > Hello All, > > I am trying to

[R] Creating S4 class with a slot as an array

2015-10-20 Thread Glenn Schultz
Hello All, I am trying to create an S4 class with a slot that is an array.  Below is the code I tried but I have missed something.  Any suggestions are appreciated. setClass("CashFlow", representation( CashFlowArray = "array")) setMethod("initialize", signature = "CashFlow", function(.Object,