print.bstr: print bstr class object

Description Usage Arguments Examples

View source: R/print-bstr.R

Description

print bstr class object

Usage

1
2
## S3 method for class 'bstr'
print(x, ..., n = 6L, l_name = 20L, l_seq = 40L)

Arguments

x

x

...

...

n

number of printing elements

l_name

max length of name

l_seq

max length of sequence

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
dstr_rand_seq(10, 20, seed = 1)
pstr_rand_seq(10, 20, seed = 1)

test1 <- dstr_rand_seq(1, 20, seed = 1)
test2 <- dstr_rand_seq(1, 21, seed = 1)
print(test1, l_seq = 20L)
print(test2, l_seq = 20L)

print(test1, l_name = 9L)
print(test1, l_name = 8L)

dstr_rand_seq(10, 20, seed = 1) %>% print(n = 20L)

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.