search for: bad2

Displaying 9 results from an estimated 9 matches for "bad2".

Did you mean: bad
2011 Mar 12
2
plot generates graph with coordinantes written over it
Hello R users, Im having this strange problem. http://r.789695.n4.nabble.com/file/n3350024/bad2.png I have txt file of this format (X.X, Y.Y - random numbers, ...) with data points: nm A nm A nm A X.X Y.Y X.X XX X.X X.X Y.Y Y.Y Y.Y Y.Y My script looks like this: require(graphics) require(stats) par(mfrow=c(1,1)) HMF=read.table("D:/BIOTECHLAB1/DATA-zprac/10mg 1-7cp.txt", header =...
2010 Jan 28
2
Constrained vector permutation
...re's an example, suppose I have the vector x x <- 2:6 This vector already fits the constraint, and a permutation such as x.good <- c(2,4,6,5,3) would also fit the constraint, but the vector x.bad1 <- c(4,6,5,3,2) does not work because of the 4 in the first position. The vector x.bad2 <- c(2,6,5,3,4) does not work because of the 6 in the second position. Does anyone know of a pre-made function to permute a vector under such a constrain? Or perhaps a clever way to somehow use a function (e.g. ---) that permutes a contingency table constrained by the marginals? If such poss...
2006 Aug 15
2
Unit Testing Problem
I''m having a bit of difficulty when testing my models, I''ve read a few times the testing chapter in Agile web development with rails and at http://manuals.rubyonrails.com/read/chapter/27 but i''m still unsure of what I should be testing. Firstly I''d like to be able to test things like my email validation using lines such as assert User.new(:email =>
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...c 76753 src/library/methods/R/RMethodUtils.R --- src/library/methods/R/RMethodUtils.R (Revision 76752) +++ src/library/methods/R/RMethodUtils.R (Revision 76753) @@ -342,8 +342,7 @@ gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2), call. = TRUE, domain = NA) } - else if(!all(signature[omittedSig] == "missing")) { - omittedSig <- omittedSig && (signature[omittedSig] != "missing") + else if(any(omittedSig <- omittedSig & signature != "missing")) {...
2019 Jun 28
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
> On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Henrik Bengtsson >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: > >> Using: >> >> untrace(methods::conformMethod) >> at <- c(12,4,3,2) >> str(body(methods::conformMethod)[[at]]) >> ## language omittedSig
2019 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...thods/R/RMethodUtils.R > --- src/library/methods/R/RMethodUtils.R (Revision 76752) > +++ src/library/methods/R/RMethodUtils.R (Revision 76753) > @@ -342,8 +342,7 @@ > gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2), > call. = TRUE, domain = NA) > } > - else if(!all(signature[omittedSig] == "missing")) { > - omittedSig <- omittedSig && (signature[omittedSig] != "missing") > + else if(any(omittedSig <- omittedSig & signature...
2019 Jul 04
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...? ? >> --- src/library/methods/R/RMethodUtils.R??? (Revision 76752) ? ? >> +++ src/library/methods/R/RMethodUtils.R??? (Revision 76753) ? ? >> @@ -342,8 +342,7 @@ ? ? >> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2), ? ? >> call. = TRUE, domain = NA) ? ? >> } ? ? >> -? ? else if(!all(signature[omittedSig] == "missing")) { ? ? >> -? ? ? ? omittedSig <- omittedSig && (signature[omittedSig] != "missing") ? ? >> +? ? else if(any(omittedSig <- omitted...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
...tils.R >> --- src/library/methods/R/RMethodUtils.R (Revision 76752) >> +++ src/library/methods/R/RMethodUtils.R (Revision 76753) >> @@ -342,8 +342,7 @@ >> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2), >> call. = TRUE, domain = NA) >> } >> - else if(!all(signature[omittedSig] == "missing")) { >> - omittedSig <- omittedSig && (signature[omittedSig] != "missing") >> + else if(any(omittedSig <- omitted...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...tils.R >> --- src/library/methods/R/RMethodUtils.R (Revision 76752) >> +++ src/library/methods/R/RMethodUtils.R (Revision 76753) >> @@ -342,8 +342,7 @@ >> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2), >> call. = TRUE, domain = NA) >> } >> - else if(!all(signature[omittedSig] == "missing")) { >> - omittedSig <- omittedSig && (signature[omittedSig] != "missing") >> + else if(any(omittedSig <- omitted...