-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
105 lines (65 loc) · 2.96 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
warnings = FALSE,
messages = FALSE
)
```
# Teaching Culture Perception Survey (TCPS) Project
[](https://travis-ci.org/jkaupp/tcps)
The goal of tcps package is to provide functionality to tidy and visualize the results of running the teaching culture perception survey at an institution.
# Using the tcps package
The package is freely available and requires R to be installed as well. R is a free open-source software available at <https://www.r-project.org/>. It is a command line program, but there are many high quality and free interactive development environments (IDE) one can use. Rstudio <https://www.rstudio.com> is a highly recommended IDE to download and install.
To recap:
1. Download & Install R <https://www.r-project.org/>
2. Download & Install RStudio <https://www.rstudio.com>
3. Launch RStudio (which will start up an instance of R as well)
## Installation
You can install tcps from GitHub, by first installing and loading the `devtools` package
```{r gh-installation, eval = FALSE}
install.packages("remotes")
remotes::install_github("jkaupp/tcps")
```
## Using this package
There is a vignette in the package that walks through the use of the `tcps` package
```{r vignette, eval = FALSE}
vignette("using_the_tcps")
```
## Quick Features
### Importing your data
Reading in properly prepared output from survey platforms, and creating the levers.
```{r reading}
library(tcps)
# Load some sample data!
file <- tcps_sample("staff_sample.xlsx")
tcps_data <- tcps_read_excel(file)
head(tcps_data)
```
### Visualizing Levers & Scales
Provides functions to visualize the TCPS levers....
```{r rideline, fig.width = 10, fig.height = 5}
tcps_lever_ridgeline(tcps_data, name = "Prestigious Institution", lever = "lever1")
```
as well as functionality to visualize the scales/questions that comprise the lever.
```{r scale1, fig.width = 8, fig.height = 8}
tcps_lever_scale(tcps_data, choice = "lever1", name = "Prestigious Institution")
```
## Summary Statistics
You can obtain simple summary statistics by scale, survey type, lever and question.
```{r stats, fig.width = 8, fig.height = 8}
tcps_summary_stats(tcps_data)
```
## Reporting
There is also functions to produce a boilerplate word document report (across all groups: Staff, Faculty and Students) simply by providing a path to a directory where each prepared file resides.
```{r report, eval = FALSE}
path <- dirname(tcps_sample("faculty_sample.xlsx", full.names = TRUE))
tcps_report(path_to_data = path, name_of_school = "Prestigious Institution", format = "word")
```
## Using the GUI
To help with those new to R, a GUI interface application (built with the `shiny` package) can be used by calling `tcps_gui()` at the command line after loading the `tcps` package.