Question

In: Computer Science

NOTE THAT ((This should be done by R studio !)) Q: Upload your data as a...

NOTE THAT

((This should be done by R studio !))

Q: Upload your data as a CSV in R studio, then do any
cleaning or convert needed for example convert the date in your table
from character to date and NA identifiers
. After do all these, run a summary statistics

Year

REX

OilP

Food exports (% of merchandise exports)

Ores and metals exports (% of merchandise exports)

1980

239.5433424

35.52

0.09638294

0.060083757

1981

240.3102173

34

0.094079554

0.024360528

1982

245.3895131

32.38

0.128489839

0.025668368

1983

242.8677506

29.04

..

..

1984

238.0284197

28.2

..

..

1985

221.878717

27.01

0.259787311

0.116943755

1986

169.6457184

13.53

..

..

1987

144.1934823

17.73

..

..

1988

134.5212315

14.24

1.371078529

0.732151804

1989

136.0536024

17.31

1.374888969

0.834330299

1990

125.5311345

22.26

0.713126234

0.491007478

1991

125.8812467

18.62

0.526384845

0.242750346

1992

118.7733668

18.44

1.074388363

0.548851562

1993

122.2521688

16.33

0.982275388

0.429968062

1994

117.8952881

15.53

0.673955645

0.346686956

1995

114.1213899

16.86

0.810242733

0.567217625

1996

116.3114665

20.29

0.632336949

0.304958406

1997

121.4661302

18.86

..

..

1998

127.1948915

12.28

1.114818605

0.507089276

1999

121.9490893

17.44

0.930990348

0.262574488

2000

123.200674

27.6

0.538501429

0.147164016

2001

125.2424379

23.12

0.558465111

0.201693533

2002

121.5455166

24.36

0.628539417

0.223275991

2003

111.1523893

28.1

0.835851768

0.182707717

2004

103.4682918

36.05

0.7405123

0.172800798

2005

100.5070052

50.59

0.620831971

0.137293785

2006

98.93290899

61

0.64203501

0.219532433

2007

95.96813741

69.04

0.838923226

0.283587719

2008

93.62494305

94.1

0.744029125

0.221986187

2009

100.1652448

60.86

1.407633083

0.232499732

2010

100

77.38

1.155876888

0.154654215

2011

96.57013945

107.46

0.898301922

0.122271232

2012

99.61967144

109.45

0.860627792

0.138455596

2013

102.3680362

105.87

0.878931429

0.403127249

2014

105.3894897

96.29

1.006265279

0.769034983

2015

118.5851177

49.49

1.798068624

1.307540253

R ONLY !!

Solutions

Expert Solution

Below is the R script:-

data=read.delim("clipboard")#import data from excel to R
attach(data)
data#display data frame
mydata=na.omit(data)#omit NA data
mydata
is.na(mydata)#checks if NA data present

summary(mydata)#gives summary of data

Thank you.


Related Solutions

I have an assignment that must be done on R/R studio R/RStudio - Chapter 4- Correlation...
I have an assignment that must be done on R/R studio R/RStudio - Chapter 4- Correlation and Regression Step 1 – Download and Install the R/RStudio software on your computer. The link and instructions to do that are on Blackboard under Course Information. Step 2 – Access the Data Sets in MyLab through StatCrunch. In chapter 4, a data set called “Used BMW prices 2017” is what we’ll use. Step 3 – When you open the data set in StatCrunch,...
TO BE DONE IN C LANGUAGE BEFORE READING THE QUESTION PLEASE NOTE THAT YOUR FUNCTION SHOULD...
TO BE DONE IN C LANGUAGE BEFORE READING THE QUESTION PLEASE NOTE THAT YOUR FUNCTION SHOULD EXACTLY PRODUCE THE GIVEN OUTPUT AND THE TIME COMPLEXITY SHOULD BE O(N^2) YOU NEED TO KNOW ABOUT COCKTAIL SHAKER SORT ALGORITHM: Cocktail-shaker sort is a modification of Bubble sort. Cocktail-shaker sort traverses the data structure in one direction, pushing the largest element ahead towards one end of the data structure, and then in the opposite direction, pushing the smallest element towards the other end,...
How is this done in R-studio? I have been trying to figure it out but I...
How is this done in R-studio? I have been trying to figure it out but I am getting more and more confused. While imprisoned by the Germans during World War II, the English mathematician John Kerrich tossed a coin 10,000 times and obtained 5067 heads. Let p be the probability of a head on a single toss. We wish to check if the data are consistent with the hypothesis that the coin was fair. a) Set up the hypotheses. Why...
( In R / R studio ) im not sure how to share my data set,...
( In R / R studio ) im not sure how to share my data set, but below is the title of my data set and the 12 columns of my data set. Please answer as best you can wheather its pseudo code, partial answers, or just a suggestion on how i can in to answer the question. thanks #---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The dataset incovid_sd_20201001.RDatacontains several variables related to infections of covid-19 for eachzip code in San Diego County as of October...
** Number 2 implemented in R (R Studio) ** Set up the Auto data: Load the...
** Number 2 implemented in R (R Studio) ** Set up the Auto data: Load the ISLR package and the Auto data Determine the median value for mpg Use the median to create a new column in the data set named mpglevel, which is 1 if mpg>median and otherwise is 0. Make sure this variable is a factor. We will use mpglevel as the target (response) variable for the algorithms. Use the names() function to verify that your new column...
Short lab report about following Note ** Should has examples ** Note ** Work is done...
Short lab report about following Note ** Should has examples ** Note ** Work is done through the Word program ** Lab 1‪ - capacitors Lab 2‪- indactor Lab 3‪ - resistor Lab 4‪- Ohm's law Lab 5‪ - KVL Lab 6‪ - KCL Lab 7‪ - series and parallel circuit
Note: You need to show your work. Be sure to upload your well-documented Excel and to...
Note: You need to show your work. Be sure to upload your well-documented Excel and to make note in this file how you arrived at your answers. If you choose to do the work by hand, Microsoft Word has an equation editor. Go to “Insert” and “Equation” on newer versions of Word. On older versions, go to “Insert” and “Object” and “Microsoft Equation.” Player Round 1 Round 2 Michael Letzig 70 72 Scott Verplank 71 72 D.A. Points 70 75...
For each question in this assignment, you should upload your output and your explanations to Canvas....
For each question in this assignment, you should upload your output and your explanations to Canvas. There are 3 questions in this assignment.    Enter the following data in SPSS and (a) produce a frequency chart, (b) produce a graph or chart appropriate for the variable, (c) explain why you chose that graph or chart that you did, (d) produce the measure of central tendency most appropriate for this variable, (e) explain why this measure of central tendency is best,...
Part 2– R work (must be done in R) Copy and paste your R code and...
Part 2– R work (must be done in R) Copy and paste your R code and output into a word document, along with your written answers to the questions, and upload to Canvas.   Follow these instructions to import the necessary dataset: Before opening the dataset needed for this problem, you’ll need to call the “car”package.  Run the following line of code: > library(car) Now you can import the “Prestige” dataset and use it to answer the question below. Name the data...
Using R studio 1. Read the iris data set into a data frame. 2. Print the...
Using R studio 1. Read the iris data set into a data frame. 2. Print the first few lines of the iris dataset. 3. Output all the entries with Sepal Length > 5. 4. Plot a box plot of Petal Length with a color of your choice. 5. Plot a histogram of Sepal Width. 6. Plot a scatter plot showing the relationship between Petal Length and Petal Width. 7. Find the mean of Sepal Length by species. Hint: You could...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT