R Programming Basics

Sahana Prasad

profile
R Programming Basics
profile
3,300
120 mins

- What is R and why is it used?

- R as a programming language and environment for statistical computing and data analysis.

- Installing R and RStudio (integrated development environment for R).


Getting Started with R

- RStudio layout and features.

- Writing and executing basic R commands in the console.

- Variables, data types, and assignments.


Working with Data

- Vectors: Creating, indexing, and basic operations.

- Data types: Numeric, character, logical.

- Introduction to factors and data frames.


Control Structures

- Conditional statements: if, else if, else.

- Loops: for, while.

- Applying control structures to real-world examples.


Functions in R

- Understanding functions and their importance.

- Creating custom functions.

- Built-in functions and their usage.


Data Import and Export

- Importing data from various file formats (CSV, Excel, etc.).

- Exporting data to different formats.

- Using the `readr` and `writr` packages.


Basic Data Analysis

- Descriptive statistics: mean, median, standard deviation.

-