R Programming language - R Dataset
R programming language comes with many built-in datasets which can be used for practicing and learning data analysis. These datasets can be loaded into R and manipulated using various functions and techniques available in R.
Here are some of the built-in datasets in R:
iris
: This dataset contains measurements of iris flowers. It includes four features: sepal length, sepal width, petal length, and petal width, along with the species of the iris.mtcars
: This dataset contains information on various car models, including the number of cylinders, horsepower, and miles per gallon (MPG).AirPassengers
: This dataset contains the monthly total number of airline passengers from 1949 to 1960.Titanic
: This dataset contains information on the passengers of the Titanic, including their age, gender, passenger class, and survival status.ChickWeight
: This dataset contains information on the weight of chickens at various ages and under different diet conditions.diamonds
: This dataset contains information on the prices and attributes of over 50,000 diamonds.CO2
: This dataset contains measurements of carbon dioxide uptake in grass plants under different environmental conditions.PlantGrowth
: This dataset contains the results of an experiment on the growth of plants under different conditions.
To load a dataset in R, you can use the data()
function. For example, to load the iris
dataset, you can use the following command:
data(iris)
This will load the iris
dataset into memory, and you can start working with it using various R functions and techniques.