How to use R's sprintf to create fixed width strings with fill whitespace at the END?

前端 未结 3 694
说谎
说谎 2020-12-31 01:27

I have vector of strings and want to create a fixed with string out of that. Shorter strings should be filled up with white spaces. E.g.:

c(\"fjdlksa01dada\"         


        
3条回答
提交回复
热议问题