Skip to content

Instantly share code, notes, and snippets.

@masaha03
Created June 28, 2011 04:26
Show Gist options
  • Save masaha03/1050491 to your computer and use it in GitHub Desktop.
Save masaha03/1050491 to your computer and use it in GitHub Desktop.
tc <- setRefClass(Class="testClass",
fields = list(f1="numeric", f2="numeric"),
representation=representation(x="character")
)
t1 <- tc$new(f1=4, f2=5, x="a")
t2 <- t1
t2@x <- "b"
t1
t2
(t3 <- t1$copy())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment