Releases: metrumresearchgroup/yspec
yspec 0.6.3
yspec 0.6.2
Breaking changes
nm_input()
was significantly refactored to produce output more typically seen
in practice as well as adding some convenience features (#150).- the default output is now wide format
- data set labels can get renamed with
<new name> = <old name>
syntax, passed
under...
- columns with type
<character>
are dropped by default - the
cat
argument was renamed.cat
- the
.drop
argument was added to indicate a group of data items to drop
from the problem - the previous long output can be recreated using
.long = TRUE
- the
.decodes
argument was added to control appearance of categorical data
decode information in the long output
yspec 0.6.1
- Use
all_of()
when tidy selecting; this will suppress warnings in
ys_extend()
andys_add_factors()
(#145).
yspec 0.6.0
- Adds
ys_factors()
to replace data set columns with their factor version,
optionally retaining the orignal values in new columns (#141).
yspec 0.5.3
-
Fix bug where character
type
was inferred whenevervalues
were character,
overrriding what the user specified; now, only infer when user doesn't
specifytype
(#129). -
Add
ys_col_note()
to generate a string of column names and definitions
based onshort
orlabel
; use this when column names appear in a table
and require explanation in a a footnote (#119, #120). -
Put stories in yaml format; add script to build validation docs from the
yaml file (#123, #124).
yspec 0.5.2
-
Adds
ys_extend()
to extend a spec object with additional
columns with any external yaml file; addsextend_file
field inSETUP__:
to identify a single file which can be
automatically called upon for extension #112, #113. -
ys_add_factors()
refactored to only add factors for available
columns #88, #91. -
ys_add_factors()
restores tidyselect semantics when specifying
a subset of columns for adding factors #109, #110. -
Add
ys_table()
to render the spec in TeX table code to be included
in a report appendix #98, #104. -
ys_select()
returns an empty spec object when nothing is selected
#100, #101. -
Add
ys_prune()
to select any data columns that appear in the spec
as well as other optional columns #87, #97. #99. -
Add
ys_recode()
to convert a vector of data set column names to
short
version, optionally addingunit
#86, #114. -
ys_load()
will now detect ifvalues
/decode
are mis-coded as
a list of lists; all items invalues
anddecode
must be atomic
#106, #108. -
ys_load()
will issue more informative error message whenshort
contains too many characters #102, 105. -
ys_document()
now acceptssponsor
andprojectnumber
arguments
which get passed through to the rendered define document #90, #92.
release/0.5.1
yspec 0.5.1
-
Fix bug where dots in lookup file were not properly inherited by spec
columns that didn't already have a dots list (#69) -
Fix bug in namespace creation when multiple fields include namespace info
(#81) -
Fix bug where specification document didn't properly render when using
R 4.1 (#73) -
ys_add_factors()
now substitutes missing values (NA
) with a character
string supplied by the user prior to making the factor; thedecode
list
is also updated so that the "missing" data is the last level; the string is
supplied by the new argument.missing
argument (#79)
Release/0.5.0
Merge pull request #67 from metrumresearchgroup/release/0.5.0 Release/0.5.0