作者west1996 (焦了六年變脆了)
看板Statistics
標題Re: [問題] R的手冊有個專有名詞看不懂
時間Fri Aug 7 23:44:26 2009
※ 引述《gsuper (綠色蘇打心)》之銘言:
: Vector
: 請問這個詞到底是什麼意思?
: 比方說以下這句
: Character quantities & character vectors are used frequently in R
: 或是
: along=vector , which if used must be the only parameter ,
: and create a sequence 1 , 2 , ...... , length(vector) ,
: or the empty sequence if the vector is empty (as it can be)
: 還有
: Vectors are the most important type of object in R,
: but there are several others which we will meet more formally in later sections
: -----------------------------------------------------------------------------
: 我感覺這應該是很重要的字
: 有很多意思在裡面
: 可是我實在看不懂
: 請高人協助
如果講變數的結構的話
最基本的就是單一一個變數 像是a <-10 就是生出一個變數叫a
那vector中文講向量 就是把很多的變數串起來
matrix中文講矩陣 就是把更多變數串起來 或是說把很多vector串起來
還有一種變數結構(我忘記有沒有特別的名稱 還是就叫做多維的matrix)是把多到不行的
變數串起來 或是說把很多matrix串起來
舉例講的話 如果單一一個變數是一顆貢丸
那vector就是一串貢丸
matrix就是放在紙盒子裡的好幾串貢丸
多維的matrix就是校慶時為了應付人潮先把一盒一盒的貢丸串堆起來放
可以想像 用越複雜的結構可以同時存取和運算的變數越多
所以看個人需求使用
會說vector最常用是因為一串貢丸剛剛好 好拿吃起來又不會太撐 又不會吃了沒感覺XD
希望有幫助到你:)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.114.202
※ 編輯: west1996 來自: 114.36.114.202 (08/07 23:46)
推 gsuper:精闢 看的我好餓~~~ 08/07 23:52
推 wlsherica:好餓+1 08/08 00:06
推 nhctcmouse:比喻的好棒XD 08/08 00:10
→ flowwinds:那List呢.... 08/08 11:13
→ west1996:list是buffet 看起來原po剛開始接觸而已 我就沒提了XD 08/08 12:59
推 heysimon:譬喻的真好!! 08/09 17:00