R Built-in Functions

KyraThompson's avatar
Published Oct 7, 2022
Contribute to Docs

R has built-in functions that can perform a variety of tasks. Some of the common ones are listed below:

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn how to code and clean and manipulate data for analysis and visualization with the R programming language.
    • Beginner Friendly.
      14 hours

Built-in Functions

getwd()
Returns the current working directory.
print()
Prints out the specified argument.
setwd()
Sets the current working directory to the file path specified.
str()
Displays the internal structure of a data frame.

All contributors

Contribute to Docs

Learn R on Codecademy

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn how to code and clean and manipulate data for analysis and visualization with the R programming language.
    • Beginner Friendly.
      14 hours