read_spec: Read a spec CSV written by 'write_spec()'

View source: R/spec.r

read_specR Documentation

Read a spec CSV written by write_spec()

Description

Read a spec CSV written by write_spec()

Usage

read_spec(path)

Arguments

path

Path to the spec .csv.

Value

A spec data.frame.

Examples

df <- data.frame(id = sprintf("AB%03d", 1:60), value = 1:60)
path <- file.path(tempdir(), "read_spec_source.csv")
utils::write.csv(df, path, row.names = FALSE, na = "")
spec <- infer_spec(read_source(path))
spec_path <- file.path(tempdir(), "read_spec.csv")
write_spec(spec, spec_path)
reviewed <- read_spec(spec_path)
reviewed[, c("column", "role")]

cellsynth documentation built on Oct. 31, 2026, 1:07 a.m.