Problem 2. You will need to use the CSV file house.csv for this problem, which can...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2. You will need to use the CSV file "house.csv" for this problem, which can be found on Canvas. 1. First download this data set to your computer, then use read.csv to import it into R. Make sure assign it to something for further usage. The first row should be imported as variable names. 2. Report the number of rows and the number of columns of the data set. What are the names of variables, i.e., column names? 3. Report the means of the last 8 columns. That means for each column of the last 8 columns, you find its mean (Hint: Indering the submatrix first then use function colMeans.) 1 4. Report the standard deviation of first 10 rows. (use function sd compute standard deviations.) 5. What is the class of the variable 'chas' (use function class)? Use function as.factor to change 'chas' to the class factor. Problem 2. You will need to use the CSV file "house.csv" for this problem, which can be found on Canvas. 1. First download this data set to your computer, then use read.csv to import it into R. Make sure assign it to something for further usage. The first row should be imported as variable names. 2. Report the number of rows and the number of columns of the data set. What are the names of variables, i.e., column names? 3. Report the means of the last 8 columns. That means for each column of the last 8 columns, you find its mean (Hint: Indering the submatrix first then use function colMeans.) 1 4. Report the standard deviation of first 10 rows. (use function sd compute standard deviations.) 5. What is the class of the variable 'chas' (use function class)? Use function as.factor to change 'chas' to the class factor.
Expert Answer:
Answer rating: 100% (QA)
Answer 1 To import the CSV file housecsv into R I used the readcsv function I assigned ... View the full answer
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-0078025914
5th edition
Authors: Fred Phillips, Robert Libby, Patricia Libby
Posted Date:
Students also viewed these mathematics questions
-
You believe you will need to have saved $500,000 by the time you retire in 40 years in order to live comfortably. You also believe that you will inherit $100,000 in 10 years. If the interest rate is...
-
You will need to research various brainstorming techniques. Although brainstorming is typically performed in group sessions, you will be applying the same techniques to analyze your problem. Select a...
-
Use Books-A-Millions financial statements, which can be found in Appendix A at the back of the book, to answer the following questions: 1. What types of debt does Books-A-Million have? Where did you...
-
Refer to the information in Exercise 16-11. Using the direct method, prepare the statement of cash flows for the year ended June 30, 2017. IKIBAN INC. Comparatlve Balance Sheets June 30, 2017 and...
-
What is the Small Business Administration (SBA), when was it organized, and what was its purpose?
-
2. Imagine that a layout plan has been created for a business with 5 departments of equal size to each other. The relations between the departments are given in the table below.Dec. The relationship...
-
Suppose Sunshine Florists, Inc., has cash of \($40,000,\) receivables of \($30,000,\) and furniture and fixtures totaling \($170,000.\) Sunshine Florists, Inc., owes \($60,000\) on account and has a...
-
Suppose that the attorney the Metzgars hired agreed to represent them on a contingency-fee basis. What does that mean? Ronald Metzgar placed his fifteen-month-old son, Matthew, awake and healthy, in...
-
In recent years, Cullumber Company has purchased three machines. Because of frequent employee turnover in the accounting department, a different accountant was in charge of selecting the depreciation...
-
Refer to Fig. 9.15, which shows three pipes inside a larger pipe. The inside pipes carry water at 200°F and the large pipe carries water at 60F. The average velocity of flow is 25.0 ft/s in each...
-
On September 5, Maria Smith, owner of Super Gym Personal Service, provided personal training services to customers for cash of $3,500. Services of $9,000 were billed to corporate clients, terms 2/10,...
-
Why are Incoterms 2020 and Terms of Payment considered an important factor in executing global trade contracts? and also provide five various examples and risk related risk factors,
-
Make a note of the absorption costing net operating income (loss) in Year 2. At the end of Year 1, the company's board of directors set a target for Year 2 of net operating income of $70,000 under...
-
Why is understanding personality important to organizational behavior?
-
Consider the two formal languages L = (a, a, ba) and L = {a, ab). Show the languages that result from the following operations. a) Union: L L= b) Concatenation: LL = c) Intersection: L L= d) What is...
-
Light of wavelength 5 8 0 nm is incident on a slit of width 0 . 3 0 0 nm. An observing screen is placed 2 . 0 0 m from the slit. Find the distance between the 1 st and 2 nd dark fringe.
-
if john owns a home in denver where he has a seasonal job, january thru june and earned 20000. and then july thru december he lived in sioux fass working another seasonal job earning 40000 where he...
-
Cleaning Service Company's Trial Balance on December 31, 2020 is as follows: Account name Debit Credit Cash 700 Supplies Pre-paid insurance Pre-paid office rent Equipment Accumulated depreciation -...
-
PC Mall, Inc., is a direct marketer of computer hardware, software, peripherals, and electronics. In a recent annual report, the company reported that its revenue is recognized upon receipt of the...
-
Face 2 Face Corporation reports 100 outstanding shares, 500 authorized shares, and 50 shares of treasury stock. How many shares are issued?
-
Refer to E11-12. Prepare the journal entry to record (a) the small 12 percent stock dividend and, alternatively, (b) the large 100 percent stock dividend mentioned in requirement 2 of E11-12. Refer...
-
An ideal inverting op-amp circuit is to be designed with a closed-loop voltage gain of \(A_{v}=-1000\). The largest resistor value to be used is \(500 \mathrm{k} \Omega\). (a) If the simple...
-
For the op-amp circuit shown in Figure P9.25, determine the gain \(A_{v}=v_{O} / v_{I}\). Compare this result to the gain of the circuit shown in Figure 9.12, assuming all resistor values are equal....
-
The inverting op-amp circuit in Figure 9.9 has parameters \(R_{1}=20 \mathrm{k} \Omega\), \(R_{2}=200 \mathrm{k} \Omega\), and \(A_{o d}=5 \times 10^{4}\). The output voltage is \(v_{O}=-4.80...
Study smarter with the SolutionInn App