-9
我的數據是一串使用read.table
拉入R的數字。這裏是數據:如何在字符串中的每個字符之間插入空格?
20402000224222032203233430020222024422320202234232443443004440404332402220404233302004204202004033420200022204334434044422322400200244044322202200234200424402002224303430023432202220343420323200300022320004223040024342244424040322424340240044220302432400203033300042423340222323200020034043004
如何在每個數字之間插入一個空格,所以輸出看起來更像這樣?
2 0 4 0 2 0 0 0 etc...
或者,在'readLines'後:'txt_string < - strsplit(txt,「」)' –