is there a way to extend LETTERS past 26 characters e.g., AA, AB, AC…?

前端 未结 9 1730
情书的邮戳
情书的邮戳 2020-12-03 00:52

I use LETTERS most of the time for my factors but today I tried to go beyond 26 characters:

LETTERS[1:32]

Expecting there to be an automati

9条回答
  •  被撕碎了的回忆
    2020-12-03 01:56

    A little late to the party, but I want to play too.

    You can also use sub, and sprintf in place of paste0 and get a length 702 vector.

    c(LETTERS, sapply(LETTERS, sub, pattern = " ", x = sprintf("%2s", LETTERS)))
    

提交回复
热议问题