Saltar al contenido principal
InicioRString Manipulation with stringr in R

String Manipulation with stringr in R

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

Comience El Curso Gratis
4 Horas17 Videos60 Ejercicios
30.083 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?Pruebe DataCamp para empresas

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

Group¿Entrenar a 2 o más personas?

Obtenga acceso de su equipo a la biblioteca completa de DataCamp, con informes centralizados, tareas, proyectos y más
Pruebe DataCamp Para EmpresasPara obtener una solución a medida, solicite una demonstración.

En las siguientes pistas

Desarrollador R

Ir a la pista

Minería de textos con 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

Group¿Entrenar a 2 o más personas?

Obtenga acceso de su equipo a la biblioteca completa de DataCamp, con informes centralizados, tareas, proyectos y más

En las siguientes pistas

Desarrollador R

Ir a la pista

Minería de textos con R

Ir a la pista

Sets 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 Mas

¿Qué tienen que decir otros alumnos?

Únete a 13 millones de estudiantes y empeza String Manipulation with stringr in R hoy!

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.