Skip to main content
HomeRIntroduction to Writing Functions in R

Introduction to Writing Functions in R

Take your R skills up a notch by learning to write efficient, reusable functions.

Start Course for Free
4 Horas14 Videos52 Exercises
42.291 LearnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Descrição do Curso

Being able to write your own functions makes your analyses more readable, with fewer errors, and more reusable from project to project. Function writing will increase your productivity more than any other skill! In this course you'll learn the basics of function writing, focusing on the arguments going into the function and the return values. You'll be writing useful data science functions, and using real-world data on Wyoming tourism, stock price/earnings ratios, and grain yields.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.

Nas seguintes faixas

Certificação disponível

Cientista de dados associado em R

Ir para a trilha

Desenvolvedor R

Ir para a trilha

Programação R

Ir para a trilha
  1. 1

    How to Write a Function

    Livre

    Learn why writing your own functions is useful, how to convert a script into a function, and what order you should include the arguments.

    Reproduzir Capítulo Agora
    Why you should use functions
    50 xp
    Calling functions
    100 xp
    The benefits of writing functions
    50 xp
    Converting scripts into functions
    50 xp
    Converting a script to a function
    100 xp
    Your first function: tossing a coin
    100 xp
    Inputs to functions
    100 xp
    Multiple inputs to functions
    100 xp
    Y kant I reed ur code?
    50 xp
    Data or detail?
    100 xp
    Renaming GLM
    100 xp
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

Nas seguintes faixas

Certificação disponível

Cientista de dados associado em R

Ir para a trilha

Desenvolvedor R

Ir para a trilha

Programação R

Ir para a trilha

Datasets

Snake River visitsStandard & Poor 500 price/earnings ratiosNASS corn yieldsNASS wheat yieldsNASS barley yields

Collaborators

Collaborator's avatar
Marianna Lamnina
Richie Cotton HeadshotRichie Cotton

Data Evangelist at DataCamp

Veja Mais

What do other learners have to say?

Join over 13 million learners and start Introduction to Writing Functions in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.