Saltar al contenido principal
InicioR

String Manipulation with stringr in R

Learn how to pull character strings apart, put them back together and use the stringr package.

Comienza El Curso Gratis
4 horas17 vídeos60 ejercicios30.843 aprendicesTrophyDeclaración de cumplimiento

Crea Tu Cuenta Gratuita

GoogleLinkedInFacebook

o

Al continuar, acepta nuestros Términos de uso, nuestra Política de privacidad y que sus datos se almacenan en los EE. UU.
Group

¿Entrenar a 2 o más personas?

Probar DataCamp for Business

Preferido por estudiantes en miles de empresas


Descripción del curso

Character strings can turn up in all stages of a data science project. You might have to clean messy string input before analysis, extract data that is embedded in text or automatically turn numeric results into a sentence to include in a report. Perhaps the strings themselves are the data of interest, and you need to detect and match patterns within them. This course will help you master these tasks by teaching you how to pull strings apart, put them back together and use stringr to detect, extract, match and split strings using regular expressions, a powerful way to express patterns.
Empresas

¿Entrenar a 2 o más personas?

Obtén a tu equipo acceso a la plataforma DataCamp completa, incluidas todas las funciones.
DataCamp Para EmpresasPara obtener una solución a medida, reserve una demostración.

En las siguientes pistas

Desarrollador R

Ir a la pista

Minería de textos in R

Ir a la pista
  1. 1

    String basics

    Gratuito

    You'll start with some basics: how to enter strings in R, how to control how numbers are transformed to strings, and finally how to combine strings together to produce output that combines text and nicely formatted numbers.

    Reproducir Capítulo Ahora
    Welcome!
    50 xp
    Quotes
    100 xp
    What you see isn't always what you have
    100 xp
    Escape sequences
    100 xp
    Turning numbers into strings
    50 xp
    Using format() with numbers
    100 xp
    Controlling other aspects of the string
    100 xp
    formatC()
    100 xp
    Putting strings together
    50 xp
    Annotation of numbers
    100 xp
    A very simple table
    100 xp
    Let's order pizza!
    100 xp
  2. 2

    Introduction to stringr

    Time to meet stringr! You'll start by learning about some stringr functions that are very similar to some base R functions, then how to detect specific patterns in strings, how to split strings apart and how to find and replace parts of strings.

    Reproducir Capítulo Ahora
  3. 3

    Pattern matching with regular expressions

    In this chapter you'll learn about regular expressions, a language for describing patterns in strings. By combining regular expressions with the stringr functions you'll greatly increase your power to manipulate strings.

    Reproducir Capítulo Ahora
  4. 4

    More advanced matching and manipulation

    Now for two advanced ways to use regular expressions along with stringr: selecting parts of a match (a.k.a capturing) and referring back to parts of a match (a.k.a back-referencing). You'll also learn to deal with and strings or patterns that contain Unicode characters (e.g. é).

    Reproducir Capítulo Ahora
  5. 5

    Case studies

    Practice your string manipulation skills on a couple of case studies. You'll also learn a few new skills, reading strings into R and handling problems of case (e.g. A versus a).

    Reproducir Capítulo Ahora
Empresas

¿Entrenar a 2 o más personas?

Obtén a tu equipo acceso a la plataforma DataCamp completa, incluidas todas las funciones.

En las siguientes pistas

Desarrollador R

Ir a la pista

Minería de textos in R

Ir a la pista

conjuntos de datos

DNA sequences from the genome of Yersinia pestisNarrativesAdverbsImportance of being earnestCat-related accidents

colaboradores

Collaborator's avatar
Tom Jeon
Collaborator's avatar
Richie Cotton

requisitos previos

Intermediate R
Charlotte Wickham HeadshotCharlotte Wickham

Assistant Professor at Oregon State University

Ver Más

¿Qué tienen que decir otros alumnos?

¡Únete a 15 millones de estudiantes y empieza String Manipulation with stringr in R hoy mismo!

Crea Tu Cuenta Gratuita

GoogleLinkedInFacebook

o

Al continuar, acepta nuestros Términos de uso, nuestra Política de privacidad y que sus datos se almacenan en los EE. UU.