Math Problem Statement

Which of the following code blocks can be used to summarize the data (finding the mean of the columns PetalLength and PetalWidth), similar to the one given below.

lapply(irisdata[, 3:4], mean)

sapply(irisdata[, 3:4], 2, mean)

apply(irisdata[, 3:4], 2, mean)

apply(irisdata[, 3:4], 1, mean)

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

R programming
Data summarization

Formulas

-

Theorems

-

Suitable Grade Level

Professional