R Language - How to Use Iris Dataset

avatar

In this post, we take a look at how to use Iris datasets in R language. Previously I covered one post related to the RStudio and the R Language. These two tools are pretty useful for those who want to use r language for the data analysis and other data operations.

Today I want to cover one of the popular dataset that you would be using with the r language. This is one dataset that is being used to teach you various types of the stats operations in r language. Especially there are some of the topics that make use of this dataset.

If you have not yet installed the R language and the RStudio, then you should consider making use of the RStudio Install on Windows. This would help you understand how to use the RStudio for running the code and also getting the ouput of your choice.

I have created a video to give you an overview on how to use the Iris dataset for the data science work. You should give this one a try.


So if you choose to follow the video then that would be lot easier and quicker to understand some of the basics. For those who prefer the text instructions can take a look at the below tutorial.

Loading the R dataset

R language comes up with plenty of built in datasets that you can use and load your dataset into. You can take a look at the Iris.

data("iris")

Run this code in R command prompt or the Rstudio console.

RS1.png

View the data

If you are interested in seeing the sample of the Iris data use the following command. You can then get the output in the console.

iris

As you can see more than 150 sets of the samples are now visible in the output.
RS2.png

You can do a lot more now with variety of commands. You can even plot the output into some specific data like Edgar Anderson's Iris Data. Check the below image and test out it's commands.

carbon.png

This kind of sums up the short tutorial. I wanted to cover more but this is as much as I can write for now. I hope to cover some more details but I would also need some more examples to be covered and specific queries under this to write more. Hopefully this much is more than enough.

Next in the line tutorial is the torch package. This package would be used for the machine learning and also by the deep learning users. So I wish to cover some of the basics using the same. Don't expect to learn overnight as that package would be taking some of your time to learn as well.

I hope that you are enjoying some of my R language and data science tutorials. I hope that some of my coverage on this topic would be helpful to you.

If you happen to like this content, do give me feedback over there and that would help me improve my efforts in near future.



0
0
0.000
5 comments
avatar

That is a classic for a r introduction lol! Iris dataset it is the one used in my training
!1UP


0
0
0.000
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000