This is for those who know about dataframes in R.If you want to do something either rowwise or column wise in dataset(or dataframe) then you can use functions like apply,lapply and sapply.

Say We are given a dataset or dataframe which has three columns like age,weight and height and let’s say you have 1000 rows and I ask you how would you find the mean age,mean weight and mean height for all these 1000 rows in one line of code,then you can simply use these functions .

Wants to know how they work?? Have a look on the video.Happy learning !!

LEAVE A REPLY

Please enter your comment!
Please enter your name here