跳轉到內容
Main menu
Main menu
move to sidebar
hide
Navigation
Main Page
Help
Browse
Cookbook
Wikijunior
Featured books
Recent changes
Random book
Using Wikibooks
Community
Reading room forum
Community portal
Bulletin Board
Help out!
Policies and guidelines
Contact us
Search
Search
Donations
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Discussion for this IP address
內容
移動到側邊欄
隱藏
開始
1
備註
切換目錄
統計分析:使用 R/R/列表的入門
Add languages
Add links
Book
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Sister projects
Wikipedia
Wikiversity
Wiktionary
Wikiquote
Wikisource
Wikinews
Wikivoyage
Commons
Wikidata
MediaWiki
Meta-Wiki
Print/export
Create a collection
Download as PDF
Printable version
In other projects
外觀
移動到側邊欄
隱藏
來自華夏公益教科書,開放書籍,開放世界
<
統計分析:使用 R 的入門
|
R
R 對向量的內容非常嚴格。所有元素都必須是相同型別,並且必須是數字型別
[
1
]
、邏輯值或文字字串
[
2
]
。如果你想要一個包含不同型別元素的集合,或者不是允許的向量型別之一,你需要使用
列表
。
輸入
l1 <- list(a=1, b=1:3) l2 <- c(sqrt, log) #
結果
備註
[
編輯
|
編輯原始碼
]
↑
實際上有 3 種允許的數字型別:"普通" 數字、複數和簡單整數。本書幾乎完全處理這三種類型中的第一種。
↑
這並不完全正確,但除非你是計算機專家,否則你不太可能使用最終型別:儲存“原始”計算機位的元素向量,請參見
?raw
類別
:
書籍:統計分析:使用 R 的入門
隱藏類別
帶有語法突出顯示錯誤的頁面
華夏公益教科書