Description Usage Arguments Value Examples
setinitialPos
assigns an integer value (initial positition) to the
variable(s) specified in the input parameters.
1 2 3 4 | setinitialPos(schema, initialPos, variables)
## S4 method for signature 'StfwfSchema,integer'
setinitialPos(schema, initialPos, variables)
|
schema |
Object of class StfwfSchema. |
initialPos |
integer vector with the new initial positions of the variables. |
variables |
character vector with the names of the variables whose final positions are to be updated. |
Object of class StfwfSchema.
1 2 3 4 5 6 7 8 9 10 11 12 | # A trivial example:
df <- data.frame(variable = c('Turnover', 'Employees'),
width = c(9L, 3L),
initialPos = c(1, 10),
finalPos = c(9, 12),
type = rep('num', 2),
valueRegEx = c('[0-9]{0,9}', '[0-9]{0,3}'),
description = c('Turnover of the business unit',
'Number of employees of the business unit'),
stringsAsFactors = FALSE)
Schema <- new(Class = 'StfwfSchema', df = df)
setinitialPos(Schema, c(2L), c('Turnover'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.