Wednesday 26 August 2020

summary function in r

 Summary functions produce a summary of all records in the found set  or sub summary values for records in different groups.

 Summary functions  are descriptive statistics of the data(only for numeric)

Note:

If it is categorical data then summary function will give counts of the variable(var)

Example: lp.csv

Name  Age  Marks

surya    29     98

sivi        10      23

somu     24       99

solution:

data1<-read.csv("lp.csv")

summary(data1)

summary(data1$Marks)


1 comment:

  1. You don't realize how quickly technology is changing. Data science is highly technical and is therefore in high demand. A career in data science will open up many lucrative job opportunities. So, if you have been wanting to start your career in Data Science, now is the best time to enroll in a data science program with one of the best data science training institute in noida.

    ReplyDelete

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...