作者jeffgod (和尚)
看板Statistics
標題[程式] [R]函式一問!!
時間Tue Sep 22 16:15:05 2009
------------------------------------------------------------------------
新手(不到1個月)
-----------------------------------------------------------------------------
最近剛學~~ 看到一個指令 不太會用
煩請版上先進教一下~~
我想問的是有關 paste()這個函式~~看不太懂他要幹嘛
我有用help去查他的用法~ 無奈英文太差了XD
paste(...,sep="", collapse=NULL)
其中 sep: a character string to seperate the terms
collapse: an optional character string to seperate the results
請告訴我 paste , sep ,collapse 怎麼用= ="
謝謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.63.51
1F:→ gsuper:將兩群以上的資料(數值||字串)合併 , 並且都變成字串 09/22 16:54
2F:→ gsuper:預設會在合併的位置空一格 , 為sep=" " , 若指定sep="" 09/22 16:55
3F:→ gsuper:可以取消中間的空格 也可以任意加東西進去(例如逗點) 09/22 16:56
4F:→ jeffgod:喔喔 謝謝!! 09/22 17:37