0% found this document useful (0 votes)
4 views1 page

Statistical Analysis in R Programming

The document outlines basic statistical calculations for a defined dataset, including mean, mode, and median. It also includes commands to analyze the 'iris' dataset, displaying its summary and basic statistics. Additionally, it mentions reading a CSV file named '2023_rankings.csv'.

Uploaded by

ROHAN DESHPANDE
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Statistical Analysis in R Programming

The document outlines basic statistical calculations for a defined dataset, including mean, mode, and median. It also includes commands to analyze the 'iris' dataset, displaying its summary and basic statistics. Additionally, it mentions reading a CSV file named '2023_rankings.csv'.

Uploaded by

ROHAN DESHPANDE
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# Define the dataset

dataset <- c(1, 2, 3, 4, 5, 5, 6, 7, 8, 9)

# Mean
mean_value <- mean(dataset)
print(paste("Mean:", mean_value))

# Mode
mode_value <- unique(dataset)[[Link](tabulate(match(dataset, unique(dataset))))]
print(paste("Mode:", mode_value))

# Median
median_value <- median(dataset)
print(paste("Median:", median_value))

print(data(iris))
head(iris)
summary(iris)
names(iris)
min(iris$[Link])
max(iris$[Link])
mean(iris$[Link])
boxplot(iris)
f<-[Link]("2023_rankings.csv")
print(f)

You might also like