September 2015
Beginner to intermediate
608 pages
13h 43m
English
So far this chapter, we've reduced the size of our dataset by filtering both rows and columns. Often we'll want to add rows to a dataset instead, and Incanter supports this in several ways.
Firstly, we can choose whether to replace an existing column within the dataset or append an additional column to the dataset. Secondly, we can choose whether to supply the new column values to replace the existing column values directly, or whether to calculate the new values by applying a function to each row of the data.
The following chart lists our options and the corresponding Incanter function to use:
|
Replace data |
Append data | |
|---|---|---|
|
By providing a sequence |
|
|
|
By applying a function |
|
|
Read now
Unlock full access