• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

Data Analysis with R Programming

Document preview thumbnail
Vista previa 2 fuera de 6 páginas

Data Analysis with R Programming

Vista previa del contenido

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.

Información del documento

Subido en
9 de noviembre de 2024
Número de páginas
6
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
douglasmugwe82
5.0
(1)
Vendido
2
Seguidores
0
Artículos
4215
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes