-
Notifications
You must be signed in to change notification settings - Fork 0
/
scale-references.Rmd
executable file
·72 lines (64 loc) · 2.39 KB
/
scale-references.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
68
69
70
71
72
---
title: "Data Prep"
author: "Jannis Kreienkamp"
output: html_document
editor_options:
chunk_output_type: console
bibliography: "../acculturation-review/references.bib"
csl: "../acculturation-review/apa.csl"
---
```{r setup, include=FALSE}
lib <- c("rmarkdown", "knitr", "remedy", "bookdown", "rmdfiltr", "psych", "janitor", "bibtex",
"data.table", "dplyr", "tidyr", "Hmisc", "kableExtra", "readxl", "stringr", "reshape2")
invisible(lapply(lib, library, character.only = TRUE))
rm(lib)
knitr::opts_chunk$set(echo = TRUE)
#bib <- bibtex::read.bib("../acculturation-review/references.bib")
# if renv is not working make sure that renv settings and renv/activate.R are set up correctly
# also make sure that 'RENV_CONFIG_SANDBOX_ENABLED = FALSE' is in the .Renviron file.
```
```{r load, include=FALSE}
load("../acculturation-review/data/AcculturationScales.RData")
dt.Scales.Included <- dt.Scales.Included %>%
mutate(id = seq.int(nrow(dt.Scales.Included)))
dt.Theories.Included <- dt.Theories.Included %>%
mutate(id = seq.int(nrow(dt.Theories.Included)))
```
```{r methodologicalTbl, echo=FALSE}
dt.Scales.Included %>%
dplyr::select(id, Scale, ShortReference = CitationKey) %>%
mutate(ShortReference = paste0("@",ShortReference)) %>%
kbl(.,
caption = "Acculturation Scales",
format = "html") %>%
kable_classic(full_width = F,
lightable_options = "hover",
html_font = "Cambria")
```
```{r theoreticalTbl, echo=FALSE}
dt.Theories.Included %>%
dplyr::select(id, Theory, ShortReference = CitationKey) %>%
mutate(ShortReference = paste0("@",ShortReference)) %>%
kbl(.,
caption = "Acculturation Theories",
format = "html") %>%
kable_classic(full_width = F,
lightable_options = "hover",
html_font = "Cambria")
```
```{r methTheoryTbl, echo=FALSE}
# dt.Scales.Included %>%
# dplyr::transmute(Name = Scale, source = "scales", ShortReference = CitationKey) %>%
# rbind(., dt.Theories.Included %>% dplyr::transmute(Name = Theory, source = "theory", ShortReference = CitationKey)) %>%
# mutate(
# ShortReference = paste0("@",ShortReference),
# id = row_number()
# ) %>%
# kbl(.,
# caption = "Acculturation References",
# format = "html") %>%
# kable_classic(full_width = F,
# lightable_options = "hover",
# html_font = "Cambria")
```
# References