Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
qddyy committed Nov 15, 2023
1 parent 548e1cc commit 87c6d6b
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 413 deletions.
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ output:
df_print: kable
fig_width: 8
fig_height: 6
dev: svg
---

```{r, setup, include = FALSE}
options(cli.progress_show_after = Inf)
knitr::opts_chunk$set(
collapse = TRUE, comment = "#>",
fig.path = "man/figures/README-", out.width = "100%"
Expand Down Expand Up @@ -50,7 +52,7 @@ pak::pkg_install("qddyy/LearnNonparam")
```
- Test some data (`vector` | `data.frame` | `list`)
```{r, test, include = FALSE}
```{r, test}
set.seed(2023)
t$test(rnorm(20, mean = 1), rnorm(20, mean = 0))
```
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ pak::pkg_install("qddyy/LearnNonparam")

- Test some data (`vector` \| `data.frame` \| `list`)

``` r
set.seed(2023)
t$test(rnorm(20, mean = 1), rnorm(20, mean = 0))
```

- Check the results

``` r
t$p_value
#> [1] 0.0013138
#> [1] 0.0013154

t$print(digits = 2)
#>
Expand All @@ -62,7 +67,7 @@ pak::pkg_install("qddyy/LearnNonparam")
t$plot(binwidth = 1)
```

<img src="man/figures/README-results-1.png" width="100%" />
<img src="man/figures/README-results-1.svg" width="100%" />

- Modify some attributes and see how the results change

Expand Down
Binary file removed man/figures/README-results-1.png
Binary file not shown.
Loading

0 comments on commit 87c6d6b

Please sign in to comment.