---
id: "ca_statcan_vector"
kind: "datatype"
status: "draft"
is_pii: false
name: "Statistics Canada vector (time series identifier)"
regexp: "^[Vv]\\d{1,10}$"
categories: ["government"]
country: ["CA"]
langs: ["en", "fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ca_statcan_vector"
---

# Statistics Canada vector (time series identifier) (`ca_statcan_vector`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Reference code of one time series in the data tables of Statistics Canada (formerly CANSIM): the letter V and up to ten digits. The CSV downloads of a table carry it in the VECTOR column beside the DGUID and the coordinate of the series; the Web Data Service takes the number with or without the letter. Replication packages of economic papers list the vectors of the series they use.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Government related (government)
- Countries: Canada (CA)
- Languages: English (en), French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[Vv]\d{1,10}$
```

## Examples

- `v65201210` — lower case, as the table downloads write it
- `v1212389364` — a ten-digit vector of a job vacancy table
- `V107646543`
- `65201210` (invalid example) — the number without the letter
- `v12345678901` (invalid example) — more than ten digits

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `castatcanvectorbyname` (field, `ca/ca_stats.yaml`)
- `castatcanvectorvalue` (data, `ca/ca_stats.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- fr: Vecteur de Statistique Canada (identificateur de série chronologique)
- ru: Вектор Статистики Канады (идентификатор временного ряда)

## Sources

- doc: <https://www.statcan.gc.ca/en/developers/wds/user-guide>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ca_statcan_vector.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/government/ca_statcan_vector.yaml>
