Error
There was an error loading the page.
Several questions on interrogating the mtcars
dataset built in to R.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
Feedback
From users who are members of Programming extension :
![]() |
said | Needs to be tested | 3 years, 1 month ago |
History
Christian Lawson-Perfect 1 year, 10 months ago
Published this.George Stagg 3 years, 1 month ago
Gave some feedback: Needs to be tested
George Stagg 3 years, 1 month ago
Created this.Name | Status | Author | Last Modified | |
---|---|---|---|---|
Query the built-in mtcars dataset | Needs to be tested | George Stagg | 10/05/2023 13:34 | |
Query the built-in mtcars dataset | Ready to use | Christian Lawson-Perfect | 23/11/2023 12:24 |
There are 4 other versions that do you not have access to.
Name | Type | Generated Value |
---|
num_gears | integer |
4
|
||||
disp_val | integer |
340
|
||||
num_cyl | integer |
4
|
||||
part_a_answer | string |
gears = mtcars[mtcars$gear ==
|
||||
part_b_answer | string |
displ = mtcars[mtcars$disp>300
|
||||
part_c_answer | string |
mercs = mtcars[grep('Merc', ro
|
||||
part_d_code | string |
max(mtcars$hp)
|
||||
part_e_code | string |
mean(mtcars[mtcars$cyl == 8,]$
|
||||
part_f_code | string |
as.numeric(quantile(mtcars[mtc
|
Generated value: integer
4
This variable doesn't seem to be used anywhere.
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Number entry | ||
Hasn't run yet | ||
Number entry | ||
Hasn't run yet | ||
Number entry | ||
Hasn't run yet |
This question is used in the following exam: