# Subsetting single columns:
iris_dataset[, "Species"]
# Subsetting single column to vector:
iris_dataset$Species
iris_dataset[, "Species"]
# Subsetting a single cell in tabular data:
iris_dataset[[1,2]]
#Subsetting a variable into a vector.
iris_dataset$Species
Run the code above in your browser using DataLab