Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28df974

Browse files
committed
added note on table
1 parent 0a338d2 commit 28df974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

8_PREDMACHLEARN/Practical Machine Learning Course Notes HTML.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ p2 <- qplot(cutWage,age, data=training,fill=cutWage,
515515
grid.arrange(p1,p2,ncol=2)
516516
```
517517

518-
* `table(cutVariable, data$var2)` = tabulates the cut factor variable vs another variable in the dataset
518+
* `table(cutVariable, data$var2)` = tabulates the cut factor variable vs another variable in the dataset (ie; builds a contingency table using cross-classifying factors)
519519
* `prop.table(table, margin=1)` = converts a table to a proportion table
520520
- `margin=1` = calculate the proportions based on the rows
521521
- `margin=2` = calculate the proportions based on the columns

8_PREDMACHLEARN/Practical Machine Learning Course Notes.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ p2 <- qplot(cutWage,age, data=training,fill=cutWage,
528528
grid.arrange(p1,p2,ncol=2)
529529
```
530530

531-
* `table(cutVariable, data$var2)` = tabulates the cut factor variable vs another variable in the dataset
531+
* `table(cutVariable, data$var2)` = tabulates the cut factor variable vs another variable in the dataset (ie; builds a contingency table using cross-classifying factors)
532532
* `prop.table(table, margin=1)` = converts a table to a proportion table
533533
- `margin=1` = calculate the proportions based on the rows
534534
- `margin=2` = calculate the proportions based on the columns

0 commit comments

Comments
 (0)