Last active
June 5, 2018 07:48
-
-
Save aleDsz/deabef4116c75ca5e46c3e592dd3e9ff to your computer and use it in GitHub Desktop.
Generics em R - Exemplo 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library ("methods") | |
setRefClass( | |
Class = "className", | |
fields = list ( | |
property1 = "numeric", | |
property2 = "character", | |
property3 = "logical", | |
property4 = "Date" | |
) | |
methods = list ( | |
function1 = function (a, b, c) { | |
return (a * b * c) | |
} | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment