search for: j1

Displaying 20 results from an estimated 245 matches for "j1".

2010 Mar 05
3
How to match vector with a list ?
Dear list, I have a vector of characters and a list of two named elements : i <- c("a","a","b","b","b","c","c","d") j <- list(j1 = c("a","c"), j2 = c("b","d")) I'm looking for a fast way to obtain a vector with names, as follows : [1] "j1" "j1" "j2" "j2" "j2" "j1" "j1" "j2" I used : match <- lapp...
2004 Oct 15
2
combine many .csv files into a single file/data frame
Dear R users, I have a few hundred .csv files which I need to put together (full outer joins on a common variable) to do a factor analysis. Each file may contain anywhere from a few hundred to a few thousand rows. What would be the most efficient way to do this in R? Please include some sample code if applicable. Thank you, b.
2007 Aug 24
2
as.numeric : what goes wrong?
I have a character vector j1 created from dimnames and want it to convert it to numeric. Like the first element: > j1[1] f896 1 896 > as.numeric(j1[1]) [1] 1990 why is it not 896 as it should be? This is true fr the whole vector. Thanks W.P. [[alternative HTML version deleted]]
2008 Mar 27
5
Problem with socket_process: Call rejected by 127.0.0.1: Busy
Hi I am not sure why this is happening or whether it has anything to do with my iaxmodem setup. When receiving a fax via iaxmodem, I got an error message saying *chan_iax2.c:7542 socket_process: Call rejected by 127.0.0.1: Busy*
2004 Nov 04
3
keep dimension of a sub matrix
Hi, is there any way to keep a sub matrix dimension? exemple : i1<-1; i2<-1 j1<-2; j2<-3; ret <-matrix(1,4,4)[i1:i2,j1:j2] ; dim(ret) is NULL because the submatrix single col or single row is coerce to a vector automaticaly. How can i bypass this cast : submatrix->vector ??????? Thank you. --------------------------------- [[alternative HTML...
2013 Feb 18
2
error: Error in if (is.na(f0$objective)) { : argument is of length zero
...lt;-K%*%one ARLV2<-t(ARLV) return((ARLV2%*%y)/3) } # constraint function eval_g0 <- function(x) {m1<-100 t1<-2*m1+1 H1<-matrix(data=NA,nrow=t1,ncol=t1) I1<-diag(t1) delta1<-2*x[1]/t1 z1<--x[1]+.5*delta1 range11<-t1 for (i1 in 1:range11){ z_i1=-x[1]+(i1-.5)*delta1 for (j1 in 1:range11){ up1<-((-x[1]+j1*delta1-(1-x[2])*z_i1)/x[2]) down1<-((-x[1]+(j1-1)*delta1-(1-x[2])*z_i1)/x[2]) H1[i1,j1]<-pnorm(up1,mean=5,sd=1)-pnorm(down1,mean=5,sd=1)} } K1<-solve(I1-H1) one1 <- matrix(1,nrow=t1,ncol=1) u1 <- matrix(0,nr...
2015 Jan 20
6
[LLVMdev] Basic AliasAnalysis: Can GEPs with the same base but different constant indices into a struct alias?
...n even number of floats. However, I think we can safely say GEPs with different constant indices into a struct can't alias, at least when: - the GEP is inbounds - the access sizes are such that there is no overlap - the struct index is the final one That is, these can't alias: gep i1, j1, k1, 0 gep i2, j2, k2, 1 If this is a struct pointer: gep i1, j1, k1 I couldn't come up with a counterexample that would prevent us from doing this in BasicAA. I was surprised it wasn't; surely I missed something? Thanks! -Ahmed -------------- next part -------------- A non-text...
2011 Dec 29
3
Array element is function of its position in the array
...new[i,j,k]=Vold[i,j,ks] where ks is a function of the index elements i,j,k. I want to do this WITHOUT a loop. Call the function "ksfunction", and the array dimensions nis,njs,nks. I can do this using a loop as follows: # Loop version: Vnew<-array(NA,c(nis,njs,nks) for(i1 in 1:nis)for(j1 in 1:njs)for(k1 in 1:nks)Vnew[i1,j1,k1]<-Vold[i1,k1,ksfunction(i1,j1,k1)] I already know how to create an array of the ks's: ksarray[i,j,k]=ksfunction(i,j,k) # I have the array ksarray ready I don't want a loop because nis,njs, and nks are pretty large and it takes forever. Would app...
2008 Sep 16
1
Car.proper C[] matrix
...se R to create the C[] matrix required for a car.proper model in WinBUGS, but I am having a difficult time negotiating the coding. The C matrix provides normalized weights for each pair of spatial areas. So the WinBUGS example is as follows: # of the weight matrix with elements Cij. The first J1 elements of the C[] vector contain the # weights for the J1 neighbours of area i=1; the (J1+1) to J2 elements of the C[] vector contain # the weights for the J2 neighbours of area i=2; etc. # To set up this vector, we need to define a variable cumsum, which gives the values of J1, # J2, etc.; we...
2006 Nov 22
1
how to merge these dataframes
Hi, Having 3 dataframes with different row numbers, but equal column names (see below) I want to merge them by Var1 so I've tried: merge(j1,j2,j3,by="Var1") merge(j,j1,j2,by=names("Var1")) But always got the same message: Erro en fix.by(by.x, x) : 'by' must specify column(s) as numbers, names or logical What I'm doing wrong? Thanks, Antonio j1 Var1 Freq 1 1988-01-13 1 2 1988-01-...
2002 Feb 22
3
Cent. Mov. Ave
...ng question(I think) Suppose I want to calculate Centered Moving Averages; i.e. x[1] <- ( sum(y[1:12]) )/12 x[2] <- ( sum(y[2:13]) )/12 and so on. Of course, this is easily done through loops. However, I have been trying to do this more elegantly, but have failed. I have tried things like j1 <- 1:109 j2 <- 12:120 x[1:109] <- ( sum( y[j1:j2]) )/12 but it doesn't work. (Surprise!) R 1.4.0 on windows. Any ideas would be much appreciated! Thanks! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downto...
2007 Mar 09
1
Applying some equations over all unique combinations of 4 variables
...2"), mf <- c("h1","h2")) names(alphahill) <- fnams betahill <- list(am <- c("b1","b2","b3"), pm<- c("e1","e2","e3"), cm <- c("g1","g2"), mm <- c("j1", "j2")) names(betahill) <- mnams hilltop <- list(af <- data.frame(a1 <- 1:4 , a2 <- 2:5, a3 <- 3:6), pf <- data.frame(d1 <- 4:1, d2 <- 5:2, d3 <- 6:3), cf <- data.frame(f1 <- 1:4, f2 <- 3:6), mf...
2006 Oct 03
2
strverscmp, scandir, alphasort and versionsort
...ned long shift10(unsigned long v, int n) { while (n--) v *= 10; return v; } /* strverscmp */ int strverscmp(const char *s1, const char *s2) { int i; unsigned long v1, v2; /* numerical value */ int l1, l2, /* length of digit strings */ z1, z2, /* length of leading zeroes string */ j1, j2, /* pointers to the beginning of the digit strings */ k1, k2; /* pointers to after the digit strings */ for (i = 0; s1[i] && s1[i] == s2[i]; i++); if (s1[i] == s2[i]) return 0; /* s1[i] != s2[i] */ /* s1[i] or s2[i] not in a digit string, normal cmp */ if ((!isdigit(s1[...
2007 Jan 16
1
J1/INS1500 and the Redirect Number
Hi everyone! I'm wondering if anyone on the list had the opportunity to work with an NTT INS1500 ISDN PRI service before. You see, in Japan, if you receive a call that was just forwarded by another number, the call presentation not only includes the caller (ANI) and your number (DNIS), it will also usually include the forwarding number (REDIRECT). Does anybody know how to extract this field
2006 Jun 07
2
help with combination problem
...T3 N2 N3 N4 T4 mu1 10 10 9 10 9 9 8 10 mu2 11 11 9 11 9 9 9 11 ... muN 12 12 9 11 9 9 8 12 Second df object: of Dim (50000,31). Columns 2:31 are maked as T1...T14 and N1..N16. Name T1 T2 N1 T3 N2 N3 N4 T4 J1 2 3 20 2 22 21 29 3 J2 4 1 20 3 20 21 22 4 J3 3 1 33 1 31 31 33 3 ... JX 3 2 20 2 21 22 24 2 The column samples are identical in both first and second data frames. Third df object: of Dim (200,2). V1...
2016 Nov 11
3
dahdi_scan
lspci | grep Digium 03:05.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) dahdi_scan So I have a card in a box - lspci shows it... dahdi_scan reports nothing. Is my card dead? Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161111/404b7e5e/attachmen...
2007 May 10
1
[LLVMdev] llvm-test / parallel runs
hello, is there a simple way to run multiple benchmarks in parallel without breaking the reporting scripts? currently there's an explicit -j1 in Makefile.programs - i guess with purpose. we're simulating our target architecture and parallel builds/runs on multicore machines would drastically decrease the required simulation time. cheers, - dietmar
2006 Apr 18
4
ISDN in Japan?
...--- I'm about to set up an asterisk box for use in Japan but can't figureout if it's all ISDN there or what? I have gathered so far that the two major providers, NTT and KVH both offer ISDN lines with .......INS1500 and maybe INS64 protocols? Not sure... But I'm seeing stuff about J1 vs. T1/E1 .... so does that mean I can't use a Digium card it there? Can someone please clarify what sort of system I'm looking at here and if I need a japanese retailer for the card or what ;-) Thanks! -- Chris Earle System Solutions Specialist -- This message has been scanned for...
2020 Nov 12
2
nfs root kerberos
...ly, after a significant amount of effort, I figured that out last > night. > > In my case, I needed to add a realms section for realm > AD.EECS.YORKU.CA and include 2 auth_to_local rules as follows: > > [realms] > ? AD.EECS.YORKU.CA = { > ??? auth_to_local = RULE:[1:$1@$0](J1\$@AD.EECS.YORKU.CA)s/.*/root/ > ??? auth_to_local = DEFAULT > ? } > > This allows root on "J1" to "really" be root.? Additional of the first > line are required for each system.? The DEFAULT line is required.?? > Lots of fun let me tell ya. > > Jason. &...
2020 Nov 12
2
nfs root kerberos
On 11/11/2020 10:54, Jason Keltz via samba wrote: > Hi Louis, > I've looked into that and I'm not sure how this would be done? > By the way, even with your NFS translation fix (which doesn't work for me because gssproxy), do you do this before accessing root files..? > sudo root > kinit -k 'host$' > OK, after a bit of a battle, I now have a Centos 7 Unix