search for: bact

Displaying 11 results from an estimated 11 matches for "bact".

Did you mean: back
2023 Oct 24
2
How to Calculate the Mean by Multiple Groups in R
Hi, I think you're misunderstanding which set of variables go on either side of the formula. Is this what you're looking for? > aggregate(OD ~ Time + Target + Conc, data = df, FUN = "mean") Time Target Conc OD 1 1 BACT 1 765.3333 2 1 BACT 2 745.3333 3 1 BACT 3 675.0000 > aggregate(ODnorm ~ Time + Target + Conc, data = df, FUN = "mean") Time Target Conc ODnorm 1 1 BACT 1 108.33333 2 1 BACT 2 88.33333 3 1 BACT 3 18.00000 Or using a different form, that...
2023 Oct 24
1
How to Calculate the Mean by Multiple Groups in R
Also, > aggregate(cbind(OD, ODnorm) ~ Time + Target + Conc, data = df, FUN = "mean") Time Target Conc OD ODnorm 1 1 BACT 1 765.3333 108.33333 2 1 BACT 2 745.3333 88.33333 3 1 BACT 3 675.0000 18.00000 (You might wish for "cbind(OD,ODnorm) ~ . - Well", but aggregate.formula is not smart enough for that.) -pd > On 24 Oct 2023, at 14:40 , Sarah Goslee <sarah.goslee at gmail.com>...
2023 Oct 24
2
How to Calculate the Mean by Multiple Groups in R
...the measurements OD and ODnorm. How can I merge the triplicates into a single mean value? I tried the following: ``` df = data.frame(Time=rep(1, 9), Well=paste("A", 1:9, sep=""), OD=c(666, 815, 815, 702, 739, 795, 657, 705, 663), Target=rep("BACT", 9), Conc=c(1,1,1,2,2,2,3,3,3), ODnorm=c(9, 158, 158, 45, 82, 138, 0, 48, 6), stringsAsFactors = FALSE) aggregate(.~ODnorm, df, mean) > aggregate(.~ODnorm, df, mean) ODnorm Time Well OD Target Conc 1 0 NA NA NA NA NA...
2002 Aug 07
3
Reading characters using read.table()
...able function in order to make it unable to interpret "T" as "True" ?? Or is there any other functions enabling to import text data from a text file ?? Thanks in advance, Florent _______________________________________ Florent BATY CNRS UMR 5558 Dynamique des Populations Bact?riennes Facult? de M?decine Lyon-Sud 69921 OULLINS, BP 12 FRANCE tel : +33 (0)4 78 86 31 67 fax : +33 (0)4 78 86 31 49 _______________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~h...
2017 Dec 05
2
PLS in R
Hello, I need help with a partial least square regression in R. I have read both the vignette and the post on R bloggers but it is hard to figure out how to do it. Here is the script I wrote: library(pls) plsrcue<- plsr(cue~fb+cn+n+ph+fung+bact+resp, data = cue, ncomp=7, na.action = NULL, method = "kernelpls", scale=FALSE, validation = "LOO", model = TRUE, x = FALSE, y = FALSE) summary(plsrcue) and I got this output, where I think I can choose the number of components based on RMSEP, but how do I choose it? Data: X...
2002 Aug 01
2
Building a function
...e names of the arguments and the formula in a list or a vector ? When I use the function as.function(), I don't know how to define explicitly the names of my variables as formal arguments. Thanks _______________________________________ Florent BATY CNRS UMR 5558 Dynamique des Populations Bact?riennes Facult? de M?decine Lyon-Sud 69921 OULLINS, BP 12 FRANCE tel : +33 (0)4 78 86 31 67 fax : +33 (0)4 78 86 31 49 _______________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~h...
2007 Aug 28
3
How do you keep mocks updated without pain?
...hen I know that I should think much more when mocking(== designing) things. When I googled about this topic I have found similar worries out there and I got two solutions, where David [1] suggest to write integration tests (what should indicate that mocks are outdated) and Ryan [2] suggest to fall bact to fixtures. I feel I will fall back to fixtures, so no more designing fun with mocks but things feels more lightweight and practical :-) Or perhaps it''s more up to project size and conditions... I don''t know yet. Oki, Priit at typical.nuby.reaction.to.mock.things [1] http://bl...
2011 Oct 07
1
Unexpected behavior of extract (`[`) or sapply functions
...t data frame (?test.df?) when run first of a vector of two column number for factors and then on just one. You can see how the structure of the output shifts. I can not understand what is happening. What I want it to do when given just factor cols =c(1) is to give me back exactly what it gives me bact for factor colum 1 in factor.cols = c(1,2). Any help or suggestions would be greatly appreciated. Sincerely, andrewH # Test Data test.df <- data.frame(AA=rep(LETTERS[1:2], c(6,6)),BB=rep(LETTERS[3:5], c(4,4,4)), CC=rep(LETTERS[6:9],c(3,3,3,3)), DD=c(1:12))...
2012 Feb 21
0
mvabund package: errors using manyglm() and meanvar.plot()
Dear R users, I am trying to analyze multivariate abundance data using the mvabund package, but errors occur for several functions. I created a mvabund object named faunadat consisting of 8 dependent variables each containing 64 positive integer values (bact, fung, plant, omn, pred, orib, meso, spring). There are 4 factors: harv, rep, depth and lit. I then created a formula: > mvform<-mvformula(faunadat~harv*rep*lit+harv*rep*depth+harv*lit*depth+rep*lit*depth) When I try to create a mean-variance plot, I get the following error. I have checked...
2005 Aug 18
1
GLMM - Am I trying the impossible?
...eed we are attempting the wrong type of analysis, some guidance about what would be the right thing to do would be greatly appreciated. The details: The data: The data are from the end-point of a survival experiment with fish. The design of the experiment is a 2 x 2 factorial, with each factor (Bacteria and Parasite) at two levels (yes and no). There were 16 fish in each tank, and the treatment was applied to the whole tank. There were in all 10 tanks (160 fish), with 2 tanks for controls (no/no), 2 tanks for (Parasite:yes/Bacteria:no) and 3 tanks for each of the other 2 treatments. A dead...
2004 May 12
8
How do fix a good solution against spam..
Heya folks First of all, sorry if this isn't the correct list, but yet, I think spam is a kind of network attack and should be treated as a security issue.. I run a working mail server using Postfix, MySQL, Courier-IMAP, SpamAssassin and ClamAV (amavisd-new) .. I've checked the configuration file for SpamAssassin, but yet I havn't find any good solution for spam.. Sure, spam will