HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to RVariablesData TypesOperatorsCharacters (character)VectorsConditions (if / else)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables & Types
🔢 Numbers & Math
✍️ Character
📚 Vector
🔀 Condition & Loop
🧩 Function
R›REFERENCE

R — Command Reference

R's most used commands — each with an explanation, working example, and real-world usage. The language of statistics, data analysis, and visualization.

7 categories · 15 commands

🖥️

Output

Printing to the screen and string concatenation.

cat()paste0() / paste()
2 commands →
📦

Variables & Types

Assignment and type conversion.

<- (assignment)as.numeric() / as.integer()
2 commands →
🔢

Numbers & Math

Operators and mathematical functions.

Math operatorssqrt() / abs() / round()
2 commands →
✍️

Character

Length, casing, searching, and replacing.

nchar() / toupper()grepl() / gsub()
2 commands →
📚

Vector

R's core data structure: 1-indexed vectors.

c() (vector)sum() / mean()
2 commands →
🔀

Condition & Loop

if/else, for, and while.

if / elseforwhile
3 commands →
🧩

Function

Definition and return with function.

functionSingle-line function
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code