Difference between revisions of "Metal concentrations in lake sediments"
From Testiwiki
(→Answer: code improved) |
m (→Answer) |
||
Line 17: | Line 17: | ||
data <- tidy(op_baseGetData("opasnet_base", "Op_en5462")) | data <- tidy(op_baseGetData("opasnet_base", "Op_en5462")) | ||
− | |||
out <- data[data$Observation %in% metalli, ] | out <- data[data$Observation %in% metalli, ] | ||
colnames(out) <- c("DateTime", "TagName", "Value") | colnames(out) <- c("DateTime", "TagName", "Value") | ||
Line 24: | Line 23: | ||
cat(paste("Metalli: ", metalli, "\n", sep="")) | cat(paste("Metalli: ", metalli, "\n", sep="")) | ||
plot(out$Value) | plot(out$Value) | ||
− | |||
</rcode> | </rcode> | ||
Line 38: | Line 36: | ||
library(xtable) | library(xtable) | ||
library(ggplot2) | library(ggplot2) | ||
+ | library(reshape) | ||
data <- (op_baseGetData("opasnet_base", "Op_en5462")) | data <- (op_baseGetData("opasnet_base", "Op_en5462")) | ||
data <- tidy(data) | data <- tidy(data) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
data$Result <- as.numeric(data$Result) # This replaces all as.numeric rows below. | data$Result <- as.numeric(data$Result) # This replaces all as.numeric rows below. | ||
Line 54: | Line 47: | ||
data$distance <- sqrt((as.numeric(data$Easting) - easting)^2 + (as.numeric(data$Northing) - northing)^2) | data$distance <- sqrt((as.numeric(data$Easting) - easting)^2 + (as.numeric(data$Northing) - northing)^2) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
data <- melt(data, measure.vars = c("Co", "Cr", "Cu", "Fe", "Mn", "Ni", "Pb", "S", "V", "Zn")) | data <- melt(data, measure.vars = c("Co", "Cr", "Cu", "Fe", "Mn", "Ni", "Pb", "S", "V", "Zn")) | ||
− | |||
out <- data | out <- data |
Revision as of 07:48, 6 February 2012
This page is a variable.
The page identifier is Op_en5462 |
---|
Moderator:Jouni (see all) |
This page is a stub. You may improve it into a full page, and then a rating bar will appear here. |
Upload data
|
Contents
Question
What are metal concentrations in lake sediments? The focus is on Finland.
Answer
Rationale
Based on data from GTK, Finland.
Dependencies
Formula
See also
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>