
Your Success, Our Mission!
6000+ Careers Transformed.
Most real-world data does not come preloaded in R. Data is usually stored in files such as CSV or Excel, which must be imported before analysis.
Importing CSV Files
| data <- read.csv("data.csv") |
Explanation:
To check where R looks for files:
| getwd() |
To change the working directory:
| setwd("C:/Users/YourName/Documents") |
Importing Excel Files
| library(readxl) data <- read_excel("data.xlsx") |
Explanation:
Understanding Dataset Structure
| head(data) |
Explanation:
Shows the first 6 rows to quickly inspect the data.
| str(data) |
Explanation:
Displays:
| summary(data) |
Explanation:
Provides statistical summaries like:
Checking Dimensions
| dim(data) |
Explanation:
Returns number of rows and columns.
Accessing Columns
| data$age |
Explanation:
Extracts the age column for analysis.
Measures of Central Tendency
| mean(data$score) |
Explanation:
Calculates the average score.
| median(data$score) |
Explanation:
Finds the middle value of the data.
Measures of Dispersion
| sd(data$score) |
Explanation:
Calculates standard deviation, which shows data spread.
Correlation Analysis
| cor(data$age, data$score) |
Explanation:
Measures the relationship between age and score:
Basic Visualization
| plot(data$age, data$score) |
Explanation:
Creates a scatter plot to visually inspect the relationship between two variables.
Top Tutorials
CNN in Deep Learning 2026
A beginner-friendly guide to CNNs: understand deep learning essentials, create Python-based models, and explore advanced applications.
Breaking The Limits: Scaling Databases with MySQL Partitioning
Learn MySQL partitioning with examples. Improve query performance, scalability, and data management using RANGE, LIST, HASH, KEY, and composite techniques.
ML in Action: Hands-On Guide to Deploying and Serving Models
Learn model deployment and serving—from concepts to real-world architectures, tools, APIs, containers, and cloud workflows for production-ready ML.
All Courses (6)
Master's Degree (2)
Fellowship (2)
Certifications (2)