compact_codebook: Compact Codebook

Description Usage Arguments Examples

View source: R/codebook.R

Description

Generate only the tabular codebook and the machine-readable JSON-LD metadata.

Usage

1

Arguments

results

the data frame

Examples

1
2
3
4
5
6
7
# will generate figures in a figure/ subdirectory
## Not run: 
data("bfi")
bfi <- bfi[, c("BFIK_open_1", "BFIK_open_2")]
compact_codebook(bfi)

## End(Not run)

Example output

dev.new(): using pdf(file="Rplots1.pdf")
dev.new(): using pdf(file="Rplots2.pdf")
dev.new(): using pdf(file="Rplots3.pdf")
dev.new(): using pdf(file="Rplots4.pdf")
dev.new(): using pdf(file="Rplots5.pdf")
dev.new(): using pdf(file="Rplots6.pdf")
dev.new(): using pdf(file="Rplots7.pdf")
dev.new(): using pdf(file="Rplots8.pdf")
dev.new(): using pdf(file="Rplots9.pdf")
dev.new(): using pdf(file="Rplots10.pdf")
dev.new(): using pdf(file="Rplots11.pdf")
dev.new(): using pdf(file="Rplots12.pdf")
dev.new(): using pdf(file="Rplots13.pdf")
dev.new(): using pdf(file="Rplots14.pdf")
dev.new(): using pdf(file="Rplots15.pdf")
dev.new(): using pdf(file="Rplots16.pdf")
dev.new(): using pdf(file="Rplots17.pdf")
dev.new(): using pdf(file="Rplots18.pdf")
dev.new(): using pdf(file="Rplots19.pdf")
dev.new(): using pdf(file="Rplots20.pdf")
No viewer found, probably documenting or testing







### Metadata

#### Description
__Dataset name__: results


The dataset has N=28 rows and 2 columns.
28 rows have no missing values on any column.

<details>
<summary title="Expand this section to see some additional metadata in a structured format that is useful for search engines">Metadata for search engines</summary>






- __Date published__: 2021-02-16






|x           |
|:-----------|
|BFIK_open_1 |
|BFIK_open_2 |



</details>















## Codebook table

## PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
## Warning in normalizePath(f2): path[1]="webshot1f671b7d3739d7.pdf": No such file
## or directory
## Warning in file(con, "rb"): cannot open file 'webshot1f671b7d3739d7.pdf': No
## such file or directory
## Error in file(con, "rb"): cannot open the connection





<script type="application/ld+json">
{
  "name": "results",
  "datePublished": "2021-02-16",
  "description": "The dataset has N=28 rows and 2 columns.\n28 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name        |label                                                 | n_missing|\n|:-----------|:-----------------------------------------------------|---------:|\n|BFIK_open_1 |__Ich bin vielseitig interessiert.__                  |         0|\n|BFIK_open_2 |__Ich bin tiefsinnig, denke gerne über Sachen nach.__ |         0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
  "keywords": ["BFIK_open_1", "BFIK_open_2"],
  "@context": "http://schema.org/",
  "@type": "Dataset",
  "variableMeasured": [
    {
      "name": "BFIK_open_1",
      "description": "__Ich bin vielseitig interessiert.__",
      "value": "1. 1: Trifft überhaupt nicht zu,\n2. 2,\n3. 3,\n4. 4,\n5. 5: Trifft voll und ganz zu,\nNA. Item was never rendered for this user.",
      "maxValue": 5,
      "minValue": 1,
      "measurementTechnique": "self-report",
      "@type": "propertyValue"
    },
    {
      "name": "BFIK_open_2",
      "description": "__Ich bin tiefsinnig, denke gerne über Sachen nach.__",
      "value": "1. 1: Trifft überhaupt nicht zu,\n2. 2,\n3. 3,\n4. 4,\n5. 5: Trifft voll und ganz zu,\nNA. Item was never rendered for this user.",
      "maxValue": 5,
      "minValue": 1,
      "measurementTechnique": "self-report",
      "@type": "propertyValue"
    }
  ]
}
</script>

<details><summary>JSON-LD metadata</summary>
The following JSON-LD can be found by search engines, if you share this codebook
publicly on the web.

```json
{
  "name": "results",
  "datePublished": "2021-02-16",
  "description": "The dataset has N=28 rows and 2 columns.\n28 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name        |label                                                 | n_missing|\n|:-----------|:-----------------------------------------------------|---------:|\n|BFIK_open_1 |__Ich bin vielseitig interessiert.__                  |         0|\n|BFIK_open_2 |__Ich bin tiefsinnig, denke gerne über Sachen nach.__ |         0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
  "keywords": ["BFIK_open_1", "BFIK_open_2"],
  "@context": "http://schema.org/",
  "@type": "Dataset",
  "variableMeasured": [
    {
      "name": "BFIK_open_1",
      "description": "__Ich bin vielseitig interessiert.__",
      "value": "1. 1: Trifft überhaupt nicht zu,\n2. 2,\n3. 3,\n4. 4,\n5. 5: Trifft voll und ganz zu,\nNA. Item was never rendered for this user.",
      "maxValue": 5,
      "minValue": 1,
      "measurementTechnique": "self-report",
      "@type": "propertyValue"
    },
    {
      "name": "BFIK_open_2",
      "description": "__Ich bin tiefsinnig, denke gerne über Sachen nach.__",
      "value": "1. 1: Trifft überhaupt nicht zu,\n2. 2,\n3. 3,\n4. 4,\n5. 5: Trifft voll und ganz zu,\nNA. Item was never rendered for this user.",
      "maxValue": 5,
      "minValue": 1,
      "measurementTechnique": "self-report",
      "@type": "propertyValue"
    }
  ]
}`
```
</details>

codebook documentation built on July 1, 2020, 10:28 p.m.