- 19
- 0
- 约9.85万字
- 约 49页
- 2016-03-09 发布于广东
- 举报
Practicals using the R statistical language
Pierre Legendre August 2005; May, July 2006
Département de sciences biologiques May, July, Nov. 2007; Jan., Feb., April, Aug., Oct. 2008
Université de Montréal February, March, April, May , June, July, August, Oct., Nov. 2009
September 2010, January 2011, July 2012, November 2012
0. R packages
The following packages , available from CRAN, will be used in these practicals:
‘ade4’, ‘ape’, ‘cclust’, ‘cluster’, ‘FD’, ‘geoR’, ‘labdsv’, ‘mapdata’, ‘maps’, ‘mvpart’, ‘rgl’, ‘spam’,
‘spdep’, ‘vegan’.
How to install packages from the CRAN is described in the document “Introduction_to R.pdf”.
Then, download the ‘AEM, ‘packfor’ and ‘PCNM’ packages from the address http://r-forge.r-
/R/?group_id=195 ; ‘rdaTest’ and ‘const.clust’ from ; and
‘STI’ from /site/miqueldecaceres/software. Other R-language functions,
available on http:/, will also be used in the course.
1. Compute basic statistics in the R language: Robin data
# Import the file ‘Robins.txt’ into an object ‘robin’ of type ‘data frame’
# You must first tell R what your working directory is.
# Windows: File menu ⇒ Change dir...
# Mac OSX: Misc. menu ⇒ Change Working Directory
robin - read.table(Robins.txt) # or: robin = read.table(Robins.txt)
# or else (better method):
robin - read.table( file.choose() ) # This command opens a dialogue box
# Check that the data have been read correctly
robin
# Copy the wing length values (first column) into an object ‘wing’:
wing = robin[,1]
wing # Print the contents of object wing
is.vector(wing)
is.matrix(wing)
# Transform vector ‘wing’ into an object of type ‘matrix’ in case you need it later:
wing.mat = as.matrix(wing)
wing.mat
is.vector(wing.ma
您可能关注的文档
- 'Some like it hot' spectators who score high on the.pdf
- 'strongHoldingstrong Up' and 'strongHoldingstrong Out' - Santa Clara University.pdf
- 'strongVstrong.I.P.' Videographer Intimidation Protection How the.pdf
- 'The birth of bio-politics' Michel Foucault's lecture at the.pdf
- 'The riddle of history solved' strongsocialiststrong strategy, modes of.pdf
- -strongRstrong - HUJI.pdf
- P-Value Approximations for strongTstrong-Tests of Hypothesis.pdf
- Population strongfluctuationstrong and faunal indices of aphids.pdf
- Population Trends and Controls in strongUnderdevelopedstrong Countries.pdf
- Population, Migration, strongLiving Standardstrong and Social Pressure A.pdf
最近下载
- 天津市部分区2024-2025学年八年级上学期11月期中数学试题(解析版).docx VIP
- 会议活动策划方案模板.docx VIP
- 土方意向协议书范本.docx VIP
- 履带吊安拆监理细则.docx VIP
- T_ZZB 2614-2022 BD100生物柴油标准.docx VIP
- 2026领导班子成员民主生活会“五个带头”个人对照检查材料8篇.docx VIP
- 2025年度民主生活会个人对照检查发言材料.docx VIP
- 山东省烟台龙口市(五四制)2022-2023学年六年级上学期期末考试数学试题(含答案).docx VIP
- 部编版七年级语文上册第三单元第9课时_主题阅读:有为有不为.docx VIP
- 《人工智能辅助的翻译技术》课件.ppt VIP
原创力文档

文档评论(0)