什麼是定義一個名爲myfunction的功能R函數名稱周圍加引號的原因是什麼?
"myfunction" <- function(<arguments>){<body>}
和
myfunction <- function(<arguments>){<body>}
此外之間的區別:你如何看待它通常放在身邊有這樣一個功能的意見,即
#myfunction{{{
"myfunction" <- function(<arguments>){<body>}
#}}}
他們只是爲了文檔,或者他們真的有必要(如果是的話)?
編輯:我一直在問哪裏像
#myfunction{{{
註釋使用的例子:比如這裏https://github.com/cran/quantmod/blob/master/R/getSymbols.R
伴隨@ BrodieG的答案的線,這是一個常見的例子是[綴功能(HTTP://adv-r.had。 co.nz/Functions.html#special-calls),例如'「%>%」< - function(x,y){...}'。 – nrussell 2015-04-02 14:39:38
你在哪裏可以找到用'#myfun {{{'business? – BrodieG 2015-04-02 14:54:17
爲#myfun添加了一個示例{{評論 – 2015-04-02 15:06:58