Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Economics Expert

Managing and Understanding Data (Class Exercise)

R data structures:

1. Generate 3 student name, gender, gpa and grade vectors. You could use names such as "Henry Grant", "Amy Becker", "Bessie Kim"; use gender such as "male","female", "female"; use gpa such as 3.5, 3.7, 3.2; use grades such as "senior", "sophomore", "junior".

2. Access the gender of second student and access the first two students' grades.

3. Change vector gender into a factor vector with levels female and male; also change vector grade into a factor vector with levels freshman, sophomore, junior and senior.

4. Create a data frame using student information you generated above with stringsAsFactors set to False; Display the data frame and see how many rows and how many columns does this data frame have?

5. Access student gpa column; get student name and grade by specifying a vector of names.

6. Access student information in row 1 and column 2. What is it?

7. Access student information in row 2 & column 3 and in row 3 & column 4 together using vectors. What does the output look like?

8. Output student information in column 2 (all rows), then in row 3 (all columns) and then all rows & all columns.

9. Create a 4*2 matrix M using characters from 'a' to 'h'; Create a 3*3 matrix N usingcharacter from 'a' to 'i'.

10. Extract values from matrix. What character in M do you have in row 2 and column 1? What character in N do you have in row 3 and column 2?

11. Extract the second row (all columns) of matrix M; extract the third column (all rows) of matrix N.

Business Economics, Economics

  • Category:- Business Economics
  • Reference No.:- M92435339
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Economics

Find the probability that when a couple has six children at

Find the probability that when a couple has six ?children, at least one of them is a girl (Assume that boys and girls are equally? likely.)

American heart association is about to conduct an

American Heart Association is about to conduct an anti-smoking campaign and wants to know the fraction of Americans over 33 who smoke. Step 1 of 2: Suppose a sample of 1179 Americans over 33 is drawn. Of these people, 27 ...

Use the following table to find thenbspsteady-state values

Use the following table to find the? steady-state values of the? capital-labor ratio and output if the? per-worker production function is y t  = 2k t 0.3 . Saving rate (s) = 0.37 Depreciation rate = 0.04 population growt ...

Image manufacturing is an electronics manufacturer and

IMAGE Manufacturing is an electronics manufacturer and retailer. Its main products are Ultrabook computers, PCs and calculators. The current price of the Ultrabook is $ 600, the PC is $700 and the calculator is $30. This ...

Answer in true or false1 compensation of employees is the

Answer in true or False: 1) Compensation of employees is the largest component of national income. 2) National income is the income that individuals and firms earn from their production.

Is implementing tqm can be difficult amp expensive1 what do

Is Implementing TQM can be difficult & expensive. 1) What do you think are the  top 3 or 4  causes of implementation failure? 2) Why are these issues are such a problem.

Should we be renegotiating nafta yes or no if it is

Should we be renegotiating NAFTA? yes or no? If it is renegotiated, should it be replaced? What reasons would make it better in your point of view? What is the best argument you can make why NAFTA should or should not be ...

A team of researcher randomly separates their studys

A team of researcher randomly separates their Study's participants into two groups, giving one group a placebo and the other a new treatment to be tested. As the treatment i not experimental, both participants and resear ...

Determine the margin of error for an 80 confidence interval

Determine the margin of error for an 80?% confidence interval to estimate the population mean when s? = 36 for the sample sizes below. ?a)n=12 ?b)n=26 ?c)n=54 ?a) The margin of error for an 80?% confidence interval when ...

From a consequentialist perspective that has as its

From a consequentialist perspective that has as its objective improving the standard of living of unskilled workers, is the introduction of a minimum wage ethically justified?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As