Exploring Data in R | Useful R Functions to Explore Data in RStudio
Animal Sciences Animal Sciences
4.69K subscribers
1,652 views
0

 Published On Apr 13, 2023

This tutorial provides some useful R functions to explore data. There are various functions for exploratory data analysis in R. Exploring data is the first step before analyzing it in R.
read.csv function is used to load a csv file in R
dim function is used to get the dimensions of data set
head function in R is used to get observations in first 6 rows of data
tail function in R is used to get observations in last 6 rows of data
str function in R is used to get the structure of data
names function in R is used to get the names of columns of a data set
View function in R is used to View data like excel spread sheet
$ symbol in R is used to select a column within a data set
class function is used to know the category or type of a variable
unique function in R is used to get all the possible values within a variable
as.factor function in R is used to change the category of a variable to a factor variable
summary function in R is used to get summary of data like mean, median, minimum value and maximum values etc.
describe function in psych package can be used to get summary of data
hist function in r is used to plot a histogram in R

R script / code used in this tutorial
https://drive.google.com/file/d/1lNoQ...

Sheep data used in this video
https://drive.google.com/file/d/1oPKU...

Export Data to a Text .txt File From R
   • Export Data to a Text .txt File From ...  

How to Export Data From R to a CSV File
   • How to Export Data From R to a CSV Fi...  

How to Create Data Frames in R
   • How to Create Data Frames in R | How ...  

To learn basics of R Programming
   • Basics of R Programing  

#exploringdatainR #datainR #datascience #rprogramming

show more

Share/Embed