GeezerVison is showing github.com — variations · WinVector/Examples@e32cc57
File treeExpand file treeCollapse file tree Open diff view settings traj_graph_2_files/figure-gfm
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: rebalance/traj_graph_2.Rmd +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -70,7 +70,7 @@ frame <- build_traj(d_ex) | 70 | 70 |
| 71 | 71 | ```{r} | 72 | 72 | want_frame <- function(frame) { | 73 | | - check_eps = 0.02 | | 73 | + check_eps = 0.03 | 74 | 74 | n_f_rows <- nrow(frame) | 75 | 75 | have_cross <- FALSE | 76 | 76 | have_increasing <- FALSE | @@ -104,7 +104,7 @@ mk_example <- function() { | 104 | 104 | n_rows <- 10 | 105 | 105 | while(TRUE) { | 106 | 106 | d_ex <- data.frame(matrix( | 107 | | - sample(seq(-10, 10), size = length(d_cols) * n_rows, replace = TRUE), | | 107 | + sample(seq(-20, 20), size = length(d_cols) * n_rows, replace = TRUE), | 108 | 108 | ncol=length(d_cols))) | 109 | 109 | colnames(d_ex) <- d_cols | 110 | 110 | d_ex['y'] = d_ex['y'] >= 0 | |
Collapse file Copy file name to clipboardExpand all lines: rebalance/traj_graph_2.md +22-22Lines changed: 22 additions & 22 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -71,7 +71,7 @@ frame <- build_traj(d_ex) | 71 | 71 |
| 72 | 72 | ``` r | 73 | 73 | want_frame <- function(frame) { | 74 | | - check_eps = 0.02 | | 74 | + check_eps = 0.03 | 75 | 75 | n_f_rows <- nrow(frame) | 76 | 76 | have_cross <- FALSE | 77 | 77 | have_increasing <- FALSE | @@ -102,7 +102,7 @@ mk_example <- function() { | 102 | 102 | n_rows <- 10 | 103 | 103 | while(TRUE) { | 104 | 104 | d_ex <- data.frame(matrix( | 105 | | - sample(seq(-10, 10), size = length(d_cols) * n_rows, replace = TRUE), | | 105 | + sample(seq(-20, 20), size = length(d_cols) * n_rows, replace = TRUE), | 106 | 106 | ncol=length(d_cols))) | 107 | 107 | colnames(d_ex) <- d_cols | 108 | 108 | d_ex['y'] = d_ex['y'] >= 0 | @@ -124,33 +124,33 @@ cat(wrapr::draw_frame(d_ex)) | 124 | 124 |
| 125 | 125 | ## d_ex <- wrapr::build_frame( | 126 | 126 | ## "x1" , "x2", "y" | | 127 | | - ## 4L , 4L , FALSE | | 128 | | - ## -4L , 6L , TRUE | | 129 | | - ## 10L , -5L , FALSE | | 130 | | - ## -9L , -8L , FALSE | | 131 | | - ## 6L , 0L , FALSE | | 132 | | - ## 3L , -8L , TRUE | | 133 | | - ## -7L , 6L , TRUE | | 134 | | - ## 6L , 9L , FALSE | | 135 | | - ## 5L , -1L , FALSE | | 136 | | - ## 9L , 8L , FALSE ) | | 127 | + ## -12L, 8L, TRUE | | | 128 | + ## 10L, -17L, TRUE | | | 129 | + ## 8L, -13L, TRUE | | | 130 | + ## 18L, -9L, FALSE | | | 131 | + ## 17L, 13L, FALSE | | | 132 | + ## -20L, -11L, FALSE | | | 133 | + ## 0L, 12L, FALSE | | | 134 | + ## 15L, -12L, FALSE | | | 135 | + ## 17L, -16L, FALSE | | | 136 | + ## -12L, 14L, TRUE ) | 137 | 137 |
| 138 | 138 | ``` r | 139 | 139 | knitr::kable(d_ex) | 140 | 140 | ``` | 141 | 141 |
| 142 | 142 | | x1 | x2 | y | | 143 | 143 | |----:|----:|:------| | 144 | | -| 4 | 4 | FALSE | | 145 | | -| -4 | 6 | TRUE | | 146 | | -| 10 | -5 | FALSE | | 147 | | -| -9 | -8 | FALSE | | 148 | | -| 6 | 0 | FALSE | | 149 | | -| 3 | -8 | TRUE | | 150 | | -| -7 | 6 | TRUE | | 151 | | -| 6 | 9 | FALSE | | 152 | | -| 5 | -1 | FALSE | | 153 | | -| 9 | 8 | FALSE | | | 144 | +| -12 | 8 | TRUE | | | 145 | +| 10 | -17 | TRUE | | | 146 | +| 8 | -13 | TRUE | | | 147 | +| 18 | -9 | FALSE | | | 148 | +| 17 | 13 | FALSE | | | 149 | +| -20 | -11 | FALSE | | | 150 | +| 0 | 12 | FALSE | | | 151 | +| 15 | -12 | FALSE | | | 152 | +| 17 | -16 | FALSE | | | 153 | +| -12 | 14 | TRUE | | 154 | 154 |
| 155 | 155 | ``` r | 156 | 156 | frame <- build_traj(d_ex) | |
Collapse file Copy file name to clipboard 6.08 KB
- Display the source diff
- Display the rich diff
|