Referenced from lesson Choosing Your Dataset
Write helper functions for your dataset, which you can use to define subsets.
Directions: Define a function called , which consumes a Row of the table and produces .
Contract and Purpose Statement |
Every contract has three parts…
# _::Row->Boolean
# _______
Examples |
Write some examples, then circle and label what changes…
examples:
___ (__)is _
___ (__)is _
end
Definition |
Write the definition, giving variable names to all your input values…
fun _(_):
___
end
Directions: Define a function called , which consumes a Row of the table and produces .
Contract and Purpose Statement |
Every contract has three parts…
# _::Row->Boolean
# _______
Examples |
Write some examples, then circle and label what changes…
examples:
___ (__)is _
___ (__)is _
end
Definition |
Write the definition, giving variable names to all your input values…
fun _(_):
___
end
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap:Data Science by Emmanuel Schanzer, Nancy Pfenning, Emma Youndtsmith, Jennifer Poole, Shriram Krishnamurthi, Joe Politz, Ben Lerner, Flannery Denny, and Dorai Sitaram with help from Eric Allatta and Joy Straub is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.