R
(ONLY FOR PROF-HAYAT)
1. The following are patient satisfaction and quality scores for a specific clinic for five months.
satisfaction: {80,70,60,70,80}
quality: {60,70,60,80,70}
Build a dataframe with these two variables. Show the R code you used.
2. Create a subset from the data using the subset command where satsifaction and quality scores are both greater than 70. Show the R code you used.
3. The following code may be used to read a Yahoo Finance CSV file for MSFT stock into R directly. (I just used the hyperlink to the historical price freely available on the web athttp://finance.yahoo.com/q/hp?s=MSFT+Historical+Prices . You could use any stock.
a="http://ichart.finance.yahoo.com/table.csv?s=MSFT&d=11&e=31&f=2012&g=d&a=2&b=13&c=1986&ignore=.csv"
b=read.csv(a)
Generate a subset where all the closing prices are strictly greater than 30. Include the code.
13 years ago
20
Purchase the answer to view it

- r_codes.docx
- r_data_frames.
- r_steps.zip
- Article
- 250 word essay question needed today
- Corporate Labor Relations Policy
- 7-5 solving equations with variables on both sides
- “I like (or do not like) to read the poetry of Sylvia Plath.” Respond to this statement, referring to the poetry...
- Review and discuss what the general rules are for agricultural produce using US GAAP and IFRS.
- An increase in the demand for computers leads to an increase in demand for computer programmers. This situation arises because:...
- why did ptolemy say his model was better than Aristotle's model?
- anyone can help
- How does the amount of pressure you exert on the floor when you are lying down compare with the amount...