by ColinWright · 15y ago · 0 comments
* By hand?
* With Excel?
* With R?
* With processing?
I'm a little sad to see that this item has been flagged heavily, but I guess there are people who think this is sufficiently off-topic that it should be in the same category as spam.
#copy data into a txt file without the first two lines from the xls
par(mfrow = c(3,2))
dat <- read.table("data.txt", sep="\t", header = TRUE)
for(let in c("A","B","C","D","E","F"))
plot(density(dat[,let]), main = let)
easy...(why doesnt HN recognise newlines?)
It treats single newlines as the same paragraph and double newlines as a new one. Alternatively, if you want to post code, you can indent it by four spaces. Like this:
par(mfrow = c(3,2))
dat <- read.table("data.txt", sep="\t", header = TRUE)
for(let in c("A","B","C","D","E","F"))
plot(density(dat[,let]), main = let)I offer you knowledge obtained by sheer trial and error. :)