-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
67 lines (41 loc) · 1.2 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
output: rmarkdown::github_document
---
# whatamesh
Tools to Work with ASCII MeSH Files
## Description
Tools to Work with ASCII MeSH Files
Ref:
- <ftp://nlmpubs.nlm.nih.gov/online/mesh/MESH_FILES/asciimesh/>
- <https://stackoverflow.com/questions/52814022/how-to-split-txt-file-at-specific-location-and-import-each-part-as-table-in-r/52815428?noredirect=1#comment92554994_52815428>
## What's Inside The Tin
The following functions are implemented:
- `list_mesh_files`: List ASCII MeSH Files Available For Download
- `read_mesh_file`: Download and parse an ASCII MeSH File
## Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/whatamesh")
```
```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```
## Usage
```{r message=FALSE, warning=FALSE, error=FALSE}
library(whatamesh)
# current verison
packageVersion("whatamesh")
```
### List Remote MeSH Files
```{r}
list_mesh_files()
```
### Read & Parse a MeSH File
If the string passed in matches a local filename it will be read in locally, otherwise it will be downloaded. NOTE: large files take a while.
Nested:
```{r}
read_mesh_file("q2018.bin")
```
Wide:
```{r}
read_mesh_file("q2018.bin", wide = TRUE)
```