メインコンテンツへスキップ
ホームR

コース

purrr で学ぶ中級関数型プログラミング

中級スキルレベル
更新日 2024/11
purrrで学習を深め、堅牢でクリーン、保守しやすい反復処理コードを作成しましょう。
コースを無料で開始
RProgramming
4時間
17 ビデオ
49 演習
3,850 XP
5,659
修了証明書

無料アカウントを作成

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

何千もの企業の従業員が支持

Group

チームのトレーニングを担当していますか?

Businessをお試しください

コース説明

purrr の説明文(“A functional programming toolkit for R”)が何を指しているのか気になったことはありませんか? それなら、このコースがぴったりです! 本コースでは、purrr の関数型プログラミングの考え方を実践的に学びます。つまり、map(.x, .f) の .f がもつ柔軟性を最大限に活かし、堅牢で読みやすく、保守しやすいコードで、リストやベクトル、data.frame を反復処理する方法を習得します。学習の中では、独自のマッパー(またはラムダ関数)の書き方、述語関数や副詞(adverbs)の使い方も身につけます。最後に、これらの知識を実ケースに当てはめ、シンプルなネストリストを例に、要素の抽出・保持・除外、関数合成による結果の操作とパース、ほかの関数内での purrr ワークフローの統合、そして purrr の関数型ツールでコピペを避ける方法まで、具体的に確認します。

前提条件

Foundations of Functional Programming with purrr
1

Programming with purrr

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.
チャプターを開始
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.
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.
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.
purrr で学ぶ中級関数型プログラミング
コース完了

修了証明書を取得

この修了書をLinkedInや履歴書、CVに追加しましょう
ソーシャルメディアや人事評価で共有しましょう
今すぐ登録

19百万人を超える学習者と共にpurrr で学ぶ中級関数型プログラミングを始めましょう!

無料アカウントを作成

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

DataCamp for Mobileでデータスキルを磨きましょう

モバイル コースと毎日の 5 分間のコーディング チャレンジで、外出先でも進歩できます。