1. Learn
  2. /
  3. Courses
  4. /
  5. Data Manipulation with data.table in R

Exercise

Computing in j (I)

Since columns can be treated as variables inside data.table's square brackets ([ ]), you can compute on the columns directly in j.

Instructions 1/2

undefined XP
  • 1

    Using the j argument, find the median duration (the result should be a vector of length 1).

  • 2

    Now, find the median duration where end_station is "Market at 10th" for all subscribers.