Creating a sliding window with the slider R package to quantify the level of drought (CC239)

  Рет қаралды 8,902

Riffomonas Project

Riffomonas Project

Күн бұрын

Пікірлер: 15
@thanishahamed1212
@thanishahamed1212 2 жыл бұрын
TNice tutorials is one of the best tutorials of ANYTNice tutorialNG that I've ever watched in my life! Thank you so much!
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks Thanish!
@TheManuforest
@TheManuforest 2 жыл бұрын
That's great! very useful in many situations. Thanks for sharing :)
@Riffomonas
@Riffomonas 2 жыл бұрын
Wonderful- glad you enjoyed the episode!
@leonelemiliolereboursnadal6966
@leonelemiliolereboursnadal6966 2 жыл бұрын
You are the best!
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks for watching, Leonel!
@Enviromath
@Enviromath 2 жыл бұрын
All around great video, and your teaching is clear and concise which makes it easy to understand. I got into R about 2 months ago and I have been practicing filtering and plotting climate data nonstop and these video are incredibly helpful. I do have a question and I apologize if it is an obvious answer but can you explain to me the use of "~" and "." together? I know "~" is used when comparing two variables to create a linear regression for example (I think), but in your video when you have "slide_dbl(prcp, ~sum(.x), .before = 29, .complete = TRUE)" and I am not quite sure I understand exactly what those operators do. I haven't come across the need to use them very often which but they seem very helpful. Thank you very much for a another helpful video
@Riffomonas
@Riffomonas 2 жыл бұрын
Hey Pierre - thanks for watching! The ~ is formula notation like you said in regression but it’s often needed with map like functions like slide_dbl when you are passing variables to the function. I probably don’t need it in this case if I also left out the (.x) part. The .x is the name of the first argument to slide_dbl. If you see ~ . In a regression that would probably mean explain whatever is on the left by everything in the data frame. The . Can mean a few different things
@Enviromath
@Enviromath 2 жыл бұрын
@@Riffomonas Hi again. I really appreciate your quick response. I managed to wrap my head around how to use the ~ and .x in those types of functions thanks to what you said. Looking forward to the next video!
@benjaminbulle9199
@benjaminbulle9199 2 жыл бұрын
Hello, thanks for yours so helpy videos! I actualy works in the same way but i want to show the évolution of time between 2 rain in order to see if this time is more longer year after year. Have you a simple way to di this? Thanks a lot
@Riffomonas
@Riffomonas 2 жыл бұрын
I like this question! I think I’d start by removing all the zero precipitation days and then create a lagged column of dates and then calculate the difference in days. Then you could extract they year/month from the dates and aggregate and summarize the data from there
@omarabdelrahman4454
@omarabdelrahman4454 Жыл бұрын
The Sahara is under a drought, but on a geological time scale.
@shumailasikander9009
@shumailasikander9009 2 жыл бұрын
nice
@claudmoussa4543
@claudmoussa4543 2 жыл бұрын
help a upcoming artist out I don’t have a problem paying u for your ti
@Riffomonas
@Riffomonas 2 жыл бұрын
Thank you so much!
The magrittr and base R pipe: what's the difference? (CC241)
25:47
Riffomonas Project
Рет қаралды 5 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 6 МЛН
Using paths in R and why you shouldn't be using setwd (CC179)
15:14
Riffomonas Project
Рет қаралды 4,5 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 140 М.
Sliding window aggregation for rents in San Francisco
15:34
Julia Silge
Рет қаралды 3,2 М.
Hadley Wickham - Understanding R with lobstr
38:35
Lander Analytics
Рет қаралды 10 М.
Using dplyr's group_by function with and without summarize (CC233)
25:54
Riffomonas Project
Рет қаралды 4,9 М.
Indexing and looping over lists in R, a tutorial (CC174)
19:59
Riffomonas Project
Рет қаралды 5 М.
Using renv to track the version of your packages in R (CC229)
20:33
Riffomonas Project
Рет қаралды 7 М.