| chn | R Documentation |
n-th character element-wise.Get the n-th character element-wise.
chn(x, n)
charn(x, n)
x |
A populated character object. |
n |
A positive whole-number scalar or a complete positive whole-number object of the same dimensions as |
A complete onechar atomic object of the same dimension as x.
Other strings:
blank(),
delim(),
fsub(),
gr,
ipat(),
makestr(),
markdown_help(),
maxnch(),
ox(),
ox_vals(),
pgrid_help(),
revstr(),
spaces(),
ss_help(),
tocase(),
weave()
Other chars:
maxnch(),
revstr(),
spaces(),
ss_help()
words <- stringr::fruit[1:10]
words
chn(words, 1)
chn(words, 3)
charn(words, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.