similar to: Find index of a string inside a string?

Displaying 20 results from an estimated 900 matches similar to: "Find index of a string inside a string?"

2011 May 05
3
cross-correlation table with subscript or superscript to indicate significant differences
Hi, I wonder whether the following is possible with R, and whether anyone has done that and can share his/her code with me. I have a correlation matrix, and I want to create a correlation table that I can copy to Microsoft Word with a superscript above each correlation, indicating significant differences in the same row. That is, when correlations in the same row do not share superscript, it means
2011 Apr 20
2
get cells by the combination of their column and row names
Hi, I have a (correlation) matrix and I want to select a subset of its cells depending on the combination of their column and row names. This illustrates my problem: mtrx <- matrix(c(1,2,3,4,5,6,7,8,9), nrow=3, ncol=3, dimnames = list(c('c132','c432', 'c233'), c('r132','r233', 'r432')))> mtrx r132 r233 r432c132 1 4 7c432 2
2012 Dec 06
4
Assignment of values with different indexes
I would like to take the values of observations and map them to a new index. I am not sure how to accomplish this. The result would look like so: x[1,2,3,4,5,6,7,8,9,10] becomes y[2,4,6,8,10,12,14,16,18,20] The "newindex" would not necessarily be this sequence, but a sequence I have stored in a vector, so it could be all kinds of values. here is what happens: > x <- rnorm(10)
2010 Mar 07
3
Can PXElinux be used to dynamically pass DHCP option 252 to a PXE client?
All (and hpa in particular), I know that the question in the subject line of this message may come across as a bit silly, given that PXElinux is not a DHCP server, but hear me out... Those of you who have been working on PXE-booting Windows PE instances or the new Windows installer images that make use of the Windows Boot Manager and ".wim" files may have come across the general
2016 Jun 09
1
Unable to setup messaging listener
Hello people, Today I noticed that there's a lot of this messages in the /var/log/messages: Jun 9 13:23:00 bcd samba[14033]: [2016/06/09 13:23:00.772684, 0] ../source4/lib/messaging/messaging.c:644(imessaging_init) Jun 9 13:23:00 bcd samba[14033]: Unable to setup messaging listener for '/opt/samba/private/smbd.tmp/msg/msg.14033.41':NT_STATUS_DISK_FULL Jun 9 13:23:00 bcd
2013 Feb 21
0
[LLVMdev] llvm-ar llvm-link
Hi Ankur, Why do you need archive in this case? The other way of doing this is to merge all bitcode files into single file: $ clang -c -emit-llvm abc.c -o abc.bc $ clang -c -emit-llvm bcd.c -o bcd.bc llvm-link bcd.bc abc.bc -o merged.bc Cheers, Ahmad From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of ankur deshwal Sent: 21 February 2013 17:54 To:
2013 Mar 14
2
Modifying a data frame based on a vector that contains column numbers
Hello! # I have a data frame: mydf<-data.frame(c1=rep(NA,5),c2=rep(NA,5),c3=rep(NA,5)) # I have an index whose length is always the same as nrow(mydf): myindex<-c(1,2,3,2,1) # I need c1 to have 1s in rows 1 and 5 (based on the information in myindex) # I need c2 to have 1s in rows 2 and 4 (also based on myindex) # I need c3 to have 1 in row 3 # In other words, I am trying to achieve this
2013 Feb 22
1
[LLVMdev] llvm-ar llvm-link
Hi Ahmad, Yes, merging works good. However, my problem is like this - I have a C library which consists of 1000's of functions spread through various files. The functions do not have dependency amoung each other. I want to link only relavant files( files which have functions called from my application). Since ar has a global symbol table, I believe it should be faster to look for a symol in
2013 Feb 21
2
[LLVMdev] llvm-ar llvm-link
Hi, I tried to build an llvm archive and link it against an llvm bc file. However, it fails. Following is the procedure I followed ( abc.c is file which calls a function whose definition is present in bcd.c) $ clang -c -emit-llvm abc.c $ clang -c -emit-llvm bcd.c $ llvm-ar cr bsd.ar bcd.o $ llvm-link abc.o bsd.ar llvm-link: bsd.ar:1:2: error: expected integer !<arch> ^ llvm-link:
2015 Sep 01
2
Samba AD - Issue with winbindd: Could not write result
Hi Rowland, thanks for your response. Both samba is self compiled . DC 1: [root at wdc samba]# uname -a Linux wdc 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root at wdc samba]# cat /etc/redhat-release CentOS release 6.6 (Final) [root at wdc samba]# cat /etc/resolv.conf search DOMAIN nameserver 172.16.5.22 nameserver 172.16.5.1
2014 Aug 30
0
PXE booting WinPE with UEFI architecture
On Fri, Aug 29, 2014 at 8:01 PM, Spike White <spikewhitetx at gmail.com> wrote: > But chain-loading into WinPE would be useful too. > In order to use "wimboot", I have to use ./efi64/com32/modules/pxechn.c32 > to chain-load into ipxe? As so: pxechn.c32 contains BIOS-only code and is not going to work in any EFI environment. > LABEL WinPE > MENU LABEL
2008 Dec 20
1
How to do indexing after splitting my data-frame?
Hello, after splitting a data-frame I want to access the results. Maybe the problem is, that the factor/index is a string... ...or do I miss knowing details of the index-uasge? Please look and help: ======================================= > weblog <- read_weblog("web.log") > > > str(weblog) 'data.frame': 2247 obs. of 18 variables: $ host : Factor w/ 77
2015 Sep 01
2
Samba AD - Issue with winbindd: Could not write result
----- Mensagem original ----- De: "Rowland Penny" <rowlandpenny241155 at gmail.com> Para: samba at lists.samba.org Enviadas: Terça-feira, 1 de Setembro de 2015 12:05:20 Assunto: Re: [Samba] Samba AD - Issue with winbindd: Could not write result On 01/09/15 15:33, Rafael Domiciano wrote: > Hi Rowland, thanks for your response. > > Both samba is self compiled. >
2014 Aug 30
2
PXE booting WinPE with UEFI architecture
> Date: Fri, 29 Aug 2014 13:02:10 +0100 > From: Michael Brown <mcb30 at ipxe.org> > To: Jason Jones <jason.s.jones at convergys.com>, "syslinux at zytor.com" > <syslinux at zytor.com> > Subject: Re: [syslinux] PXE booting WinPE with UEFI architecture > Message-ID: <54006BC2.3090703 at ipxe.org> > Content-Type: text/plain;
2015 Sep 02
2
Samba AD - Issue with winbindd: Could not write result
On 02/09/15 13:34, Rafael Domiciano wrote: > The same problem ocurred today. The same log in /var/log/messages in > DC, and I have to stop and start the samba service. Any help is > appreciate. > > Regards, > > Rafael > > > ------------------------------------------------------------------------ > *De: *"Rafael Domiciano" <r.domiciano at
2008 Dec 03
1
intersection of two matrices(updated)
Hi, I have two matrices as follow: matrix A = a=matrix(c(c("abc","abc","bcd","bcd","bce","bce"),c("a1","d2","d1","d2","a1","a2")),6,2) and matrix B which contains pair of values : b=matrix(c(c("a1","a1"),c("a2","d2")),2,2) In short,
2016 Apr 04
2
Changes to get CD to boot on EFI System.
On Monday, April 4, 2016, 14:01:42, Thomas Schmitt via Syslinux wrote: > What software and options did you use to produce the ISO ? Since I'm on Windows, I ended using Microsoft's oscdimg, with the following command line: oscdimg.exe -a -m -o -j1 -bootdata:2#p0,e,bcd\isolinux\boot.bin#pEF,e,bcd\boot\efiboot.ima CD sysresccd.iso I haven't tried booting the resulting ISO in BIOS
2013 Dec 13
1
substring() and propagation of names
Hi, In R < 3.0.0, we used to get: > substring(c(A="abcdefghij", B="123456789"), 2, 6:2) A B A B A "bcdef" "2345" "bcd" "23" "b" But in R >= 3.0.0, we get: > substring(c(A="abcdefghij", B="123456789"), 2, 6:2) [1] "bcdef"
2013 Feb 27
3
Weird problem with puppet 3.1 on Windows
Hi all, I''m installing the latest version of puppet (opensource) for Windows on Windows 2008 Server (At Amazon EC2). For some reason, Puppet''s scheduled task is configured to run every 20 hours instead of the desired 30 minutes (as shown in - http://docs.puppetlabs.com/windows/running.html) Is it a bug in Puppet? Is it something that I misconfigured? Screenshot of the
2012 Oct 08
3
turn list into dataframe
Dear R users, I'm starting to use 'apply' functions rather than for loops in R, and sometimes the output is a bit different than what I want. In this case, the command was tapply(myvector,myindex,cumsum) And the output was something like this: $`SNRL1 Core 120` [1] 2.8546 4.0778 5.2983 6.3863 7.5141 8.5498 9.5839 10.6933 $`SNRL1 Core 230` [1] 7.6810 8.7648 9.8382