similar to: exclude a vector value from another vector

Displaying 20 results from an estimated 2000 matches similar to: "exclude a vector value from another vector"

2008 Dec 01
2
vector
Dear All, I am trying to build a program which will take repeated samples without replacement from a population of values. The interesting catch is that I would like the sample values to be removed from the population, after each sample is taken. For example: pop<-c(1,5,14,7,9,12,18,19,65,54) sample(pop, 2) = lets say, (5,54) ## This is where I would like values (5, 54) to be removed from
2012 May 08
1
revolution foreach oddity
I know this is not a revolution support forum, but as anyone noticed the following? I have a foreach loop to generate random samples. If I run the exact code below in normal r (2.14.1) it works as expected, but if I run it from revolution 4.2.0 each loop returns the same numbers. The only way I can get revolution to give different numbers is using 1 instead of 8 in registerDoSNOW(makeCluster(8,
2009 Dec 21
3
Question About Repeat Random Sampling from a Data Frame
Good Morning: I've read many, many posts on the r-help system and I feel compelled to quickly admit that I am relatively new to R, I do have several reference books around me, but I cannot count myself among the fortunate who seem to strong programming intuition. I have a data set consisting of 1637 observations of five variables: tensile strength, yield strength, elongation, hardness and a
2008 Aug 12
4
Frequency vector
I want to create a vecor with frequencies. I have tried this: a <- c(1,1,1,1,2,3,4,5,5) b <- table(a) print (b[1]) which results in: > print (b[1]) 1 4 The only thing I want is the 4. So this seems obvious: print (b[1,2]) but it does not work: Error in b[1, 2] : incorrect number of dimensions How do I get a vector or how do I refer to the "4" without getting the
2007 Feb 27
3
looping
Greetings: I am looking for some help (probably really basic) with looping. What I want to do is repeatedly sample observations (about 100 per sample) from a large dataset (100,000 observations). I would like the samples labelled sample.1, sample.2, and so on (or some other suitably simple naming scheme). To do this manually I would >smp.1 <- sample(100000, 100) >sample.1 <-
1999 Oct 23
2
How can I Authenticate via MySQL ?
Hi , I want to set up my Redhat 6.0 Linux machine to Authenticate username and password and other information for user that received from /etc/passwd & /etc/shadow from MySQL server . How Can I do that ? any Refrences or Manual for this is helpfull :) Thanx Hamid Hashemi
2010 Jul 12
1
long to wide on larger data set
I have a data set that has 4 columns and 53860858 rows. I was able to read this into R with: cc <- rep("character",4) myData <- read.table("myData.csv",header=FALSE,skip=1,colClasses=cc,nrow=53860858,sep=",") I need to reshape this data from long to wide. On a small data set the following lines work. But on the real data set, it didn't finish even when I
2011 May 31
2
[LLVMdev] multiple function return values in LLVM
Hi all, How can I implement a multiple function return values scheme in a performance efficient way, just like what be done in Matlab or Octave? Thanks in advance, Yabin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110531/5813e7a6/attachment.html>
2010 Dec 15
2
[LLVMdev] The best way to cope with AllocationInst type in old code?
Hi all, I am working on some old code which was compiled against llvm-2.5. Anyway, in some places I, AllocationInst is used (e.g. to ensure the instruction's type). Even in your current documentation (http://llvm.org/docs/ProgrammersManual.html), I found an example that uses this instruction. If I got it correctly, this istruction (AllocationInst) has been removed from llvm instruction set.
2008 Sep 04
3
a very bit problem!
Hi there! I have a bit problem with syslinux, I want to boot from a binary file, I don't want to have any OS(any kernel), so how can I do that? Should I make a special binary file? what should I specify in syslinux.cfg? ------------------------------- Hamid Reza Hasani thanks a lot! Ya Ali
2011 May 31
0
[LLVMdev] multiple function return values in LLVM
Hi Yabin, Octave uses an octave_value_list object to return multiple values so I don't think it has anything to do with the compiler. A sample function that can be dynamically linked with Octave and called from octave interpreter: #include <octave/oct.h> DEFUN_DLD (divmult, args, nargout, "") { octave_value_list retval; // do some computation to compute r0 and r1
2017 Jul 08
3
[Bug 1161] New: The lock problem causes the iptables return with exit code 0 without adding my rules to kernel.
https://bugzilla.netfilter.org/show_bug.cgi?id=1161 Bug ID: 1161 Summary: The lock problem causes the iptables return with exit code 0 without adding my rules to kernel. Product: iptables Version: unspecified Hardware: x86_64 OS: Ubuntu Status: NEW Severity: enhancement
2015 Mar 17
2
Proposing a change in the base::sink interface for type argument
Hi folks, Here is the current interface: sink(file=NULL, append=FALSE, type = c("output", "message"), split=FALSE) However, reading the implementation there is implicit assumption that type is a single character value: https://github.com/wch/r-source/blob/trunk/src/library/base/R/sink.R#L23 I'm finding this very confusing as the interface is giving a default value of a
2010 Apr 29
1
R CMD check Error after R CMD build for R-2.11.0
Dear UseR, I get an error when I run "R CMD check" on my .tar.gz file package, and I don't understand why since I don't obtain any error with "R CMD check" on the package directory. Do you have any idea ? $ sudo ./R-2.11.0/bin/R CMD check eqtl_1.1.tar.gz and $ sudo ./R-2.11.0/bin/R CMD --check-subdirs=no eqtl_1.1.tar.gz return an Error * checking for working
2023 Feb 26
1
Cannot reach documentation site
On 27/02/2023 4:13 am, Chris Candreva wrote: > On Sun, 26 Feb 2023, Ken Bass wrote: > >> doc.dovecot.org does not have a DNS entry. It worked a few days ago, but not now. > [chris at newpop ~]$ host doc.dovecot.org > doc.dovecot.org is an alias for talvi.dovecot.org. > talvi.dovecot.org has address 94.237.105.223 > talvi.dovecot.org has IPv6 address
2015 Mar 18
1
Proposing a change in the base::sink interface for type argument
In other words: this is a standard programming paradigm in R/S which (unfortunately) is not widely known, based on my network. It is really nice for developers. Best, Kasper On Wed, Mar 18, 2015 at 5:42 PM, MacQueen, Don <macqueen1 at llnl.gov> wrote: > It's only an illusion until one actually tries providing a vector. > > > sink('foo',
2009 Dec 22
1
Re: Paypal Recurring using active merchant
Hi , i am also getting the same problem , have you resolved it or not and if some body else have any idea please do let me know. thanks in advance and kind regards, Hamid. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Feb 08
1
compute_ebands
Hi All, Is the following loop in function compute_ebands meant to work out the nearest celt frequency bin to a bark critical band? ?If so why an offset is required to be considered? Thanks in advance if somebody can explain it. Thanks, Hamid /* Spacing follows critical bands */ for (i=0;i<high;i++) { int target = bark_freq[lin+i]; eBands[i+low] =
2010 Dec 15
0
[LLVMdev] The best way to cope with AllocationInst type in old code?
Hamid 2C wrote: > Hi all, > > I am working on some old code which was compiled against llvm-2.5. > Anyway, in some places I, AllocationInst is used (e.g. to ensure the > instruction's type). Even in your current documentation > (http://llvm.org/docs/ProgrammersManual.html), I found an example that > uses this instruction. > If I got it correctly, this istruction
2008 Feb 08
1
Re: xenconsole: Could not read tty from store: No suchfile or directory
On Thursday 07 February 2008 05:19:26 pm Hamid Majidy wrote: > When I start guest with "xm create clientdom", I get: > xm create clientdom > Using config file "./clientdom". > VNC= 3 > Started domain clientdom >   > But when I try to connect to it with "vncviewer 192.168.122.1:5900" I get: > VNC Viewer Free Edition 4.1.2 for X - built Mar 14