generate_block_id: Generate a compatible block id

Description Usage Arguments Value Examples

View source: R/survey-definitions-blocks.R

Description

When updating a block (update_block) or creating a new block (create_block), it can be convenient to control the creation of the block id locally. This convenience function returns a block id that is unique and does not overlap with existing block ids in the survey.

Usage

1
generate_block_id(survey_id)

Arguments

survey_id

the survey id

Value

A string of the form BL_FakeBlockID1234

Examples

1
2
3
4
5
6
## Not run: 
generate_block_id(
"SV_012345678901234", 
)

## End(Not run)

ppssphysics/QualtricsInR documentation built on Aug. 30, 2021, 8:12 a.m.