mirror of
https://github.com/andre-wojtowicz/uci-ml-to-r.git
synced 2024-11-21 15:50:28 +01:00
Added ToC to readme
This commit is contained in:
parent
90e151ee1f
commit
681bbca36c
18
README.md
18
README.md
@ -3,9 +3,25 @@ Andrzej Wójtowicz
|
||||
|
||||
|
||||
|
||||
Document generation date: 2016-04-16 01:01:04.
|
||||
Document generation date: 2016-04-16 01:21:55.
|
||||
|
||||
|
||||
|
||||
# Table of Contents
|
||||
|
||||
1. [Bank Marketing](#bank-marketing)
|
||||
1. [Breast Cancer Wisconsin (Diagnostic)](#breast-cancer-wisconsin-diagnostic)
|
||||
1. [Breast Cancer Wisconsin (Original)](#breast-cancer-wisconsin-original)
|
||||
1. [Cardiotocography](#cardiotocography)
|
||||
1. [Default of credit card clients](#default-of-credit-card-clients)
|
||||
1. [ILPD (Indian Liver Patient Dataset)](#ilpd-indian-liver-patient-dataset)
|
||||
1. [MAGIC Gamma Telescope](#magic-gamma-telescope)
|
||||
1. [Seismic bumps](#seismic-bumps)
|
||||
1. [Spambase](#spambase)
|
||||
1. [Wine Quality](#wine-quality)
|
||||
|
||||
---
|
||||
|
||||
# Bank Marketing
|
||||
|
||||
**Local directory**: bank-marketing
|
||||
|
@ -4,8 +4,6 @@ author: "Andrzej Wójtowicz"
|
||||
output:
|
||||
html_document:
|
||||
keep_md: yes
|
||||
number_sections: yes
|
||||
toc: yes
|
||||
---
|
||||
|
||||
```{r global-options, include=FALSE}
|
||||
@ -20,6 +18,21 @@ Document generation date: `r Sys.time()`.
|
||||
```{r show-datasets, results='asis'}
|
||||
library(yaml)
|
||||
|
||||
cat("\n# Table of Contents\n\n")
|
||||
|
||||
for (dir.name in dir(PATH_DATASETS))
|
||||
{
|
||||
config.yaml.file.path = paste0(PATH_DATASETS, dir.name, "/", FILE_CONFIG_YAML)
|
||||
config.yaml = yaml.load_file(config.yaml.file.path)
|
||||
|
||||
anchor = gsub(" ", "-", gsub("[[:punct:]]", "",
|
||||
tolower(config.yaml$name)))
|
||||
cat(paste0("1. [", config.yaml$name, "](#", anchor, ")\n" ))
|
||||
|
||||
}
|
||||
|
||||
cat("\n---\n\n")
|
||||
|
||||
for (dir.name in dir(PATH_DATASETS))
|
||||
{
|
||||
config.yaml.file.path = paste0(PATH_DATASETS, dir.name, "/", FILE_CONFIG_YAML)
|
||||
|
Loading…
Reference in New Issue
Block a user