search for: a11

Displaying 20 results from an estimated 104 matches for "a11".

Did you mean: a1
2009 Dec 17
1
CORRECTION - Generation of Random numbers in a loop
Dear R helpers, please ignore my earlier mail. Here is the corrected mail. Please forgive me for the lapses on my part. Extremely sorry.   Here is the corrected mail.     Dear R helpers   I am having following data   Name           Numbers A11                  12 A12                  17  A13                   0 A11                  11  A12                   6 A13                   0 A11                   8 A12                   4 A13                   3   CONDITIONS   If Name is A11, min_val = 1.05, max_val = 1.30 If Name is A12, min...
2011 Aug 05
2
R compare cells in one matrix
...[,1] [,2] [,3] [,4] [,5] [1,] 277.4 276.24 275.62 276.55 278.05 [2,] 277.4 276.24 275.55 276.42 277.72 [3,] 277.4 276.24 275.50 276.22 277.39 [4,] 277.4 276.24 275.42 276.02 277.02 [5,] 277.4 276.22 275.37 275.82 276.64 And I want to *compare*its cells like this: a11 and a12; a11 and a21; a11 and a22. then a12 and a22; a12 and a13; a12 and a23. and so on in a cycle. *Is there a function or a package that can be used for comparation?* Thank you! -- View this message in context: http://r.789695.n4.nabble.com/R-compare-cells-in-one-matrix-tp3720854p3720854.ht...
2013 Feb 01
2
Nested loop and output help
...1,min=0.4, max=0.6) X <- z1 Y = cor*z1+(1-cor)*z2 mat1 <- cbind(X,Y) dev1 <- sample(-40:40, 1, replace=T) cut1 <- mean(X) + dev1 dev2 <- sample(12:54, 1, replace=T) cut2 <- mean(X) + dev1 + dev2 X2 <- X-cut1 Y2 <- Y-cut2 c3 <- cor(X2,Y2) mat2 <-cbind(X2,Y2) a11 <- ifelse( X < cut1 & Y < cut2, 1, 0) a12 <- ifelse( X < cut1 & Y >= cut2, 1, 0) a21 <- ifelse( X >= cut1 & Y < cut2, 1, 0) a22 <- ifelse( X >= cut1 & Y >= cut2, 1, 0) mat3 <-matrix(c(sum(a11),sum(a21), sum(a12),sum(a22)), nrow = 2) mat4 &...
2012 Mar 28
6
How to get all possible combinations?
Dear all, suppose I have a vector with elements as: Vec <- c(2,3,4,5,6) Now I want to have all possible combination of length 3 using those elements and without any repetition. Like, I want to have 1 possibility like 2-3-4 but not 3-2-4. Can somebody guide me how to achieve that in R? Thanks for your help.
2008 Jan 20
3
Logical test and look up table
...like to associate each name with a particular Type (coded as 1,2,3,4,H or H1) in a second column. Is it possible to do a lookup table of associations (i.e. A23 is of type 1, A13 is of type 3 ...) so as to fill up automatically the $Type column. df() $Source $Type A23 A24 A9 A32 A25 A14 A10 A12 A11 A13 G Alternative solutions are also welcome. Thanks in advance P.S. I found a discussion mentioning match() and %in% but it does not seem adapted. -- Nikola Markov Inserm U 846 Stem cells and brain research institute 18 av Du Doyen Lepine 69500 Bron France
2005 Nov 09
8
Element-by-element multiplication operator?
Is there an element-by-element multiplication in R, like the .* operator in Matlab? eg: A (2x3) B (2x3) C=A.*B C (2x3) C = [[a11*b11 a12*b12 a13*b13]; [a21*b21 a22*b22 a23*b23]] I can't find one... Thanks -Mike Gates
2009 Dec 17
1
Random Number Generation in a Loop
...a single csv file i.e. say 25 random numbers in teh range (1.05-1.30) followed by 3 random numbers in the range (1.30-1.60) and so on.   # ___________________________________________________    Here is the R code I have tried   ONS <- read.table(textConnection("name number                  A11    12                               A12    17                               A13     0                                   A11    11                                A12      6                                 A13      0                                 A11      8 A12      4                         ...
2012 Nov 14
1
R wildcards, sapply and as.factor
I want to change the type to factor of all variables in a data frame whose names match a certain pattern. So here I am trying to change the type to factor of all variables whose name begins with?namestub?in the dataframe?df. attach(df)sapply(grep(glob2rx("namestub*"),names(df)),as.factor) But this doesn't work since >levels(df$namestub1)NULL
2014 Jul 23
2
DELL E6510 pxelinux issues
Hello, On 23.07.2014 15:07, Ady wrote: >> Is there something I can test or help to diagnose? > > What about 6.03-pre18 (or newer)? > http://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/ 6.03-pre18 is still slow: > 16:06:07.494125 IP dell.phahn.dev.49232 > xen12.phahn.dev.57501: UDP, length 4 > 16:06:07.494250 IP xen12.phahn.dev.57501 >
2017 Aug 25
2
Are r2dtable and C_r2dtable behaving correctly?
It is not about "really arge total number of observations", but: set.seed(4711);tabs <- r2dtable(1e6, c(2, 2), c(2, 2)); A11 <- vapply(tabs, function(x) x[1, 1], numeric(1));table(A11) A11 0 1 2 166483 666853 166664 There are three possible matrices, and these come out in proportions 1:4:1, the one with all cells filled with ones being most common. Cheers, Jari O. __________________________________...
2007 Nov 16
4
Permutation of a distance matrix
...efficient way of permuting the rows and columns of a symmetrical matrix that represents ecological or actual distances between objects in space. The permutation is of the type used in a Mantel test. Specifically, the permutation has to accomplish something like this: Original matrix addresses: a11 a12 a13 a21 a22 a23 a31 a32 a33 Example permutation a22 a23 a21 a32 a33 a31 a12 a13 a11 that is relative positions of rows and columns are conserved in the permutation. Basically, I have been doing this in a "for" loop by (1) permuting the raw data vector...
2003 May 08
1
A problem in a glm model
...0.7898 0.4948 1.596 0.110475 flg.d.na21 0.2097 0.7336 0.286 0.774963 flg.v21 0.3928 0.5257 0.747 0.454994 flg.cc21 -0.8547 1.4954 -0.572 0.567625 flg.a11 0.7051 0.4889 1.442 0.149221 flg.d.na11 1.3582 0.5429 2.502 0.012353 * flg.v11 2.2596 0.5079 4.449 8.62e-06 *** flg.cc11 -3.3658 8.5259 -0.395 0....
2011 Jun 22
1
question about read.columns
HI, Dear R community, I have a large data set names dd.txt, the columns are: there are 2402 variables. a1, b1, ..z1, a11, b11, ...z11, a111, b111, ..z111.. IF I dont know the relative position of the columns, but I know I need the following variables: var<-c(a1, c1,a11,b11,f111) Can I use read.columns to read the data into R? I have tried the following codes, but it does not work hh<-read.columns("/hou...
2009 Jul 10
3
strange strsplit gsub problem 0 is this a bug or a string length limitation?
I was working with the rmetrics portfolioBacktesting function and dug into the code to try to find why my formula with 113 items, i.e. A1 thru A113, was being truncated and I only get 85 items, not 113. Is it due to a string length limitation in R or is it a bug in the strsplit or gsub functions, or in my string? I'd very much appreciate any suggestions ============Input script: backtestFormula<-SPX~A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+...
2004 Jul 03
2
DSTEIN error (PR#7047)
...<- rbind(rep(1:0,n), rep(0:1,n)) x1 <- t(D22)[,1] x2 <- t(D22)[,2] D2 <- rbind(cbind(diag(n), matrix(0, nrow = n, ncol = 2*n)), cbind(matrix(0, nrow = f, ncol = n), D22)) R <- matrix(0, nrow = n, ncol = k * n) Ra <- diag(n + n*k) A11 <- function(lambda, mu, sigma){ diag((1 + 2 * lambda^2 * sigma^2)/(mu^2 * sigma^2), nrow = n) } A22 <- function(lambda, sigma, n) { A <- matrix(0, nrow = n*2, ncol = n*2) block <- c(7 * sigma^2 / 4, lambda * sigma, lambda * sigma, 2 / (sigma^2))...
2010 May 27
1
stripplot, lattice
...ss, groups = plot, strip = strip.custom(strip.names = c(F,T)), ylab="log(Richness)", type = c("p", "a"),col=1, scales = list(y=list(cex=c(rep(0.5,39))),x = list(rot = 90,labels=c("Surr.","Gap")))) my data: stage site plot gap rich A A12 A12SW 0 0 A A11 A11NO 0 2 A A11 A11NW 0 3 A A11 A11SO 0 2 A A11 A11SW 0 2 A A12 A12NO 0 1 A A12 A12NW 0 2 A A12 A12SO 0 1 A A14 A14NO 0 1 A A14 A14NW 0 1 A A14 A14SO 0 1 A A14 A14SW 0 0 A A15 A15NO 0 1 A A15 A15NW 0 3 A A15 A15SO 0 3 A A15 A15SW 0 3 A A16 A16NW 0 1 A A17 A17NO 0 2 A A17 A17NW 0 3 A A17 A17SO 0 7 A...
2013 Jul 02
2
Dell OptiPlex GX620 can longer boot from CD with syslinux-5.X
System: Dell OptiPlex GX620 (Both BIOS A10 and A11 affected) Medium: Physical CD-RW Observed: ISOLINUX 5.11 0x51D1AE48 ETCD_ is the only line displayed on-screen. A flashing cursor trails at the end of the line. Escape key does not return boot: prompt. Line1 of syslinux.cfg: DEFAULT vesamenu.c32 Note: Reverting to syslinux-4.06 allows for successfu...
2017 Aug 24
3
Are r2dtable and C_r2dtable behaving correctly?
Hello, While doing some enrichment tests using chisq.test() with simulated p-values, I noticed some strange behaviour. The computed p-value was extremely small, so I decided to dig a little deeper and debug chisq.test(). I noticed then that the simulated statistics returned by the following call tmp <- .Call(C_chisq_sim, sr, sc, B, E) were all the same, very small numbers. This, at first,
2017 Aug 25
0
Are r2dtable and C_r2dtable behaving correctly?
> On 25 Aug 2017, at 11:23 , Jari Oksanen <jari.oksanen at oulu.fi> wrote: > > It is not about "really arge total number of observations", but: > > set.seed(4711);tabs <- r2dtable(1e6, c(2, 2), c(2, 2)); A11 <- vapply(tabs, function(x) x[1, 1], numeric(1));table(A11) > > A11 > 0 1 2 > 166483 666853 166664 > > There are three possible matrices, and these come out in proportions 1:4:1, the one with all cells filled with ones being > most common. ... and > dh...
2020 May 25
3
child killed by signal 6
...getting problems with some emails causing signal 6. I've already reported those, but it seems not to be easy to find the cause. From the logs, it seems to occur in sieve implementation. I've checked the email envelopes tody by accident, probably this part of my telnet session might help: a11 fetch 1 all * 1 FETCH (RFC822.SIZE 16750 INTERNALDATE "22-May-2020 05:02:34 +0000" ENVELOPE ("Fri, 22 May 2020 03:46:54 +0000" "RE: Http2 tomact server taking time in responding when 1st StreamId is a large integer value like 2147483641" (("Prateek Kohli" NIL...