Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In R an atomic vector holds data of a single type. True or False 2. Which data structure(s) could you use to store these

1. In R an atomic vector holds data of a single type.

True or False

2. Which data structure(s) could you use to store these pieces of data in the same object?1001,TRUE,"stories".

a list

a vector

neither

3. Consider thelist.

car <- list(model = "Honda", price = 25000, color = "Blue", sold_last_week = c(3,2,5,4,1,2)) 

The code that will extract in a vector of length 2 the number of cars sold on the first and the second day of last week is

Car[[4]][2]

Car[[1]][2]

Car$sold_last_week[1:2]

Car[4][1:2]

4. The code below creates list object - family.

family <- list(husband = "John", wife = "Ana", no_children = 2, child_ages = c(3, 5)) 

Predict what thelength(family)function will return.

4

3

2

NA

or

1

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

Step: 3

blur-text-image

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

Statistical Techniques in Business and Economics

Authors: Douglas A. Lind, William G Marchal

17th edition

1259666360, 978-1259666360

More Books

Students also viewed these Mathematics questions