Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started