No one has studied these before me. So, you have to shout your brother.
Engine. Initialize();Engine. Evaluate("library (quantmod)");Engine. Evaluate("Getsymbols (' AAPL ', src= ' Yahoo ', from= ' 2004-1-1 ', to= ' 2014-1-1 ')");Engine. Evaluate("Data<-data.frame (Head (AAPL))");DataFrame data = Engine. Getsymbol("Data"). Asdataframe();TextBox3. Text= string. Join(", ", the data. Length);
This is the value generated by the R function in C # and converted to a value that C # can use directly.
Analysis
This code, first you want to go to Yahoo crawl AAPL this stock. And got a variable called appl in R, what is not yet known.
Then we have to deal with the next AAPL and get the first six data. and is converted to dataframe format and named data.
We then get the dataframe of data in R in C #. and get the length of it. Put it in a textbox to display.
R.net get data from Dataframe in stock in R