Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cases In Human Resource Management In Hospitality

Authors: Shirley Gilmore

1st Edition

0131119834, 9780131119833

More Books

Students also viewed these General Management questions

Question

Be relaxed at the hips

Answered: 1 week ago