Skip to content

AvichalTrivedi7/R-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📂 R-Programming Repository

This repository contains R scripts covering fundamental to advanced topics in R programming. The focus is on data manipulation, statistical calculations, and data visualization, which are essential for data science and analytics.

📌 Topics Covered

🔹 Fundamentals of R

  • Basic Operations & Assignment – Print statements, assignments, and operations in R
  • Control Structures – If-else, loops (for, while), and conditional execution
  • User-Defined Functions – Writing custom functions for reusable code

🔹 Data Structures

  • Vectors & Named Vectors – Creation, sorting, and modification
  • Matrices – Creation, indexing, matrix operations (solve, determinant, eigenvalues)
  • Arrays – 3D array creation and access
  • Lists – Creation, indexing, and operations
  • Data Frames – Creation, accessing, conditional selection, column-row operations

🔹 File Handling & Data Import/Export

  • Reading & Writing CSV Files – Handling CSVs, row names, skipping rows, setting working directories
  • Reading & Writing Excel Files – Read/write .xlsx files using writexl, readxl
  • Working with RData Files – Saving and loading .RData files

🔹 Data Manipulation

  • dplyr Package – Filtering, arranging, summarizing, renaming, pipe operators (%>%)
  • Conditional Selection & Subsetting – Extracting specific data subsets

🔹 Statistical Calculations

  • Apply Family Functionsapply(), sapply(), lapply(), tapply() for data transformation
  • Table & Summary Functions – Summarizing categorical and numerical data

🔹 Advanced Topics

  • Package Management – Installing and using R packages
  • Vectorized Operations – Arithmetic, logical, and comparison operators
  • Data Visualization – Plotting and Updating Various graphs from Datasets

🚀 Usage

To run any script, open RStudio or use the R terminal and execute:

source("filename.R")

🛠 Requirements

Ensure you have R and RStudio installed. Some scripts require additional packages like dplyr, readxl, and writexl, which can be installed using:

🎯 Purpose

This repository is designed to help students, data enthusiasts, and professionals learn and practice R programming concepts. The scripts cover:

  • Fundamental operations and data structures
  • Reading and writing different file formats (CSV, Excel, RData)
  • Data manipulation using dplyr and base R
  • Statistical calculations and apply family functions
  • Control structures and user-defined functions

Whether you're a beginner or looking to strengthen your R skills, this repository serves as a structured learning resource.

📜 MIT License

This repository is open-source and available for learning purposes. Feel free to explore, modify, and enhance the scripts!

Happy Coding! 🚀

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages