search for: wellid

Displaying 6 results from an estimated 6 matches for "wellid".

Did you mean: cellid
2009 Sep 28
4
Running an ANOVA with a BY
I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn't seem to work. summary(ANOVA1way <- by(welldata, Analyte, function(x) aov(Value ~ WellID, data = welldata))) In SAS I would...
2012 Feb 11
2
obtaining a true/false vector with combination of strsplit, length, unlist,
Hi, A pared down version of the dataset I'm working with: edm<-read.table(textConnection("WELLID X_GRID Y_GRID LAYER ROW COLUMN SPECIES CALCULATED OBSERVED w301_3 4428. 1389 2 6 18 1 3558 6490. w304_12 4836. 6627 2 27 20 1 3509 3228. 02_10_12080 3.6125E+04 13875 1 56 145 1 2774 -9...
2009 Sep 28
6
SAS user now converting to R - Help with Transpose
...d need some help as I am used to doing this in SAS. I have a dataset that looks like this: Chemical Well1 Well2 Well3 Well4 BOD 13.2 14.2 15.5 14.2 O2 7.8 2.6 3.5 2.4 TURB 10.2 14.6 18.5 17.3 and so on with more chemicals.... I would like to transpose my data so that it looks like this: Chemical WellID Value BOD Well1 13.2 BOD Well2 14.2 BOD Well3 15.5 BOD Well4 14.2 O2 Well1 7.8 O2 Well2 2.6 .... and so on In sas I would code it like this: proc sort data=ds1; by chemical; run; Proc Transpose data=ds1 out=ds2; by chemical; var Well1 Well2 Well3 Well4; run; data ds3; set ds2; rename _name_ = Well...
2010 May 14
2
insert values based on common ID
...olumn weekAvg in b to the column weekAvg in a. The dataset a is several thousand lines long. I've tried looking at 'match', writing functions, 'rbind.fill' and various search terms in this forum to no avail. Thanks... a<-read.table(textConnection("row ID date Reading WellID week weekAvg 1 Well_80-2 6/12/2000 2:00 -202.034 80-2 0 NA 2 Well_80-2 6/12/2000 3:00 -201.018 80-2 0 NA 3 Well_80-2 6/12/2000 4:00 -199.494 80-2 0 NA 4 Well_80-2 6/12/2000 5:00 -197.716 80-2 0 NA 5 Well_80-2 6/12/2000 6:00 -190.858 80-2 0 NA 6 Well_80-2 6/12/2000 7:00 -181.460 80-2 0 NA 7 Well_80-...
2011 May 04
1
merging multiple columns from two dataframes
...two dataframes based on sid and sen. this is how my two dataframes look like dat<-data.frame(snpname=rep(letters[1:12],12),sid=rep(1:12,each=12), genotype=rep(c('aa','ab','bb'), 12)) pheno<-data.frame(sen=1:12,disease=rep(c('N','Y'),6), wellid=1:12) I have to merge or add the disease column and 3 other columns to the data file. I am unable to use merge in R. I have searched google, i guess i am not hitting the correct terms to get the answer. I would appreciate any input on this issue. thanks sharad -- View this message in context: htt...
2010 May 15
1
barplot: invalid 'xlim' value
...<-seq(as.POSIXlt("2000-06-12 02:00","%Y-%m-%d %H:%M",tz=""),as.POSIXlt("2000-07-17 01:00","%Y-%m-%d %H:%M",tz=""),by="hour") #Load in the data for the base plot well.80.2<-read.table(textConnection("row~ID~date~Reading~WellID~week 19578~Well_80-2~6/12/2000 2:00~-202.034~80-2~0 19579~Well_80-2~6/12/2000 3:00~-201.018~80-2~0 19580~Well_80-2~6/12/2000 4:00~-199.494~80-2~0 19581~Well_80-2~6/12/2000 5:00~-197.716~80-2~0 19582~Well_80-2~6/12/2000 6:00~-190.858~80-2~0 19583~Well_80-2~6/12/2000 7:00~-181.460~80-2~0 19584~Well_8...