R 中的 S3 与 R6 面向对象编程
Richie Cotton
Data Evangelist at DataCamp





<- function( ) {
}

calculate_something <- function( ) {
# do something
}

calculate_something <- function(x, y, z) {
# do something
}

calculate_something <- function(x, y, z) {
# do something
return(the_result)
}












R 中的 S3 与 R6 面向对象编程