Video není dostupné.
Omlouváme se.
A tutorial for writing functions in R (CC177)
Komentáře • 43
Další v pořadí
Automatické přehrávání
Changing the row and column names of matrices with tools from base R (CC176)Riffomonas Project
zhlédnutí 1,6K
Three approaches to organize your R project (CC178)Riffomonas Project
zhlédnutí 8K
Writing Your Own Functions in R: Introductionweecology
zhlédnutí 44K
Co divného umíš ty? 😝Tary
zhlédnutí 462K
Joker can't swim!#joker #shortsUntitled Joker
zhlédnutí 38M
Insane Coffee trick EXPOSED 😱☕️ #shortsWian
zhlédnutí 7M
Ženu pronásleduje vrah #horrorshorts #shorthorrorstory #shorthorrorstoriesPrézovy noční můry
zhlédnutí 227K
What's the difference between a matrix, data frame, and tibble in R? (CC180)Riffomonas Project
zhlédnutí 7K
The 3 Laws of Writing Readable CodeKantan Coding
zhlédnutí 477K
Alternative to for loops in R with purrr's map, map_dbl, and map_dfr functions (CC043)Riffomonas Project
zhlédnutí 9K
S3 Objects and Functions in RJosiah Parry
zhlédnutí 3,4K
How to Create Custom Functions in RBecoming a Data Scientist
zhlédnutí 5K
Cleaning and manipulating data with the tidyverse: dplyr, readr, and stringr in action (CC121)Riffomonas Project
zhlédnutí 16K
TidyTuesday: How to Create Functions In RAndrew Couch
zhlédnutí 7K
Write your own R functionsEquitable Equations
zhlédnutí 3,1K
Loops using R programmingR Programming 101
zhlédnutí 12K
Lee a jeho progress 👏🦁👏 JanKanurek.cz 🫡 #thisiskurñalife #zabilcz #freerunning #trampolineJan Kanurek
zhlédnutí 1,3M
My Bed On Different Days #ShortsLuke Davidson
zhlédnutí 17M
Jak Mluvit Jako SigmaTaky Bige
zhlédnutí 536K
Replacing a valve on a full water tank! 🫣💦 - 🎥 the_ladyplumberUNILAD
zhlédnutí 143M
Harley Quinn's plan for revenge!!!#Harley Quinn #jokerHarley Quinn with the Joker
zhlédnutí 31M
STEP CHALLENGE🦶Celine & Michiel
zhlédnutí 9M
Running With Bigger And Bigger FeastablesMrBeast
zhlédnutí 105M
Here’s why first responders are calling her a hero.KSDK News
zhlédnutí 57M
I've been waiting a long time for tutorials on writing more complex functions in R, hope to see more towards useful and reproducible functional programming in R. Thanks a million dear Pat ;)
Sorry. I really don’t know what you’re looking for. I can’t make up a more complex function out of thin air 😂 complex functions are relatively simple ones with more stuff going on
@@Riffomonas I would also like to see some functions where one can use variable names in arguments to create box or hist plots on all numeric variables or any such examples where {}, quo, enquo comes into the play.
or converting datatypes of date type looking columns by using lubridate & just giving the column names to the function.
I am sure there are many such scenarios when we are working with the real life data and we do not want to repeat ourself but use same code on multiple variable names. For example - custom univariate analysis by data types may be.
Hey, Pat!
I always love the R content but I do also want to say that I'm really impressed with the strides your video editing has made since you began!
Great work :)
Lol - thanks!
I most likely "late" in commenting on the video since this was uploaded in January of this year; but I have been struggling with creating functions. This is very helpful as it provides step-by-step, the elements of the function and how to create it as well as a giving a very good example at the end on creating more "complex" function!
Wonderful- glad it was helpful! 🤓
I've been struggling with microbiome analysis in R for my PhD for a few months now. Luckily, I've found your tutorials on R a few weeks ago and since then, my understanding of this language grew a lot! Pat, you are awesome! 💥💥💥
Awwww, you’re too kind! Thanks for tuning in
Thank you for all your videos. As a student starting out in R, I’ve learnt so much from you.
Great to see that you’ve resumed making videos with the latest one on writing your own packages.
Wonderful! Thanks for watching
Incredible tutorial!!! So clear, concise and helpful! Thank you so much for creating this! Subscribed. ✨
Thanks AC!
Simple and easy…. You are gifted with what you do… thanks so much for sharing
My pleasure! Thanks for watching 🤓
Thanks Pat. I always pick up something new from your videos, like setting default values in this case - who knew?
Awesome 🤩 I wanted to show how to do defaults but couldn’t think of a natural way to do it. Glad you enjoyed it!
awesome function tutorial💌
Thanks a lot for this video. Trying it out today
Wonderful!
Thank you for this great video!
My pleasure!
Best explanation!
Thanks Pat! A very useful introduction to functions.
LOL 'only place in the world that uses Farenheit'. Along with MM-DD-YYYY which is a personal point of pain :). As with much of these things - it bleeds over into Canada quite often.
We’ll no one uses the correct format of YYYY-MM-DD 😂
@@Riffomonas Ah! Actually I do. I shifted over to this in the last year (require conscious effort) as we use it at work and I saw great twitter advise on the benefits of using it for naming files (such as manuscript versions). Works great with paste0 outputs using Sys.Date(). :)
Thank you
My pleasure!
God I am such a scrub at making functions. this vid def helped! thanks :)
Wonderful! I’m glad this episode was helpful
Do you do ML? Would love to see vids on how to present ML findings in academia. I find that ML is difficult to explain to non ML users, so good practices with visualizations, etc would be helpful for communication. Regression is nice because it has coefficients, but beyond regression it gets more difficult to explain, I think.
Here’s a series using a package we created Machine Learning
czcams.com/play/PLmNrK_nkqBpKpzb9-vI4V7SdXC-jXEcmg.html
f in the video stands both for fahrenheit and freezing.What is freezing? how do you measure it?
In Fahrenheit, freezing is -32F/0C
I want an easy way of manipulating netcdf files and displaying it spatially with maps on r
Thanks for watching Samuel! I hope this helped you learn more about working with netcdf files
sir can i request for videos you to create?
I have an experience when the code works but the function , as I wrapped the code into a function, failed ... did nothing. any suggestions.
Are you maybe missing a return statement ?
@@Riffomonas I think so. Thank you for reminding me
Can we use case_when argument for missing value when creating a function in R ?
I am attempting to write a function but getting error for case_when argument and a variable passed in that argument. Can you help with this ?
Code written :
setNR %
distinct(USUBJID, TRT01P.x, TRT01PN.x, test, .keep_all = TRUE )
}
setNR(df=adcm1, df1=adslcm, v1=FUACTRT, values=NA)
Error observed :
Error in `mutate()`:
! Problem while computing `test = case_when(is.na(v1) ~ "Not Reported", TRUE ~ v1)`.
Caused by error:
! object 'FUACTRT' not found
Run `rlang::last_error()` to see where the error occurred.
The problem appears to be that your data frame doesn't have a FUACTRT column