The str_to_upper() Function in R.  Convert Text to Uppercase with stringr Package

The str_to_upper() Function in R. Convert Text to Uppercase with stringr Package

Assessment

Interactive Video

Information Technology (IT), Architecture, Social Studies

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial by Greg Martin focuses on text manipulation in R using the String R package, part of the tidyverse. It introduces the Star Wars data set, demonstrating how to transform text data, specifically changing species names to uppercase. The tutorial includes a code walkthrough, utilizing the mutate function and string to upper function, and explains how to create visually appealing tables using GT extra.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary focus of the video tutorial?

Learning Python for data analysis

Understanding machine learning algorithms

Using the String R package for text manipulation

Creating visualizations with ggplot2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data set is used in the video to demonstrate text manipulation?

Star Wars data set

Lord of the Rings data set

Harry Potter data set

Marvel Comics data set

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main task performed on the species names in the Star Wars data set?

Transforming them to uppercase

Converting them to lowercase

Removing duplicates

Sorting them alphabetically

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to change the species variable to uppercase?

string_concat

string_replace

string_to_upper

string_to_lower

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What package is used to create a visually appealing table in the video?

lubridate

dplyr

ggplot2

GT extra