// Numbas version: finer_feedback_settings {"name": "Question 15 what type of variable", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Question 15 what type of variable", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
a) To check this use the command 'is.data.frame(m1)'
\nb) To check this use the commands 'is.vector(m2)' to show m2 is a vector and then 'is.logical(m2)' to show it is logical.
", "rulesets": {}, "parts": [{"distractors": ["", "", "", ""], "prompt": "What type of variable is m1?
", "matrix": [0, 0, 0, "1"], "shuffleChoices": false, "scripts": {}, "choices": ["A vector of doubles
", "A vector of Logical
", "A vector of string
", "A dataframe
"], "displayType": "radiogroup", "maxMarks": "1", "marks": 0, "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"distractors": ["", "", "", ""], "prompt": "What type of variable is m2?
", "matrix": [0, "1", 0, 0], "shuffleChoices": false, "scripts": {}, "choices": ["A vector of doubles
", "A vector of Logicals
", "A vector of string
", "A data frame
"], "displayType": "radiogroup", "maxMarks": "1", "marks": 0, "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}], "statement": "> m1 = movies[movies$Budget > 10000,]", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}]}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}
> m2 = movies$Budget > 10000