Skip to content
Prev 332898 / 398503 Next

S4; Setter function is not chaning slot value as expected

If you want to set a slot you have to refer to it:

ac at CustomerID <- ?54321? 

or you use your setter:

ac <- CustomerID(ac, ?54321?)

What you did was creating a new symbol CustomerID referring to the String ?54321?
CustomerID <- ?54321?
CustomerID
[1] ?54321?

Best

Simon
On 09 Nov 2013, at 15:31, daniel schnaider <dschnaider at gmail.com> wrote: