SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
dplyr
romain@r-enthusiasts.com
Romain François
...
$ wc -l R/*.R | tail -n1
3576 total
$ wc -l src/*.cpp | tail -n1
4908 total
$ wc -l **/*.h | tail -n1
8908 total
dis playa
DEEP LIAR
%>%(païpe)
verbe( sujet, complement )
sujet %>% verbe( complement )
enjoy(cool(bake(shape(beat(append(bowl(rep("flour",
2), "yeast", "water", "milk", "oil"), "flour", until
= "soft"), duration = "3mins"), as = "balls", style =
"slightly-flat"), degrees = 200, duration =
"15mins"), duration = "5mins"))
bowl(rep("flour", 2), "yeast", "water", "milk", "oil") %>%
append("flour", until = "soft") %>%

beat(duration = "3mins") %>%

shape(as = "balls", style = "slightly-flat") %>%

bake(degrees = 200, duration = "15mins") %>%

cool(buns, duration = "5mins") %>%
enjoy()
Vocabulary
filter
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
x y
purple 2
purple 3
purple 6
data %>% filter( x == "purple" )
mutate
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
data %>% mutate( y = y*2, z = nchar(x) )
x y z
purple 4 6
purple 6 6
red 8 3
red 10 3
purple 12 6
yellow 14 6
yellow 16 6
select
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
data %>% select( x )
x
purple
purple
red
red
purple
yellow
yellow
arrange
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
data %>% arrange( desc(x) )
x y
yellow 8
yellow 7
purple 6
red 5
red 4
purple 3
purple 2
group_by
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
x y
purple 2
purple 3
purple 6
data %>% group_by( x )
x y
red 4
red 5
x y
yellow 7
yellow 8
summarise
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
summarise( data, z = min(y) )
z
2
group_by + summarise
x y
purple 2
purple 3
red 4
red 5
purple 6
yellow 7
yellow 8
x y
purple 2
purple 3
purple 6
data %>% group_by( x )%>% summarise( z = max(y) )
x y
red 4
red 5
x y
yellow 7
yellow 8
x z
purple 6
red 5
yellow 8
Mise en garde :
comme son nom
l'indique ...
install_github( "romainfrancois/cpasbien" )
library("cpasbien")
movies <- get_all_movies( pages = 1:20 )
episodes <- get_all_episodes( pages = 1:20 )
> glimpse( movies )
Observations: 600
Variables: 11
$ type <chr> "policiers-thrillers", "policiers-thrillers", "policiers-thr...
$ title <chr> "Oppression", "Oppression", "Oppression", "Oppression", "Ret...
$ year <chr> "2016", "2016", "2016", "2016", "2016", "2016", "2016", "201...
$ lang <chr> "french", "french", "french", "french", "french", "french", ...
$ quality <chr> "dvdrip", "dvdrip-x264", "bluray-1080p", "bluray-720p", "dvd...
$ size <dbl> 710, 345, 7885, 4506, 701, 632, 696, 701, 1434, 4710, 1434, ...
$ up <dbl> 2928, 285, 223, 330, 5541, 522, 2329, 8362, 4835, 1157, 261,...
$ down <dbl> 188, 18, 62, 54, 236, 17, 90, 400, 452, 159, 27, 29, 126, 66...
$ torrent <chr> "http://www.cpasbien.cm/telechargement/oppression-french-dvd...
$ poster <chr> "http://www.cpasbien.cm/_pictures/oppression-french-dvdrip-2...
$ href <chr> "http://www.cpasbien.cm/dl-torrent/films/policiers-thrillers...
> glimpse( episodes )
Observations: 569
Variables: 11
$ show <chr> "NCIS New Orleans ", "Hawaii 5-0 (2010) ", "Van Helsing ", "...
$ season <dbl> 2, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 27, 27, 1, 2, 4, 1, 3, 3...
$ episode <dbl> 17, 1, 2, 12, 11, 10, 2, 6, 5, 1, 4, 2, 3, 2, 1, 2, 1, 1, 1,...
$ lang <chr> "french", "vostfr", "vostfr", "french", "french", "french", ...
$ quality <chr> "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdt...
$ size <dbl> 351, 367, 356, 344, 348, 336, 230, 346, 346, 368, 347, 347, ...
$ up <dbl> 131, 204, 717, 1143, 1081, 1222, 235, 700, 658, 295, 648, 38...
$ down <dbl> 22, 20, 45, 144, 132, 154, 14, 49, 61, 20, 48, 18, 4, 5, 32,...
$ torrent <chr> "http://www.cpasbien.cm/telechargement/l-m-n/ncis-new-orlean...
$ poster <chr> "http://www.cpasbien.cm/_pictures/l-m-n/ncis-new-orleans-s02...
$ href <chr> "http://www.cpasbien.cm/dl-torrent/series/l-m-n/ncis-new-orl...
Les comédies les plus
téléchargées en ce moment
en qualité dvdrip
Les comédies les plus
téléchargées en ce moment
en qualité dvdrip
movies %>%
filter(
grepl( "comedies", type ),
quality == "dvdrip"
) %>%
arrange( desc(down) )
Les films d'animation
en meilleure qualité possible
(mais pas dvdscr)
en français
movies %>%
filter(
grepl("animation", type),
lang == "french",
quality != "dvdscr"
) %>%
select(-type, -lang) %>%
group_by(title) %>%
filter(size == max(size))
Le dernier episode disponible de
chaque série en VO
episodes %>%
filter( lang == "vostfr" ) %>%
group_by( show ) %>%
filter( season == max(season) ) %>%
filter( episode == max(episode) ) %>%
arrange(desc(up))
Le dernier episode disponible de
chaque série en VO
episodes %>%
filter( lang == "vostfr" ) %>%
group_by( show ) %>%
filter( season == max(season) ) %>%
filter( episode == max(episode) ) %>%
filter( episode == 1 ) %>%
arrange( desc(up) )
... les séries d'automne ...
Questions ?
romain@r-enthusiasts.com
Demo
library("cpasbien")
library("shiny")
runApp( system.file("app", package = "cpasbien") )
dplyr and torrents from cpasbien

Contenu connexe

Tendances

Frege is a Haskell for the JVM
Frege is a Haskell for the JVMFrege is a Haskell for the JVM
Frege is a Haskell for the JVMjwausle
 
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]David Koelle
 
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...David Koelle
 
Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기JangHyuk You
 
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of Wrangling
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of WranglingPLOTCON NYC: Behind Every Great Plot There's a Great Deal of Wrangling
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of WranglingPlotly
 
Vim Hacks (OSSF)
Vim Hacks (OSSF)Vim Hacks (OSSF)
Vim Hacks (OSSF)Lin Yo-An
 
Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)garux
 
Extending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::UtilExtending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::UtilNova Patch
 
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав Ворончук
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав ВорончукFrontendLab: Programming UI with FRP and Bacon js - Вячеслав Ворончук
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав ВорончукGeeksLab Odessa
 
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기Suyeol Jeon
 
Damn Fine CoffeeScript
Damn Fine CoffeeScriptDamn Fine CoffeeScript
Damn Fine CoffeeScriptniklal
 
Bloqueador cmd-sh
Bloqueador cmd-shBloqueador cmd-sh
Bloqueador cmd-shmsbertoldi
 
An (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to PythonAn (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to PythonNicholas Tollervey
 
網頁程式還可以怎麼設計
網頁程式還可以怎麼設計網頁程式還可以怎麼設計
網頁程式還可以怎麼設計Kang-min Liu
 
RxSwift 시작하기
RxSwift 시작하기RxSwift 시작하기
RxSwift 시작하기Suyeol Jeon
 
FRP and Bacon.js
FRP and Bacon.jsFRP and Bacon.js
FRP and Bacon.jsStarbuildr
 

Tendances (20)

Frege is a Haskell for the JVM
Frege is a Haskell for the JVMFrege is a Haskell for the JVM
Frege is a Haskell for the JVM
 
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]
JFugue, Music, and the Future of Java [JavaOne 2016, CON1851]
 
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...
The Art, Joy, and Power of Creating Musical Programs (JFugue at SXSW Interact...
 
Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기
 
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of Wrangling
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of WranglingPLOTCON NYC: Behind Every Great Plot There's a Great Deal of Wrangling
PLOTCON NYC: Behind Every Great Plot There's a Great Deal of Wrangling
 
Vim Hacks (OSSF)
Vim Hacks (OSSF)Vim Hacks (OSSF)
Vim Hacks (OSSF)
 
Shell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbaiShell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbai
 
Ruby 1.9
Ruby 1.9Ruby 1.9
Ruby 1.9
 
Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)
 
Extending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::UtilExtending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::Util
 
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав Ворончук
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав ВорончукFrontendLab: Programming UI with FRP and Bacon js - Вячеслав Ворончук
FrontendLab: Programming UI with FRP and Bacon js - Вячеслав Ворончук
 
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기
Swift - 혼자 공부하면 분명히 안할테니까 같이 공부하기
 
Damn Fine CoffeeScript
Damn Fine CoffeeScriptDamn Fine CoffeeScript
Damn Fine CoffeeScript
 
Bloqueador cmd-sh
Bloqueador cmd-shBloqueador cmd-sh
Bloqueador cmd-sh
 
Yahoo! JAPANとKotlin
Yahoo! JAPANとKotlinYahoo! JAPANとKotlin
Yahoo! JAPANとKotlin
 
FalcorJS
FalcorJSFalcorJS
FalcorJS
 
An (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to PythonAn (Inaccurate) Introduction to Python
An (Inaccurate) Introduction to Python
 
網頁程式還可以怎麼設計
網頁程式還可以怎麼設計網頁程式還可以怎麼設計
網頁程式還可以怎麼設計
 
RxSwift 시작하기
RxSwift 시작하기RxSwift 시작하기
RxSwift 시작하기
 
FRP and Bacon.js
FRP and Bacon.jsFRP and Bacon.js
FRP and Bacon.js
 

Similaire à dplyr and torrents from cpasbien

Τα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonΤα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonMoses Boudourides
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesMatt Harrison
 
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processingpa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text ProcessingRodrigo Senra
 
Top 10 php classic traps confoo
Top 10 php classic traps confooTop 10 php classic traps confoo
Top 10 php classic traps confooDamien Seguy
 
Data monsters probablistic data structures
Data monsters probablistic data structuresData monsters probablistic data structures
Data monsters probablistic data structuresGreenM
 
Introdução ao Perl 6
Introdução ao Perl 6Introdução ao Perl 6
Introdução ao Perl 6garux
 
Top 10 pieges php afup limoges
Top 10 pieges php   afup limogesTop 10 pieges php   afup limoges
Top 10 pieges php afup limogesDamien Seguy
 
Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of RubyTom Crinson
 
Oceans 2019 tutorial-geophysical-nav_7-updated
Oceans 2019 tutorial-geophysical-nav_7-updatedOceans 2019 tutorial-geophysical-nav_7-updated
Oceans 2019 tutorial-geophysical-nav_7-updatedFrancisco Curado-Teixeira
 
Python for High School Programmers
Python for High School ProgrammersPython for High School Programmers
Python for High School ProgrammersSiva Arunachalam
 
Is Haskell an acceptable Perl?
Is Haskell an acceptable Perl?Is Haskell an acceptable Perl?
Is Haskell an acceptable Perl?osfameron
 
Descobrindo a linguagem Perl
Descobrindo a linguagem PerlDescobrindo a linguagem Perl
Descobrindo a linguagem Perlgarux
 
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingGE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingMuthu Vinayagam
 
A Taste of Python - Devdays Toronto 2009
A Taste of Python - Devdays Toronto 2009A Taste of Python - Devdays Toronto 2009
A Taste of Python - Devdays Toronto 2009Jordan Baker
 
An Elephant of a Different Colour: Hack
An Elephant of a Different Colour: HackAn Elephant of a Different Colour: Hack
An Elephant of a Different Colour: HackVic Metcalfe
 
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)James Titcumb
 

Similaire à dplyr and torrents from cpasbien (20)

dplyr
dplyrdplyr
dplyr
 
Τα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonΤα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την Python
 
Python 1
Python 1Python 1
Python 1
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
 
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processingpa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processing
 
Top 10 php classic traps confoo
Top 10 php classic traps confooTop 10 php classic traps confoo
Top 10 php classic traps confoo
 
Data monsters probablistic data structures
Data monsters probablistic data structuresData monsters probablistic data structures
Data monsters probablistic data structures
 
Introdução ao Perl 6
Introdução ao Perl 6Introdução ao Perl 6
Introdução ao Perl 6
 
Perl 6 by example
Perl 6 by examplePerl 6 by example
Perl 6 by example
 
Top 10 pieges php afup limoges
Top 10 pieges php   afup limogesTop 10 pieges php   afup limoges
Top 10 pieges php afup limoges
 
Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of Ruby
 
Oceans 2019 tutorial-geophysical-nav_7-updated
Oceans 2019 tutorial-geophysical-nav_7-updatedOceans 2019 tutorial-geophysical-nav_7-updated
Oceans 2019 tutorial-geophysical-nav_7-updated
 
Python for High School Programmers
Python for High School ProgrammersPython for High School Programmers
Python for High School Programmers
 
Is Haskell an acceptable Perl?
Is Haskell an acceptable Perl?Is Haskell an acceptable Perl?
Is Haskell an acceptable Perl?
 
Descobrindo a linguagem Perl
Descobrindo a linguagem PerlDescobrindo a linguagem Perl
Descobrindo a linguagem Perl
 
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingGE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python Programming
 
A Taste of Python - Devdays Toronto 2009
A Taste of Python - Devdays Toronto 2009A Taste of Python - Devdays Toronto 2009
A Taste of Python - Devdays Toronto 2009
 
An Elephant of a Different Colour: Hack
An Elephant of a Different Colour: HackAn Elephant of a Different Colour: Hack
An Elephant of a Different Colour: Hack
 
Go &lt;-> Ruby
Go &lt;-> RubyGo &lt;-> Ruby
Go &lt;-> Ruby
 
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)
Dip Your Toes in the Sea of Security (PHP MiNDS January Meetup 2016)
 

Plus de Romain Francois (19)

R/C++
R/C++R/C++
R/C++
 
user2015 keynote talk
user2015 keynote talkuser2015 keynote talk
user2015 keynote talk
 
SevillaR meetup: dplyr and magrittr
SevillaR meetup: dplyr and magrittrSevillaR meetup: dplyr and magrittr
SevillaR meetup: dplyr and magrittr
 
Data manipulation with dplyr
Data manipulation with dplyrData manipulation with dplyr
Data manipulation with dplyr
 
R/C++ talk at earl 2014
R/C++ talk at earl 2014R/C++ talk at earl 2014
R/C++ talk at earl 2014
 
Rcpp11 genentech
Rcpp11 genentechRcpp11 genentech
Rcpp11 genentech
 
Rcpp11 useR2014
Rcpp11 useR2014Rcpp11 useR2014
Rcpp11 useR2014
 
Rcpp11
Rcpp11Rcpp11
Rcpp11
 
R and C++
R and C++R and C++
R and C++
 
R and cpp
R and cppR and cpp
R and cpp
 
Rcpp attributes
Rcpp attributesRcpp attributes
Rcpp attributes
 
Rcpp is-ready
Rcpp is-readyRcpp is-ready
Rcpp is-ready
 
Rcpp
RcppRcpp
Rcpp
 
Integrating R with C++: Rcpp, RInside and RProtoBuf
Integrating R with C++: Rcpp, RInside and RProtoBufIntegrating R with C++: Rcpp, RInside and RProtoBuf
Integrating R with C++: Rcpp, RInside and RProtoBuf
 
Object Oriented Design(s) in R
Object Oriented Design(s) in RObject Oriented Design(s) in R
Object Oriented Design(s) in R
 
Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Rcpp: Seemless R and C++
Rcpp: Seemless R and C++
 
RProtoBuf: protocol buffers for R
RProtoBuf: protocol buffers for RRProtoBuf: protocol buffers for R
RProtoBuf: protocol buffers for R
 
Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Rcpp: Seemless R and C++
Rcpp: Seemless R and C++
 
Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Rcpp: Seemless R and C++
Rcpp: Seemless R and C++
 

Dernier

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Dernier (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

dplyr and torrents from cpasbien

  • 2.
  • 3.
  • 4. ... $ wc -l R/*.R | tail -n1 3576 total $ wc -l src/*.cpp | tail -n1 4908 total $ wc -l **/*.h | tail -n1 8908 total
  • 8. verbe( sujet, complement ) sujet %>% verbe( complement )
  • 9.
  • 10. enjoy(cool(bake(shape(beat(append(bowl(rep("flour", 2), "yeast", "water", "milk", "oil"), "flour", until = "soft"), duration = "3mins"), as = "balls", style = "slightly-flat"), degrees = 200, duration = "15mins"), duration = "5mins")) bowl(rep("flour", 2), "yeast", "water", "milk", "oil") %>% append("flour", until = "soft") %>%
 beat(duration = "3mins") %>%
 shape(as = "balls", style = "slightly-flat") %>%
 bake(degrees = 200, duration = "15mins") %>%
 cool(buns, duration = "5mins") %>% enjoy()
  • 12. filter x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 x y purple 2 purple 3 purple 6 data %>% filter( x == "purple" )
  • 13. mutate x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 data %>% mutate( y = y*2, z = nchar(x) ) x y z purple 4 6 purple 6 6 red 8 3 red 10 3 purple 12 6 yellow 14 6 yellow 16 6
  • 14. select x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 data %>% select( x ) x purple purple red red purple yellow yellow
  • 15. arrange x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 data %>% arrange( desc(x) ) x y yellow 8 yellow 7 purple 6 red 5 red 4 purple 3 purple 2
  • 16. group_by x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 x y purple 2 purple 3 purple 6 data %>% group_by( x ) x y red 4 red 5 x y yellow 7 yellow 8
  • 17. summarise x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 summarise( data, z = min(y) ) z 2
  • 18. group_by + summarise x y purple 2 purple 3 red 4 red 5 purple 6 yellow 7 yellow 8 x y purple 2 purple 3 purple 6 data %>% group_by( x )%>% summarise( z = max(y) ) x y red 4 red 5 x y yellow 7 yellow 8 x z purple 6 red 5 yellow 8
  • 19.
  • 20. Mise en garde : comme son nom l'indique ...
  • 21. install_github( "romainfrancois/cpasbien" ) library("cpasbien") movies <- get_all_movies( pages = 1:20 ) episodes <- get_all_episodes( pages = 1:20 )
  • 22. > glimpse( movies ) Observations: 600 Variables: 11 $ type <chr> "policiers-thrillers", "policiers-thrillers", "policiers-thr... $ title <chr> "Oppression", "Oppression", "Oppression", "Oppression", "Ret... $ year <chr> "2016", "2016", "2016", "2016", "2016", "2016", "2016", "201... $ lang <chr> "french", "french", "french", "french", "french", "french", ... $ quality <chr> "dvdrip", "dvdrip-x264", "bluray-1080p", "bluray-720p", "dvd... $ size <dbl> 710, 345, 7885, 4506, 701, 632, 696, 701, 1434, 4710, 1434, ... $ up <dbl> 2928, 285, 223, 330, 5541, 522, 2329, 8362, 4835, 1157, 261,... $ down <dbl> 188, 18, 62, 54, 236, 17, 90, 400, 452, 159, 27, 29, 126, 66... $ torrent <chr> "http://www.cpasbien.cm/telechargement/oppression-french-dvd... $ poster <chr> "http://www.cpasbien.cm/_pictures/oppression-french-dvdrip-2... $ href <chr> "http://www.cpasbien.cm/dl-torrent/films/policiers-thrillers... > glimpse( episodes ) Observations: 569 Variables: 11 $ show <chr> "NCIS New Orleans ", "Hawaii 5-0 (2010) ", "Van Helsing ", "... $ season <dbl> 2, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 27, 27, 1, 2, 4, 1, 3, 3... $ episode <dbl> 17, 1, 2, 12, 11, 10, 2, 6, 5, 1, 4, 2, 3, 2, 1, 2, 1, 1, 1,... $ lang <chr> "french", "vostfr", "vostfr", "french", "french", "french", ... $ quality <chr> "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdtv", "hdt... $ size <dbl> 351, 367, 356, 344, 348, 336, 230, 346, 346, 368, 347, 347, ... $ up <dbl> 131, 204, 717, 1143, 1081, 1222, 235, 700, 658, 295, 648, 38... $ down <dbl> 22, 20, 45, 144, 132, 154, 14, 49, 61, 20, 48, 18, 4, 5, 32,... $ torrent <chr> "http://www.cpasbien.cm/telechargement/l-m-n/ncis-new-orlean... $ poster <chr> "http://www.cpasbien.cm/_pictures/l-m-n/ncis-new-orleans-s02... $ href <chr> "http://www.cpasbien.cm/dl-torrent/series/l-m-n/ncis-new-orl...
  • 23. Les comédies les plus téléchargées en ce moment en qualité dvdrip
  • 24. Les comédies les plus téléchargées en ce moment en qualité dvdrip movies %>% filter( grepl( "comedies", type ), quality == "dvdrip" ) %>% arrange( desc(down) )
  • 25. Les films d'animation en meilleure qualité possible (mais pas dvdscr) en français
  • 26. movies %>% filter( grepl("animation", type), lang == "french", quality != "dvdscr" ) %>% select(-type, -lang) %>% group_by(title) %>% filter(size == max(size))
  • 27. Le dernier episode disponible de chaque série en VO
  • 28. episodes %>% filter( lang == "vostfr" ) %>% group_by( show ) %>% filter( season == max(season) ) %>% filter( episode == max(episode) ) %>% arrange(desc(up)) Le dernier episode disponible de chaque série en VO
  • 29. episodes %>% filter( lang == "vostfr" ) %>% group_by( show ) %>% filter( season == max(season) ) %>% filter( episode == max(episode) ) %>% filter( episode == 1 ) %>% arrange( desc(up) ) ... les séries d'automne ...