similar to: Creating dataframes

Displaying 20 results from an estimated 120 matches similar to: "Creating dataframes"

2011 May 03
6
Simple loop
Hello everybody, I am beginning with loops and functions and would be glad to have help in the following question: If i have a dataframe like this Site Prof H 1 1 24 1 1 16 1 1 67 1 2 23 1 2 56 1 2 45 2 1 67 2 1 46 And I would like to create a new column that subtracts the minimum of H from H, but for S1 and P1 only
2012 Feb 15
7
matching a sequence in a vector?
Hi All, I've been trawling through the documentation and listserv archives 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 <-
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
2020 Oct 29
1
R: sim1000G
Hi, I am using the sim1000G R package to simulate data for case/control study. I can not figure out how to manipulate this code to be able to generate 10% or 50% causal SNPs in R. This is whole code provided as example on GitHub: library(sim1000G) vcf_file = "region-chr4-357-ANK2.vcf.gz" #nvariants = 442, ss=1000 vcf = readVCF( vcf_file, maxNumberOfVariants = 442 ,min_maf =
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
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
2009 Jun 22
3
rsync is fantastic except for one usual feature we want from it .. please help ?
Hi, Rsync 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
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')
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
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") : [tcl] can't
2008 Dec 22
1
Asterisk SIP URi dialing
Hi i need to implement "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
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
2002 Jun 26
1
R-News2002-2 (little suggestion!)
Hello, only a little suggestion for the great R-news, which is in my mind one of the best contribution to learn R and statistics for practical intentions. In some articles the dataSet is easy to get for everyone (i.e. the Time-Series articles ) & easy to follow the examples, but sometimes it is more diificult i.e the present programmer's niche with the really nice example to do a lot of
2019 Nov 25
4
big share problem
Hi, 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
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 script # # ----------- global configuration parameters
2010 Feb 13
2
Dovecot+Postfix+Maildir with ActiveDirectory userbase
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, has anyone implemented a mail server with maildir, Postfix and Dovecot using Active Directory ad userbase and password authentication? Do I need Samba to authenticate users? Can I use credential caching just like mysql? Ciao, luigi - -- / +--[Luigi Rosa]-- \ This morning at breakfast, I noticed that Kellogg's have put a helpline number
2020 Nov 01
0
R: sim1000G
Hi Berina, I'm not an expert on genetics. I haven't looked at the package. And I've only glanced at your question. So, this is probably not the best response. But as no one else has responded, here's some comments: (1) Have you checked if there's a function in the package to do what you want? The remainder of these questions assume that you have, and the answer is no. (2)
2005 May 30
2
R: R: AT-320 + supervised transfer
The procedure that will do asterisk is very nice ;) but whe it was available ? Currently is there any way to emprove the transfer? I tryied the scenario that u suggest me but it doesn't work :| and 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
2019 Dec 27
2
RFC: Refactor SubclassData
Ehud, can you elaborate on which classes you're trying to change. I know some of the classes already use methods like getSubclassDataFromInstruction() to hide bits from the subclasses. They could probably shift the data too. ~Craig On Fri, Dec 27, 2019 at 9:35 AM Bruno Ricci via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > On 26/12/2019 20:53, Ehud Katz via