R writing program specification

 

library (xxx) # R packages required import 
library (xxx) # R introducing the desired package 

fucntion02 <- function (args) {# This function has a defined function argument 
    # code execution 
} 
function01
<- function (args01, args02 , args03) {#-defined function of the function has three parameters # execute code function02 (args04) # call the function } IF (sys.nframe () == 0 ) {# similar in python IF the __name__ == " __main__ " : args = commandArgs (T) # Get command line parameters args01 = args [ . 1 ] args02 = args [ 2 ] args03Args = [ . 3 ] function01 (args01, args02, args03) function call # }

 

Guess you like

Origin www.cnblogs.com/0820LL/p/11229595.html