Curso Básico de R - Aula 3: Como Usar e Criar Funções

Want to learn more about our Complete Python Course? Click on the link below to secure your spot in the next class: https://lp.hashtagtreinamentos.com/es... CLICK AND ACCESS THE FREE AUTOMATION MINICOURSE WITH PYTHON: https://dlp.hashtagtreinamentos.com/p... ----------------------------------------------------------------------- 📁 Files Used in Video: https://dlp.hashtagtreinamentos.com/p... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/c... ----------------------------------------------------------------------- TO HIRE HASHTAG FOR YOUR COMPANY: https://www.hashtagtreinamentos.com/t... ----------------------------------------------------------------------- We have reached the third lesson of our Basic R Course! In it, you will learn in a practical and uncomplicated way how to use and create functions in R. You will see what functions are, how they work and why they are essential for writing more efficient, clean and reusable code. We will work with existing functions, such as print() and sample(), exploring their arguments and behaviors, including the use of custom probabilities with the prob parameter. I'll also show you how to access the documentation for any function in RStudio and use the args() and body() functions to understand each function in detail! Finally, you'll learn how to create your own custom functions with function() and you'll be able to solve a practical challenge in R to review all the content you've learned. If you want to truly master R and understand how to use functions to solve real problems in data science, statistics, or any analysis, this class is a must! ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click on the bell)! ► Like our video! ----------------------------------------------------------------------- Social Networks ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programação channel we teach several Python tips so that you can develop in this programming language and create your own projects and automations! ----------------------------------------------------------------------- Class Content 00:00 Introduction 00:46 What are functions in R? 02:49 How does the structure of a function work? 03:37 Discover the function arguments with args() in R 04:33 How to access the official documentation in RStudio 05:30 Practical example with the sample() function in R 06:25 Size and replace arguments in sample() 07:23 Default parameters in functions in R: how they work 07:57 Simulating dice rolls with sample() in R 09:38 Using the prob argument to create probabilities 12:53 How to add values ​​in R with the sum() function 14:22 See the internal code of a function with body() in R 15:14 How to create custom functions in R 17:30 Practical challenge: draw function in R 22:35 Conclusion #r #hashtagprogramming