• 検索結果がありません。

此 事前準備 2017 生物多樣性資訊學夏季研習營 R intro

N/A
N/A
Protected

Academic year: 2018

シェア "此 事前準備 2017 生物多樣性資訊學夏季研習營 R intro"

Copied!
16
0
0

読み込み中.... (全文を見る)

全文

(1)
(2)

Introduction to R

language

(3)

The Reason to

Design

(4)

FishingData <- fread(file =

"./data/FishingDataPartial.txt",

sep = "\t", header = T, stringsAsFactors = F,

encoding = "UTF-8")

SUM <- sum(FishingData$organismQuantity)

P <- NULL

for(i in 1:nrow(FishingData)) { A <- FishingData[i,]

B <- A$organismQuantity P <- c(P, (B/SUM)*100) }

(5)

R is a programming

language

It is open-source

(6)

OPEN

SOURCE

Package 1 Function 1, Function 2, Package 2 Function 1, Function 2, Package

(7)
(8)

絕對路徑

D:/tmp/DataAnalysis/DataAnalysis/demo/data.txt

D:/tmp/DataAnalysis/DataAnalysis/demo/data/data.txt

相對路徑

./data.txt

(9)

- - -

-Vector

"Pikachu"

(10)

Vector

1, 2, 3, 4, 5

TRUE, FALSE, FALSE, TRUE

(11)
(12)

Vector

---- ⑤ ⑥ ----

---- ⑤ ⑥ ----

(13)

Species Level Type1st Type2ed

Pikachu 38 Electric none

Bulbasaur 2 Grass Poison

Charmander 25 Fire none

Pidgey 3 Normal Flying

Rattata 20 Dark Normal

(14)

rbind()

cbind()

old data

new data

old data

(15)

Step 1.

熟悉基本語法與操作方式

Step 2.

弄清楚感興趣的問題以及需要什麼樣的資料

Step 3.

看看

R

是否有內建的套件可供直接使用

(e.g.

計算算術平均數

)

Step 4.

找到並善用合適的外部套件

(16)

Funtion

is.na()

DT

data.table

numeric, chracter

result1

matrix

logic

Function

table()

result2

named vector

Integer

参照

関連したドキュメント

The orthogonality test using S t−1 (Table 14), M ER t−2 (Table 15), P P I t−1 (Table 16), IP I t−2 (Table 17) and all the variables (Table 18) shows that we cannot reject the

Despite this, these contributions did not mention the underlying concept of attribute reduction in ordered decision table with fuzzy decision and only proposed an approach to

波部忠重 監修 学研生物図鑑 貝Ⅱ(1981) 株式会社 学習研究社 内海富士夫 監修 学研生物図鑑 水生動物(1981) 株式会社 学習研究社. 岡田要 他

一方、Fig.4には、下腿部前面及び後面におけ る筋厚の変化を各年齢でプロットした。下腿部で は、前面及び後面ともに中学生期における変化が Fig.3  Longitudinal changes

鉄道駅の適切な場所において、列車に設けられる車いすスペース(車いす使用者の

and sediment controls, waste chemical disposal, stormwater diversion, and covered storage and manufacturing areas - spill prevention and response procedures.. -

Table 1 shows an input to output logic table according to the dead time control modes and an enable or the disable operation mode.

Apply the specified amount of Orthene Turf, Tree &amp; Ornamental WSP in 100 gals water with a hydraulic sprayer as a full coverage spray. Do not exceed 1 1/3 oz of product