Displaying 1 result from an estimated 1 matches for "actualobject".
2010 Dec 22
2
how to pass object "members" in functions
...jects
when passed to a function.
I have a function attempting to just print values attached to an argument
object. For example,
printThis <- function(obj, parm2, parm3) {
print(obj.stuff1)
print(obj.stuff2)
}
where I've assigned stuff1 and stuff2 to the actual object passed as such
actualObject.stuff1 <- c("list","of","something")
actualObject.stuff2 <- c("list","of","something other thing")
printThis(actualObject) # actual call to the function above
But I'm getting the following error when calling the printThis metho...