Difference between revisions of "File:Nadat.csv"
From Testiwiki
(improved output) |
(20linjaa added to code) |
||
Line 1: | Line 1: | ||
− | <rcode include="page:Diversity_index|name:answer|page:OpasnetBaseUtils|name:generic"> | + | <rcode include="page:Diversity_index|name:answer|page:OpasnetBaseUtils|name:generic" variables=" |
+ | name:file|description:Which file do you want to analyze?|type:selection|options:'1/12/20linjaa.csv';20linjaa.csv;'f/f0/Nadat.csv';Nadat.csv|default:'1/12/20linjaa.csv'| | ||
+ | name:indices|description:How many first columns are explanatory (i.e., not species data)?|default:1 | ||
+ | "> | ||
cat("Loading necessary packages and functions.\n") | cat("Loading necessary packages and functions.\n") | ||
Line 9: | Line 12: | ||
cat("Loading data and transforming it into the right format.\n") | cat("Loading data and transforming it into the right format.\n") | ||
− | data <- opasnet.csv( | + | data <- opasnet.csv(file) |
− | data <- melt(data, id.var = 1: | + | data <- melt(data, id.var = 1:indices) |
names(data)[1] <- "transect" | names(data)[1] <- "transect" | ||
Line 29: | Line 32: | ||
print(xtable(out), type = 'html', html.table.attributes = "class='sortable'") | print(xtable(out), type = 'html', html.table.attributes = "class='sortable'") | ||
</rcode> | </rcode> | ||
+ | |||
+ | NOTE! Transect information must be in the first column. |
Revision as of 17:10, 29 February 2012
NOTE! Transect information must be in the first column.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 18:19, 28 February 2012 | (27 KB) | Jouni (talk | contribs) | And again to UTF-8 (previous was ANSI) |
18:15, 28 February 2012 | (27 KB) | Jouni (talk | contribs) | Öökkösiä muunnettu sopivammiksi. | |
16:38, 28 February 2012 | (27 KB) | Kalle (talk | contribs) |
- You cannot overwrite this file.
File usage
There are no pages that link to this file.