• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

Data Analysis with R Programming

Document preview thumbnail
Preview 2 out of 6 pages

Data Analysis with R Programming

Content preview

Data Analysis with R Programming Q&A
Which of the following variables have names that follow widely accepted naming
convention rules? Select all that apply - (correct answer)plum_total_1

total_plums



These variable names use only lowercase letters and underscores and are clear,
concise, and meaningful.



In R, what includes reusable functions and documentation about how to use the
functions? - (correct answer)Packages


In R, packages include reusable R functions and documentation about how to use the
functions. They also include sample data sets and tests for checking your code.



When an analyst installs a package that is not in Base R, where does R call the
package from? - (correct answer)The CRAN archive



When an analyst installs a package that is not in Base R, R calls the package from the
CRAN archive. CRAN is an online archive with R packages and other R-related
resources.



When programming in R, what is a pipe used as an alternative for? - (correct
answer)Nested function



A pipe can be used as an alternative for a nested function. You can use both pipes and
nested functions to complete multiple operations on data. However, a pipe is often the
preferred method because it makes your code easier to read and understand.



A data analyst wants to assign the value 50 to the variable daily_dosage. Which of the
following types of operators will they need to write that code? - (correct
answer)Assignment

, The analyst can use an assignment operator to write the following code: daily_dosage
<- 50. In this code, the assignment operator <- is used to assign a value of 50 to the
variable daily_dosage.



An analyst runs code to convert string data into a date/time data type that results in the
following: "2020-07-10". Which of the following are examples of code that would lead to
this return? Select all that apply. - (correct answer)The code that would lead to the value
of "2020-07-10" are ymd(20200710) and mdy("July 10th, 2020").



Both of these code chunks use the date/time functions that convert string data types to
date/time data types.



You want to create a vector with the values 12, 23, 51, in that exact order. After
specifying the variable, what R code chunk allows you to create the vector? - (correct
answer)c(12, 23, 51)



allows you to create a vector with the values 12, 23, 51. A vector is a group of data
elements of the same type stored in a sequence in R. You can create a vector by putting
the values you want inside the parentheses of the combine function.



A data analyst is working with a dataset in R that has more than 50,000 observations.
Why might they choose to use a tibble instead of the standard data frame? Select all
that apply. - (correct answer)Tibbles automatically only preview the first 10 rows of data

Tibbles automatically only preview as many columns as fit on screen



Tibbles make printing in R easier. They won't accidentally overload the data analyst's
console because they're automatically set to pull up only the first 10 rows and as many
columns as fit on screen.

Document information

Uploaded on
November 9, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4215
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions