R.net get data from the dataframe of shares in R

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.