Home » Data Science » Data Analysis » A data analyst is working with a data frame named sales. They write the following code:sales %>%The data frame contains a column named q1_sales. What code chunk does the analyst add to change the name of the column from q1_sales to quarter1_sales ? Q: Practice More Questions From: Programming and data analytics Created with Fabric.js 4.6.0 Practice More Questions Data Analysis 2000+ Qs Machine Learning 1000+ Qs Created with Fabric.js 4.6.0 Similar Questions Next, you prepare for the question-and-answer session that will follow your presentation. What methods help you consider any limitations of your data? Select all that apply. Information about charging stations and the need to increase battery range will be part of the setting of your data story. What tool do you create for your stakeholders? You want to add a label to represent the scale (total count by year) of electric vehicle sales. Where on the graph do you label these values? You decide that you want to be able to adjust the width of the views and the data visualizations about electric vehicle sales, charging stations, and battery range. Which type of layout will enable you to do that? Based on these insights, you create your primary message. Which of the following reflect the expectations of a primary message? Fill in the blank: To improve your draft, you select more varied hues and make the color intensity stronger. In addition, you choose darker _____ in order to reflect more light. After reviewing your pie chart, you realize that it could be improved by resizing the segments. Resizing the segments in proportion to each segment’s relative value enables you to visually show the different values. 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. A data analyst is deciding on naming conventions for an analysis that they are beginning in R. Which of the following rules are widely accepted stylistic conventions that the analyst should use when naming variables? Select all that apply. Which of the following are included in R packages? Select all that apply. Packages installed in RStudio are called from CRAN. CRAN is an online archive with R packages and other R-related resources. Fill in the blank: When creating a variable for use in R, your variable name should begin with _____. If you use the mdy() function in R to convert the string “April 10, 2019”, what will return when you run your code? In R, what includes reusable functions and documentation about how to use the functions? Examples of variable names that can be used in R are autos_5 and utility2. Variable names should start with a letter and can also contain numbers and underscores. You want to create a vector with the values 43, 56, 12 in that exact order. After specifying the variable, what R code chunk allows you to create this vector? Which of the following variables have names that follow widely accepted naming convention rules? Select all that apply. When an analyst installs a package that is not in Base R, where does R call the package from? A data analyst previously created a series of nested functions that carry out multiple operations on some data in R. The analyst wants to complete the same operations but make the code easier to understand for their stakeholders. Which of the following can the analyst use to accomplish this? A data analyst is assigning a variable to a value in their company’s sales dataset for 2020. Which variable name uses the correct syntax? You want to create a vector with the values 21, 12, 39, in that exact order. After specifying the variable, what R code chunk allows you to create the vector? In the code sales_1 <- (3500.00 * 12), the analyst uses an assignment (<-) and an arithmetic (*) operator. The assignment operator assigns the calculated value in parentheses to the variable sales_1 and the arithmetic operator multiplies the values in parentheses to complete the calculation. When programming in R, what is a pipe used as an alternative for? 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? R packages include sample datasets. They also include reusable R functions and documentation about how to use the functions. A data analyst is reviewing some code and finds the following code chunk: mtcars %>% filter(carb > 1) %>% group_by(cyl) %>% What is this code chunk an example of? What is the relationship between RStudio and CRAN? 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? An analyst comes across dates listed as strings in a dataset, for example December 10th, 2020. To convert the strings to a date/time data type, which function should the analyst use? 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. You are working with the ToothGrowth dataset. You want to use the glimpse() function to get a quick summary of the dataset. Write the code chunk that will give you this summary. How many variables does the ToothGrowth dataset contain? A data analyst is working with a data frame named sales. They write the following code:sales %>%The data frame contains a column named q1_sales. What code chunk does the analyst add to change the name of the column from q1_sales to quarter1_sales ? A data analyst is working with the penguins data. They write the following code: penguins %>% The variable species includes three penguin species: Adelie, Chinstrap, and Gentoo. What code chunk does the analyst add to create a data frame that only includes the Gentoo species? A data analyst is working with a data frame named salary_data. They want to create a new column named wages that includes data from the rate column multiplied by 40. What code chunk lets the analyst create the wages column? Created with Fabric.js 4.6.0 Practice More Questions Data Analysis 200+ Qs Machine Learning 100+ Qs