Pular para o conteúdo principal
InícioR

String Manipulation with stringr in R

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

Comece O Curso Gratuitamente
4 horas17 vídeos60 exercícios30.843 aprendizesTrophyDeclaração de Realização

Crie sua conta gratuita

GoogleLinkedInFacebook

ou

Ao continuar, você aceita nossos Termos de Uso, nossa Política de Privacidade e que seus dados são armazenados nos EUA.
Group

Treinar 2 ou mais pessoas?

Tentar DataCamp for Business

Amado por alunos de milhares de empresas


Descrição do 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.
Para Empresas

Treinar 2 ou mais pessoas?

Obtenha acesso à sua equipe à plataforma DataCamp completa, incluindo todos os recursos.
DataCamp Para EmpresasPara uma solução sob medida , agende uma demonstração.

Nas seguintes faixas

Desenvolvedor R

Ir para a trilha

Mineração de texto in R

Ir para a trilha
  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.

    Reproduzir Capítulo Agora
    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.

    Reproduzir Capítulo Agora
  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.

    Reproduzir Capítulo Agora
  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. é).

    Reproduzir Capítulo Agora
  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).

    Reproduzir Capítulo Agora
Para Empresas

Treinar 2 ou mais pessoas?

Obtenha acesso à sua equipe à plataforma DataCamp completa, incluindo todos os recursos.

Nas seguintes faixas

Desenvolvedor R

Ir para a trilha

Mineração de texto in R

Ir para a trilha

conjuntos de dados

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

colaboradores

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

pré-requisitos

Intermediate R
Charlotte Wickham HeadshotCharlotte Wickham

Assistant Professor at Oregon State University

Ver Mais

O que os outros alunos têm a dizer?

Junte-se a mais de 15 milhões de alunos e comece String Manipulation with stringr in R hoje mesmo!

Crie sua conta gratuita

GoogleLinkedInFacebook

ou

Ao continuar, você aceita nossos Termos de Uso, nossa Política de Privacidade e que seus dados são armazenados nos EUA.