R for Sport Scientists – Fundamentals Course: Functions - Complementary Training
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.

R Course

Ready to watch this course?
Take advantage of our promotional offer

Gain Necessary R Skills
and Advance Your Career

Take this CoursePromo Discount: 30% OFF

OR

Go Annual and Get All Bonuses for FREE!

Join Us TodayAnd Instantly Save $2140

Premium Membership

regular price $350

NOW $175/ first year

Navigation

Course Overview

Lecture 1: Introduction

Lecture 2: Installation

Lecture 3: Vectors

Lecture 4: Subsetting

Lecture 5: Control Flow

Lecture 6: Functions

mm
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

This topic contains 1 reply, has 2 voices, and was last updated by  Diogo Jose 7 months, 1 week ago.

Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.