Question: R Studio Assignment Problem 1: Try the following: class(2) class(a) # cabbages is in the datasets package so make sure to load MASS first library(MASS)

R Studio Assignment

Problem 1:

Try the following:

class(2)

class("a")

# cabbages is in the datasets package so make sure to load MASS first

library(MASS)

class(cabbages$HeadWt)

class(cabbages$Cult)

**Bold are the questions for that problem that you must answer

  • Now do sapply(cabbages, class), and note which columns hold numerical data.
  • Extract those columns into a separate data frame, perhaps named numtinting.

[Hint: cabbages[, c(2,3)] is not the correct answer, but it is, after a manner of speaking, close!]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!