search for: exmpl

Displaying 20 results from an estimated 44 matches for "exmpl".

Did you mean: exempl
2012 Feb 15
7
matching a sequence in a vector?
...hives on this topic -- but as yet have not found a solution. I'm sure this is pretty simple with R, but I cannot work out how without resorting to ugly nested loops. As far as I can tell, grep, match, and %in% are not the correct tools. Question: given these vectors -- patrn <- c(1,2,3,4) exmpl <- c(3,3,4,2,3,1,2,3,4,8,8,23,1,2,3,4,4,34,4,3,2,1,1,2,3,4) how do I get the desired answer by finding the occurence of the pattern and returning the starting indices: 6, 13, 23 Suggestions very much appreciated! Kind regards, Matt Redding, Ph.D. Principal Scientist Geochemist/Soil Chemis...
2008 May 19
3
Can anyone give a exmple of use Ajax.Response?
hi, everyone , could anyone give a exmple of use Ajax.Response? I can not find a sample in prototype homepage --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-...
2011 May 13
2
Creating dataframes
I would like to create a certain number of dataframes out of one dataframe where each of the dataframes is related to a factor. This should be possible with a loop or a function, as is very clumsy to do it manually when there are quite a lot factors. For example having a dataframe called "exmpl": Site Value 1 12 1 15 1 18 1 21 1 12 1 13 2 15 2 12 2 58 2 62 2 22 2 65 2 29 3 21 3 55 3 11 3 98 I would like to create 3 dataframes, where "exmpl_01" equals: 1 12 1 15 1 18 1 21 1 12 1 13 "exmpl_02" equals: 2 15 2 12 2 58 2 62 2 22 2 65 2 29 "exmpl_03&quo...
2004 Mar 23
3
building data object on iteration
Hello I need help, few days tying to work this out but unable to find examples. "alos would appricate direction on how to find exmples" getting the file name "without the extension" into a character vector. for (i in dir("c:/data/")){ filename <- c(filename,sub("([^.]+)(\\..+)","\\1", i)) } Error: Object "filename" not found and I understand why the error but cann'...
2012 Aug 28
4
Search for locations of subsequences?
Is there a function to efficiently search for a subsequence within a vector? For example, with x <- 1:100 I'd like to search for the sequence c(49,50,51), and be told that it occurs exactly once, starting at location 49. (The items in the vectors might be numeric or character, and there might be repetitions within the search pattern or within the vector I'm searching.) Duncan
2009 Jun 22
3
rsync is fantastic except for one usual feature we want from it .. please help ?
...is a fantastic program, and it does everything we need in terms of file transfer and syncing source and destination file directories. We do have a situation now where we need rsync to transfer the files once only from the source directory. Please let me briefly explain using a simple generic exmple: 1. At t0, we transfer f0 location A to location B 2. At t1, 10 new files are added to Location A Therefore, rysnc faithfully transfers all 10 new files to location B At location B, we now have f0 to f10. 3. At t2, f0 to f3 are deleted from location B, and we don't ever want the...
2015 Dec 11
2
libvirt domain configuration xml
I am trying to change a domain configuration from a python script. More specific, I want to edit the VNC settings. You can't do this using the libvirt API so you have to edit the domain configuration: Fo exmple, to disable VNC for a domain 'test1': vmXml = vm.XMLDesc(0) root = ET.fromstring(vmXml) devices = root.find('./devices') graphics = devices.find('graphics') devices.remove(graphics) xml = ET.tostring(root) with open('path_to/test1.xml', 'w') as f: f.write(x...
2010 May 14
1
[LLVMdev] How to get a constant of some type?
How to get a constant of some type? For exmple, get a constant 10 of Int32Ty. Perhaps it's a stupid question. Thank you very much in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100514/1da48d4e/attachment.html>
2011 Dec 02
1
[LLVMdev] Running a pass during JIT
Hi everyone I would like to run a pass that I have wrote during the JIT (lli). But LLVM does not seem to have such an option. I can't even call standard LLVM's passes (for exmple, -adce). I have also tried to use lli -load=<path to the .so file of my pass>. But that won't help either. Anyway, is there a way do to that? Sincerely, Schuhmacher -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-d...
2015 Feb 25
2
dsync backup touch source index files.
Hi everyone, Can someone explain me why dsync need read-write access to source box when pulling data (dsync -R backup)? I am working on migration from Dovecot 1.x with maildir to latest Dovecot 2.2.15 with mdbox and found that there is no way to do this from ro filesystem (got "failed: Read-only file system" on access to /dovecot.index.log). I am wondering is it bug or feature? I
2004 Jun 30
1
help with tclVar
Hi, I can' t load a variable tcltk declared with tclVar, why is this?, the exmple above explain me ,Thanks Ruben a<-tclVar(init="") > f<-function(){ + a<<-"pipo" + } > f() > a [1] "pipo" > tclvalue(a) Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tc...
2005 Apr 14
1
question about "R get vector from C"
Dear ALL-R helpers, I want to let R get vector from c ,for example :numeric array ,vector .I saw some exmple like this : /* useCall3.c */ /* Getting an integer vector from C using .Call */ #include <R.h> #include <Rdefines.h> SEXP setInt() { SEXP myint; int *p_myint; int len = 5; PROTECT(myint = NEW_INTEGER(len)); // Allocating storage space...
2008 Dec 22
1
Asterisk SIP URi dialing
..."Inward" SIP usring dialing in my Asterisk IPpbx, So anybody can recah me by dialing my SIP uri. same time my DNS on same server where currently Asterisk running. how ican implement this. Please help me with config details at DNS & Asterisk point of view. anybody can provide me config exmple? I am using Asterisk 1.4.9. Plz help me Regards Amit Salunkhe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081223/e1982f09/attachment.htm
2002 Jun 26
1
R-News2002-2 (little suggestion!)
...ogrammer's niche with the really nice example to do a lot of rpart object's in one step. More advanced "people" are have got the skills to adapt this, but "beginners" like me for the last grid-examples get "problems" and IMHO it is more easy to understand the exmples with "free" dataSets - ( fast to adapt )!? P.S. a.notice, what i can not say often enough: ...follow the R-mailing List and R-news are the most advanced "statistic university" in the world for me ! regards,Christian -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2005 Aug 29
1
SER NAT any additional requirement
Hello i am trying to use this exmple with SER-0.9.3 but still NATED Clients are not working any other requirement http://www.voip-info.org/tiki-index.php?page=SER+example+NAThelper ----------------------------------------------------------- # $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $ # # simple quick-start config scrip...
2019 Nov 25
4
big share problem
...I've a big problem with my shares on a domain AD member server. On this server there is severals shares directories : - \data\dir1 [share_one] - \data\dir2 [share_two] - \data\dir3 [share_three] \data is a mounted partition when I browse one of my share in windows, \\myserver\share_one for exmple, I can see all directories of my server !! : bin, boot, dev, lib, ..... data directory is here but I can't access it. The samba status deamon log : [2019/11/25 19:05:31.753338,? 0] ../source3/smbd/uid.c:417(change_to_user_internal) nov. 25 19:05:31 myserver.mydomain smbd[75484]: change_to_...
2005 May 30
2
R: R: AT-320 + supervised transfer
...d i don't why. Here my sip.conf for the phone, can u say me if there is somethingh wrong ? [2391] type=friend username=2391 secret=2391 language=it host=dynamic context=intern dtmfmode=rfc2833 callgroup=1 pickupgroup=1 I think is ok, maybe i have some problem on phone settings.Can I see your exmple phone setting ? Thanks, Giordano -----Messaggio originale----- Da: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Per conto di Gavin Hamill Inviato: luned? 30 maggio 2005 18.04 A: asterisk-users@lists.digium.com...
2020 Oct 29
1
R: sim1000G
...i]) } case.idx = sample(which(genocase==1),1000) control.idx = sample(which(genocase==0),1000) return(rbind(gt[case.idx,],gt[control.idx,])) } How I can modify code in a way that it will simulate: 50 % of causal SNPs** ( exmp. 24 causal variants and 24 non causal SNPs) 10 % of causal SNP (exmpl. 5 causal and 43 non causal SNPs) Thanks a lot for any suggestion. [[alternative HTML version deleted]]
2005 May 30
4
R: R: R: AT-320 + supervised transfer
...re for the phone. Download 1.43 from http://www.aredfox.com/edownloadssip.htm (the AT-320 needs PA186S code) > Here my sip.conf for the phone, can u say me if there is somethingh wrong ? Looks fine to me.. > I think is ok, maybe i have some problem on phone settings.Can I see > your exmple phone setting ? They're at work so I can't see the config right now... but they're just the defaults with the DTMF changed to RFC2833 and the NTP server set... Try resetting to defaults using the procedure at http://www.voip-info.org/wiki-ATCOM+AT-320 Cheers, Gavin. _______________...
2019 Dec 30
2
RFC: Refactor SubclassData
...bits* - no need to get offset from super (manually). > * *[_|_|X] automatic calculation of unused bits* - changing a single bitfield doesn't require any other change, but the actual bitfield itself (as opposed to changing also the sum of the bit count used by the class, in an `enum` - for exmple). > * *[_|_|X] implicit reference to superclass* - as opposed to the need to use the base class' info explicitly. > * *[_|_|X] no need to know anything about any of the base classes*. I agree that forgetting to update the offset in the enum can be a source of error (but the enum is...