Welcome to Assignments Writing

Your Trusted Partner in Term Paper Writing

At Assignments Writing, we’re a team of passionate educators and skilled writers committed to supporting students in their academic journey.

MIS 446 Colorado State University Global Campus R Scrit to Explore Data Worksheet

MIS 446 Colorado State University Global Campus R Scrit to Explore Data Worksheet

ANSWER

Here’s an R script file that completes the steps you provided:

R
# Name: Your name
# Course: Your course
# Module: 2

# Step 2
# Read in the data set file cafe_ratings.csv
cafe_data <- read.csv("cafe_ratings.csv")

# Create price categories
cafe_data$Price_Category <- cut(cafe_data$Price,
breaks = c(0, 50, 100, 150, 600),
labels = c("$50 and under", "$50 to $100", "$100 to $150", "$150 to $600"))

# Create a cross-tabulation table
cross_tab <- table(cafe_data$Cuisine, cafe_data$Price_Category)

# Display the cross-tabulation table
print(cross_tab)

# Step 3
# Print current date and time
print(Sys.time())

# Print username
print(Sys.getenv("username"))

# Step 4
# Read in the data set file top20.csv
endowment_data <- read.csv("top20.csv")

# Create a box plot for university endowment
boxplot(endowment_data$Endowment, main = "University Endowment Box Plot", ylab = "Endowment (Billions USD)")

# Step 5
# Print current date and time
print(Sys.time())

# Print username
print(Sys.getenv("username"))

Make sure to replace “Your name” and “Your course” with your actual name and course. Also, ensure that you have the CSV files (“cafe_ratings.csv” and “top20.csv”) in your working directory before running the script.

To summarize:

  1. The script reads the “cafe_ratings.csv” file, creates price categories, and generates a cross-tabulation table showing the distribution of price across cuisine.
  2. It prints the current date, time, and username using Sys.time() and Sys.getenv("username").
  3. The script reads the “top20.csv” file and creates a box plot to display university endowment data.
  4. Finally, it prints the current date, time, and username again.

To submit your response, execute the script in RStudio, capture the required screenshots as specified in your assignment, and provide a summary, interpretation of results, and reflection based on your experience completing the assignment.

MIS 446 Colorado State University Global Campus R Scrit to Explore Data Worksheet

QUESTION

Description

 

 

Create an R script (*.R) file to explore two variables together from one *.csv data set file using cross tabulation and to explore a single quantitative variable from another *.csv data set file using box plot according to the steps given below. Give the script file a name that includes your first name and last name like this Solution-W1-FirstName-LastName.R.

Complete these steps:

Step 1

  1. Include these 3 lines of comments at the beginning of your R (*.R) script file to document the script:

# Name: Your name (e.g., Jane Doe)
# Course: Your course (e.g., MIS446)
# Module: 2

Step 2

Read in the data set file cafe_ratings.csv Download cafe_ratings.csvand organize its  data into a cross-tabulation table showing the distribution of price across cuisine. Use four price categories of (1) $50 and under, (2) $50 to $100, (3) $100 to $150, and (4) $150 to $600.

Your R code should be well commented and well organized to explain what the code does.

Step 3

Enter this Sys.time() R function to print the current date and time and this Sys.getenv(“username”) R function to print your username as shown here:

Code snippet:  data-verified= Sys.time() [1] “2022-08-09 09:35:57 EDT” > Sys.getenv(“username”) [1] “omora” >”>

Step 4

Read in the data set file top20.csv and display the university endowment data in a box plot. Are the data presented well?

Your R code should be well commented and well organized to explain what the code does.

Step 5

Enter this Sys.time() R function to print current date and time and this Sys.getenv(“username”) R function to print your username as shown here:

Code snippet:  data-verified= Sys.time() [1] “2022-08-09 09:35:57 EDT” > Sys.getenv(“username”) [1] “omora” >”>

Save and execute your *.R script file and display the results of its execution in the RStudio console and/or the Plots tabs.

Take screenshots of your ordered steps to demonstrate successful completion of your work. The screenshot should show the R commands you applied and the results you obtained. Do not capture trial and error results. Only your final results should be captured. Your screenshot(s) should look something like this:

Snippet from RStudio showing documenting the script file and partial completion

Summarize your work on this assignment as follows:

Explain how you completed this work and how you resolved the issues you faced, if any. Explanation of your work should be relevant and detailed.

Interpret the results you obtained from your work. Interpretation of results should be relevant and accurate.

Reflect on your experience with this assignment and the lessons you learned. Reflection on experience should be relevant and personalized.

To submit your response to this assignment:

Prepare all the required *.R script file and screenshots.

Prepare your summary of your work (what you did, interpretation of results, and reflection).

Use the Submission Template – Assignment Download Submission Template – Assignmentdocument and complete all its sections from your prepared screenshots and work summary.

Make sure your completed Submission Template – Assignment document

follows the order given in the submission template.

Place Your Order Here

Our Service Charter


1. Professional & Expert Writers: We only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master’s and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. We are known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: We have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Format & Features

Our Advantages

How It Works

1. Fill Order Form
2. Make payment
3. Writing process
4. Download paper

Fill in the order form and submit all your files, including instructions, rubrics, and other information given to you by your instructor.

Once you complete filling the forms, complete your payment. We will get the order and assign it to a writer.

When your order is completed, it’s assigned to an editor for approval. The editor approves the order.

Once approved, we will upload the order to your account for you to download.  You can rate your writer or give your customer review.

What Clients Said

{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Mercy M
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Jane L
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

4.5
Rayan M

LET US DELIVER YOUR ACADEMIC PAPER ON TIME!

We are a freelance academic writing company geared towards provision of high quality academic papers to students worldwide.

Open chat
1
Scan the code
Hello
Can we help you?