Skip to content

Commit 945a63a

Browse files
committed
Updated Getting and Cleaning Data Course Notes
1 parent a1270a8 commit 945a63a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

3_GETDATA/Getting and Cleaning Data Course Notes.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ $\pagebreak$
378378
* can specify multiple values to sort by by using `,`
379379
* order listed in the call will be the order that the data is sorted by (can use in conjunction with `desc()`)
380380
* `rename()`
381-
* *example*: `rename(dataFrameTable, colName = newColName)` = renames the specified column with new name
381+
* *example*: `rename(dataFrameTable, newColName = colName)` = renames the specified column with new name
382382
* capable of renaming multiple columns at the same time, no quotes needed
383383
* `mutate()`
384384
* create a new variable based on the value of one or more existing variables in the dataset

3_GETDATA/Getting_and_Cleaning_Data_Course_Notes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h2>Working with API</h2>
471471
<li><strong>GitHub example (<a href="https://github.com/hadley/httr/blob/master/demo/oauth2-github.r">tutorial</a>)</strong>:
472472
<ul>
473473
<li><code>library(httr)</code></li>
474-
<li><code>myapp &lt;- oauth_app(&quot;github&quot;, key = &quot;clientID&quot;, secrete = &quot;clientSecret&quot;)</code>
474+
<li><code>myapp &lt;- oauth_app(&quot;github&quot;, key = &quot;clientID&quot;, secret = &quot;clientSecret&quot;)</code>
475475
<ul>
476476
<li>an application must be registered with GitHub first to generate the client ID and secrets</li>
477477
</ul></li>
@@ -588,7 +588,7 @@ <h2>dplyr</h2>
588588
</ul></li>
589589
<li><code>rename()</code>
590590
<ul>
591-
<li><em>example</em>: <code>rename(dataFrameTable, colName = newColName)</code> = renames the specified column with new name</li>
591+
<li><em>example</em>: <code>rename(dataFrameTable, newColName = colName)</code> = renames the specified column with new name</li>
592592
<li>capable of renaming multiple columns at the same time, no quotes needed</li>
593593
</ul></li>
594594
<li><code>mutate()</code>
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)