> getCircleArea <- function(r){

+   area=3.14*r^2

+   return(area) #반환값이 없을 경우 생략 가능

+ }


> getCircleArea(3)

[1] 28.26

+ Recent posts