-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexamples.Rmd
More file actions
49 lines (34 loc) · 931 Bytes
/
examples.Rmd
File metadata and controls
49 lines (34 loc) · 931 Bytes
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
---
title: "Examples"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Examples}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
# Examples
## Interactive Notebook
For comprehensive examples and tutorials, see our interactive R notebook:
[Example Notebook](example-notebook.html)
## Quick Start Examples
### Basic Usage
```r
library("acro")
# Initialize ACRO
acro_init(suppress = TRUE)
# Your analysis code here
# ACRO will automatically check outputs for disclosure risks
```
### Creating Safe Tables
```r
# Example of creating a cross-tabulation with ACRO
result <- acro_crosstab(data$variable1, data$variable2)
# ACRO automatically applies disclosure control
print(result)
```
### Finalizing Your Session
```r
# When you're done with your analysis
acro_finalise()
```
For more detailed examples and use cases, please refer to the [Example Notebook](example-notebook.html).