Ari Lamstein

A “Pre-Training” R Survey

Recently I’ve been working with a client to help their analysts improve their proficiency with R. A major challenge in engagements like this is figuring out the needs of the analysts, as well as their general attitude to the training.

To address this I created a “Pre Training Survey” to use with my client. The results from the survey helped me shape the final curriculum. Below I share the actual survey I created in case it helps someone else:


  1. Does R ever frustrate you?
  2. Does R ever intimidate you (e.g. you think “I’ll just never get it”)?
  3. About how many hours a week do you use spend using R?
  4. What sort of things do you currently use R for (it’s OK to say “nothing”)?
  5. What sort of things would you like to use R for (it’s OK to say “nothing”)?
  6. It is important to me that the training is beneficial to you. What is one result you would like to get from this training?
  7. During the training I may get a chance to “Pair Program” with some members of your team. Pair Programming simply means working together on a problem at the same computer. During this time you would get to ask me any questions that you like. Are you interested in pair programming during the training?

Below are a series of technical questions. They are not designed to trick you. Rather, the answers will help me know where to focus my efforts during the training. 

It is perfectly fine to leave these questions blank, or to simply say “I don’t know.” Please do not use google or R to answer any of these questions.

Explain the difference between these two lines of code:

[code lang=”r”]
install.packages("ggplot2")
library(ggplot2)
[/code]

Explain the difference between these two lines of code

[code lang=”r”]
x = 1
x = "1"
[/code]

What do these commands do?

[code lang=”r”]
?print
print(1:3)
[/code]

Consider this R code:

[code lang=”r”]
x = c(1,2,3)
[/code]

What is the output of each of these commands?

[code lang=”r”]
x
x[1]
x[]
[/code]

Consider this R code:

[code]
x = c(1,2,3)
[/code]

What is the output of each of these commands?

[code lang=”r”]
x > 1
x[x>1]
[/code]

Consider this program:

[code lang=”r”]
x = c(1, 2, 3)
x = x * 2
[/code]

What is the final value of x?

What is the output of this program?

[code lang=”r”]
x = c(1, 2, 3)
for (i in x)
{
if(x[i] > 1)
{
print(x[i])
}
}

[/code]

Consider this data frame:

[code lang=”r”]
a = 1:3
b = 1:3
df = data.frame(a, b)
[/code]

What is the output of these three commands?

[code lang=”r”]
df[1,1]
df[1,]
df$a
[/code]

What does this program output to the console?

[code lang=”r”]
square = function(x)
{
x^2
}

square(10)
[/code]

Ari Lamstein

Ari Lamstein

I currently work as a Staff Data Science Engineer at a marketing analytics consultancy. I have 20 years experience developing software in areas such as data science, web development and video games. I have also worked as a technical trainer and independent consultant.

Thanks for visiting!

Sign up to stay up to date with the latest blog posts: