What programming language is this? It looks like JavaScript, but I have never seen it in js. & amp; lt;-{code...}. what programming language is this? It looks like js, but I have never seen it in js. <-
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)}
Reply content:
What programming language is this? It looks like js, but I have never seen it in js. <-
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)}
Google, and found the original article.
R captures historical A-shares and writes them to MySQL
R voice?
F # Uses <-as the value assignment operation. I don't know the other operations.
Golang has this symbol, but there is no function or something like that.