explorefoki.blogg.se

R studio summary
R studio summary






If you execute all the above given snippets as a single program, it generates the following output − mpg cyl disp hp

R studio summary code#

To round the output of summary function in R, add the following code to the above snippet − summary(mtcars,digits=5) The following dataframe is created − mpg cyl disp hp drat wt qsec vs am gear carb :2.5 Example 2įollowing snippet creates a dataframe − head(mtcars,20) If you execute all the above given snippets as a single program, it generates the following output − Sepal.Length Sepal.Width Petal.Length Petal.Width Species To round the output of summary function in R, add the following code to the above snippet − summary(iris,digits=2)

r studio summary r studio summary r studio summary

The following dataframe is created − Sepal.Length Sepal.Width Petal.Length Petal.Width Species To round the output of summary function in R, we can use digits argument while applying the summary function.įor example, if we have a data frame called df then to find the summary statistics with two digits in the output we can use the below given command − summary(df,digits=2) Example 1įollowing snippet creates a dataframe − head(iris,20)






R studio summary