logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
443 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Jessica FullerrPolitical science
(5/5)

585 Answers

Hire Me
expert
Sachin RanaComputer science
(5/5)

609 Answers

Hire Me
expert
Gary BambrickResume writing
(5/5)

782 Answers

Hire Me
expert
Nagendra Singh ChauhanMathematics
(/5)

522 Answers

Hire Me
R Programming
(5/5)

Due tonight at midnight

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

 R Scripts for Final Project 

NOTE: Make sure to change the names of the files created in these scripts to your own unique names (not your_answer_file, etc). We don't want you to copy 
these lines word for word. You can copy everything except the names of the intermediate/output files. Make sure to change the names of the files created
by the grep statements and Rscripts so that we know you understand what is happening and what files you are creating and manipulating.
Attached are 3 R scripts which you will need for the final project. Each one has been commented to explain what it does. Please read through them and make sure
you understand what they are doing.
FirstConvert.R
SecondConvert.R
WidetoLong.R
To run the scripts, you can add the bolded lines to your script where you created your_student_answers_file and your_answer_key_file from Code Review 8:
grep.... your.answer.key.file
grep.... your.student.answers.file
Rscript FirstConvert.R your_student_answers_file your_answer_key_file your_output_from_FirstConvert
Rscript WidetoLong.R your_output_from_FirstConvert your_output_from_WidetoLong
After running your script you should have a file that we'll call Long, which has Student_ld's, Form_Letter, Question_Number, and a column of o's and I's indicating if
they got the question right or wrong. You will notice that if you look at Long, there are quotes around the Form_Letter. These need to be removed. You can do this
using sed:
sed -i 'sA"//g' your_results_from_WidetoLong.R
You won't turn anything in for this part, but you will want to be sure that you understand this code and that it runs on your machine. If you have questions, ask the
T.A.'s.
(5/5)
Attachments:

Expert's Answer

443 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme