GetDataFrame: Subset of the movie data set

Description Usage Arguments Value Examples

Description

This function creates a subset (of random rows) of the IMDB movie data frame. Given a student id, this function will always return the same subset.

Usage

1
  GetDataFrame(student_id)

Arguments

student_id,

a student id, i.e. b1234567

Value

A data frame with a random numer of rows

Examples

1
2
3
4
5
6
7
8
##Given the same student id
##the same data set is returned
d1 = GetDataFrame("b1234567")
d2 = GetDataFrame("b1234567")
identical(d1, d2)
##Different ids get different data
d3 = GetDataFrame("b1234568")
identical(d1, d3)

mas1343 documentation built on May 2, 2019, 5 p.m.