cast-rank-char: Cast to 'borg_rank_char'

Description Usage Arguments

Description

Cast 'x' to a 'borg_rank_char' vector

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
as_rank_char(x, ...)

## S3 method for class 'borg_rank_char'
as_rank_char(x, ...)

## S3 method for class 'character'
as_rank_char(
  x,
  relevant = NA,
  choice_names = NA,
  choice_labels = NA,
  q_name = NA,
  label = NA,
  constraint = NA,
  max_rank = na_length(choice_names),
  position_sep = "/",
  ...
)

## S3 method for class 'borg_rank_list'
as_rank_char(x, ...)

## S3 method for class 'character'
as_rank_list(
  x,
  relevant = NA,
  choice_names = NA,
  choice_labels = NA,
  q_name = NA,
  label = NA,
  constraint = NA,
  max_rank = na_length(choice_names),
  position_sep = "/",
  ...
)

## S3 method for class 'borg_rank_char'
as_rank_list(x, ...)

Arguments

x

An object to coerce to 'borg_rank_char'.

...

Arguments passed on to further methods.


caldwellst/koborg documentation built on May 29, 2020, 3:04 a.m.