What programming language is this below? It looks like js, but I have never seen it in js<-
<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) { sina.url <- '' if (index) { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter) } else { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter) } return(sina.url) }</code>
What programming language is this below? It looks like js, but I have never seen it in js<-
<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) { sina.url <- '' if (index) { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter) } else { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter) } return(sina.url) }</code>
Googled it and found the original text.
R grabbed the historical price of A shares and wrote it into MySQL
Is it R voice?
F# uses <- as the assignment operation, and I don’t know the rest.
Golang has this symbol, but there is no such thing as function