Saltar al contenido principal
InicioR

Intermediate Functional Programming with purrr

Continue learning with purrr to create robust, clean, and easy to maintain iterative code.

Comienza El Curso Gratis
4 horas17 vídeos49 ejercicios5359 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

Have you ever been wondering what the purrr description (“A functional programming toolkit for R”) refers to? Then, you’ve come to the right place! This course will walk you through the functional programming part of purrr - in other words, you will learn how to take full advantage of the flexibility offered by the .f in map(.x, .f) to iterate other lists, vectors and data.frame with a robust, clean, and easy to maintain code. During this course, you will learn how to write your own mappers (or lambda functions), and how to use predicates and adverbs. Finally, this new knowledge will be applied to a use case, so that you’ll be able to see how you can use this newly acquired knowledge on a concrete example of a simple nested list, how to extract, keep or discard elements, how to compose functions to manipulate and parse results from this list, how to integrate purrr workflow inside other functions, how to avoid copy and pasting with purrr functional tools.
Empresas

Group¿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

Caja de herramientas intermedia de Tidyverse

Ir a la pista
  1. 1

    Programming with purrr

    Gratuito

    Do lambda functions, mappers, and predicates sound scary to you? Fear no more! After refreshing your purrr memory, we will dive into functional programming 101, discover anonymous functions and predicates, and see how we can use them to clean and explore data.

    Reproducir Capítulo Ahora
    purrr basics - a refresher
    50 xp
    Refreshing your purrr memory
    100 xp
    Another purrr refresher
    100 xp
    Introduction to mappers
    50 xp
    Creating lambda functions
    100 xp
    Lambda functions
    100 xp
    Using mappers to clean up your data
    50 xp
    Clean up your data with keep
    100 xp
    Split up with keep() and discard()
    100 xp
    Predicates
    50 xp
    What is a predicate?
    50 xp
    Exploring data with predicates
    100 xp
  2. 2

    Functional programming: from theory to practice

    Ready to go deeper with functional programming and purrr? In this chapter, we'll discover the concept of functional programming, explore error handling using including safely() and possibly(), and introduce the function compact() for cleaning your code.

    Reproducir Capítulo Ahora
  3. 3

    Better code with purrr

    In this chapter, we'll use purrr to write code that is clearer, cleaner, and easier to maintain. We'll learn how to write clean functions with compose() and negate(). We'll also use partial() to compose functions by "prefilling" arguments from existing functions. Lastly, we'll introduce list-columns, which are a convenient data structure that helps us write clean code using the Tidyverse.

    Reproducir Capítulo Ahora
  4. 4

    Case study

    We'll wrap up everything we know about purrr in a case study. Here, we'll use purrr to analyze data that has been scraped from Twitter. We'll use clean code to organize the data and then we'll identify Twitter influencers from the 2018 RStudio conference.

    Reproducir Capítulo Ahora
Empresas

Group¿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

Caja de herramientas intermedia de Tidyverse

Ir a la pista

colaboradores

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Becca Robins

requisitos previos

Foundations of Functional Programming with purrr
Colin FAY HeadshotColin FAY

Data Scientist & R Hacker

Ver Más

¿Qué tienen que decir otros alumnos?

¡Únete a 15 millones de estudiantes y empieza Intermediate Functional Programming with purrr 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.