Skip to content

Commit a6cb0d2

Browse files
authored
Merge pull request #9 from PharmCat/dev
doc update
2 parents 40228e5 + 59ea3a9 commit a6cb0d2

File tree

3 files changed

+46
-9
lines changed

3 files changed

+46
-9
lines changed

docs/Project.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,9 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
MetidaStats = "75cdad26-409a-4e43-8ad7-d54b4fa665a0"
44
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
55
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
6-
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
7-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8-
Weave = "44d3d7a6-8a23-5bf8-98c5-b353f8df5ec9"
9-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
10-
116

127
[compat]
138
Documenter = "≥0.25"
149
MetidaStats = "0.1"
1510
CSV = "0.7, 0.8, 0.9, 0.10"
1611
DataFrames = "1"
17-
PrettyTables = "1, 2"
18-
Weave = "0.9, 0.10"
19-
Plots = "1"

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter, MetidaStats, Weave, PrettyTables, CSV, DataFrames
1+
using Documenter, MetidaStats, CSV, DataFrames
22
#using DocumenterLaTeX
33

44

docs/src/index.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,49 @@ Pages = [
1919
Depth = 3
2020
```
2121

22+
## Example
23+
24+
```@example dsexample
25+
using MetidaStats, CSV, DataFrames;
26+
27+
ds = CSV.File(joinpath(dirname(pathof(MetidaStats)), "..", "test", "csv", "ds.csv")) |> DataFrame
28+
29+
nothing; # hide
30+
```
31+
32+
For DataFrame `ds`:
33+
34+
```@example dsexample
35+
ds[1:5, :]
36+
```
37+
38+
### Import:
39+
40+
```
41+
di = MetidaStats.dataimport(ds, vars = [:var1, :var2], sort = [:col, :row])
42+
```
43+
44+
### Statistics:
45+
46+
```
47+
des = MetidaStats.descriptives(di; skipmissing = true, skipnonpositive = true, stats = MetidaStats.STATLIST)
48+
```
49+
50+
### Make DataFrame
51+
52+
```
53+
df = DataFrame(des)
54+
```
55+
56+
2257
## Reference
58+
59+
60+
Textbooks:
61+
62+
https://towardsdatascience.com/5-free-books-to-learn-statistics-for-data-science-768d27b8215
63+
64+
Statistics for Julia:
65+
66+
https://statisticswithjulia.org/
67+

0 commit comments

Comments
 (0)