5

私はRに比較的慣れていないので、うまくいけばこれは簡単に修正できます。

これが私の問題です:

x <- data.frame(c("Thing1", "Thing2", "Thing3", "Thing4", "Thing5"), c("Sizeable line of text", "more text", "I hope this aligns", "something", "help me"))
colnames(x) <- c("T", "Text")
format(x, justify = "left")

       T                  Text
1 Thing1 Sizeable line of text
2 Thing2 more text            
3 Thing3 I hope this aligns   
4 Thing4 not much             
5 Thing5 help me 

列名をデータフレームの残りの部分と左揃えにするにはどうすればよいですか?

前もって感謝します。

4

1 に答える 1