Permalink
Browse files

Merge pull request #59 from DonSchado/master

R questions
  • Loading branch information...
2 parents dcbdcd9 + 4611e00 commit c89a594473b82306e33da0d651b60b02eaec6aed @dhoelzgen dhoelzgen committed Apr 29, 2012
Showing with 48 additions and 0 deletions.
  1. +16 −0 questions/r_correlation.json
  2. +16 −0 questions/r_variance.json
  3. +16 −0 questions/r_vector.json
@@ -0,0 +1,16 @@
+{ "question" : {
+ "category": "programming",
+ "sub_category": "data",
+ "nerd_level": 2,
+ "text":"How can you compute (in R) the correlation coefficient of the vectors A and B?",
+ "a1": "corr(A,B);",
+ "a2": "cor(A+B)",
+ "a3": "cor(A,B)",
+ "a4": "cor(A:B)",
+ "right_answer":"a3",
+ "created_at": "2012-04-29",
+ "creator": "DonSchado",
+ "creator_twitter": "donschado",
+ "creator_github": "donschado"
+ }
+}
View
@@ -0,0 +1,16 @@
+{ "question" : {
+ "category": "programming",
+ "sub_category": "data",
+ "nerd_level": 3,
+ "text":"Do you speak R? Given you have an vector Y. What's the result of 'var(Y)'?",
+ "a1": "Deletes Y and set it as empty variable",
+ "a2": "Calculates sample variance",
+ "a3": "Y is in global scope",
+ "a4": "There is no var function in R",
+ "right_answer":"a2",
+ "created_at": "2012-04-29",
+ "creator": "DonSchado",
+ "creator_twitter": "donschado",
+ "creator_github": "donschado"
+ }
+}
View
@@ -0,0 +1,16 @@
+{ "question" : {
+ "category": "programming",
+ "sub_category": "data",
+ "nerd_level": 1,
+ "text":"Do you speak R? What's the result of 'x <- c(1,2,3)'?",
+ "a1": "nothing... the syntax is not valid",
+ "a2": "three variables from x1 to x3",
+ "a3": "x = 6 (the sum of the digits)",
+ "a4": "creates a vector x",
+ "right_answer":"a4",
+ "created_at": "2012-04-29",
+ "creator": "DonSchado",
+ "creator_twitter": "donschado",
+ "creator_github": "donschado"
+ }
+}

0 comments on commit c89a594

Please sign in to comment.