1.符号和命名
2.语法
=
, +
, -
, <-
, etc.)左右都要有空格。逗号前不要空格,后面跟一个空格。3.组织
我的R代码模板:
# Script Name:
# Author:
###### ############## Description# This script works for....
# Input:
# Processing:
# Output:
###### ############# Update history
# YYYY-MM-DD, created by .....
# YYYY-MM-DD, modified by .....
###### ################# Start
rm(list=ls())
# Functions -----------------------------------------------
#
# Settings -------------------------------------------------
wd <- ; #
# Running --------------------------------------------------s
etwd(wd) #
# winDialog('ok', 'Mission accomplished! Byebye!')
###### ############### The End