Home > OS >  R writing functions
R writing functions

Time:11-09

I want to write a mathematical formula as functions in R. My formula V(C) = 1/1 (C / H) ^ n where C, H and n are the parameter of the function that I can change. This is my first attempts to write a function in R, so please help.

CodePudding user response:

V <- function( C, H, n ){
  1 / 1   ( C / H )^n 
}
  • Related