R for Sport Scientists – Fundamentals Course: Functions

R for Sport Scientists – Fundamentals Course

Lecture 6: Functions

Sooner or later, you will stumble on a repeatable code, probably a code that can have adjustable parameters. That is when the functions come into play. Functions simplify your code (to avoid repetition), make it modular, easy to modify and spot errors, and easier to read.

This lecture will teach you how to write your functions in R. R is a functional language, and everything that happens in R is a function call (and everything that exits in R is an object – thus, functions are objects too). R language has rich features for writing, calling, and utilizing functions.

I have divided this lecture into four videos covering a wide range of functions fundamentals – from function components to writing infix functions.

As the final task of this R for Sports Scientists Fundamental course, we will expand the “guessing game” to involve additional parameters and to be written in the function form.

Ready to watch this course?
Become a member and get unlimited access to all content on our website.

Start Your Membership Today


Join Us Today And Claim 2 Bonuses

Standard Membership
$35 per month

OR

Go Annual and Get All Bonuses for FREE!

Join Us TodayAnd Instantly Save $1860

Premium Membership
$350 per year

Navigation

Course Overview

Lecture 1: Introduction

Lecture 2: Installation

Lecture 3: Vectors

Lecture 4: Subsetting

Lecture 5: Control Flow

Lecture 6: Functions

I am a physical preparation coach from Belgrade, Serbia, grew up in Pula, Croatia (which I consider my home town). I was involved in physical preparation of professional, amateur and recreational athletes of various ages in sports such as basketball, soccer, volleyball, martial arts and tennis. Read More »
free-memeber-button
free-memeber-button

Welcome to Complementary Training Community! Forums R for Sport Scientists – Fundamentals Course: Functions

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Mladen Jovanovic 5 months, 3 weeks ago.

You must be logged in to reply to this topic.