-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_dictionary.R
35 lines (31 loc) · 1.13 KB
/
make_dictionary.R
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
# make_dictionary.R
# See more documentation from https://www.ravelry.com/api
# make the documentation
yarn_dictionary <- sapply(yarn_all, class) %>% tibble::enframe(value = "type") %>%
mutate(description = c(
"Is the yarn discontinued",
"The number of inches that equal min_gauge to max_gauge stitches",
"Unit weight",
"Unique identifier for the yarn",
"Is the yarn machine washable",
"The max number of stitches that equal gauge_divisor",
"The min number of stitches that equal gauge_divisor",
"Name of the yarn",
"The permalink to https://www.ravelry.com/yarns/library/<permalink>",
"The average rating out of 5",
"",
"",
"Texture free text",
"Thread size",
"Wraps per inch",
"",
"",
"Crochet gauge for the yarn weight category",
"Identifier for the yarn weight category",
"Knit gauge for the yarn weight category",
"Name for the yarn weight category",
"Ply for the yarn weight category",
"Wraps per inch for the yarn weight category",
"Texture with some light text cleaning"
))
write.csv(yarn_dictionary, "data/yarn_dictionary.csv", row.names = FALSE)