Skip to content

Commit 3c57a01

Browse files
Update source/wrangling.md
Co-authored-by: Joel Ostblom <[email protected]>
1 parent f2ba0fc commit 3c57a01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/wrangling.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,9 @@ five_cities
16301630
```
16311631
The data frame above shows that the populations of the five cities in 2016 were
16321632
5928040 (Toronto), 4098927 (Montréal), 2463431 (Vancouver), 1392609 (Calgary), and 1321426 (Edmonton).
1633-
We will first add this information to a new data frame in a new column named `city_pops` by using `assign`.
1633+
Next, we will add this information to a new data frame column called `city_pops`.
1634+
Once again, we will illustrate how to do this using both regular column assignment
1635+
and the `assign` method, starting with the latter.
16341636
Once again we specify the new column name (`city_pops`) as the argument, followed by the equal symbol `=`,
16351637
and finally the data in the column.
16361638
Note that the order of the rows in the `english_lang` data frame is Montréal, Toronto, Calgary, Edmonton, Vancouver.

0 commit comments

Comments
 (0)