Repository navigation
[Linting Rule] Dataframe Access Validation
Generated from 'wiki-linter.ts' on 2026-10-27, 10:46:55 UTC (v2.16.6), do not edit directly.
Dataframe Access Validation [overview]
This rule is a best-effort rule.
Finds accesses to columns and rows a data frame does not have.
This linting rule is implemented in src/linter/rules/dataframe-access-validation.ts.
Linting rules can be configured by passing a configuration object to the linter query as shown in the example below.
The dataframe-access-validation rule accepts the following configuration options:
-
readLoadedData
Whether data frame shapes should be extracted from loaded external data files, such as CSV files (defaults to the option in the flowR config ifundefined)
df <- data.frame(id = 1:5, name = 6:10)
df[6, "value"]The linting query can be used to run this rule on the above example:
[ { "type": "linter", "rules": [ { "name": "dataframe-access-validation", "config": {} } ] } ]Results (prettified and summarized):
Query: linter (4 ms)
╰ Dataframe Access Validation (dataframe-access-validation):
╰ certain:
╰ Access of row 6 of df at 3.1-14
╰ Access of column "value" of df at 3.1-14
More examples are the test cases in test/functionality/linter/lint-dataframe-access-validation.test.ts.
Currently maintained by Florian Sihler and Oliver Gerstl at Ulm University
Email | GitHub | Penguins | Portfolio
- 🧑💻 Developer Onboarding
- 💻 Setup
- 👓 Overview
- 🪟 Interfacing with flowR
- 🌋 Core
- 🧹 Testing & Linting (Benchmark Page)
⁉️ FAQ- ℹ️ Extra Information