Displaying 20 results from an estimated 1000 matches similar to: "vector"
2008 Dec 01
3
exclude a vector value from another vector
Dear All,
I am trying to build a program which will take repeated samples (w/o
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
2010 Mar 11
2
Comparing matrices
Hello all,
I have two matrices, pop and pop2, each the same number of rows and
columns that I want to compare for equality. I am concerned about
efficiency in this operation.
I've tried a few things without success so far. Doing something simple like:
if (pop==pop2) { cat('equal') } else { cat('NOT equal') }
results in the warning:
1: In if (pop == pop2) { :
the
2005 May 08
3
1.0-test69
http://dovecot.org/test/
- Several mbox fixes, upgrade recommended for test68 mbox users
- Possibly fixes some IMAP hangs where Dovecot just stopped replying
- Fixed delay-newmail workaround. It was badly broken before.
And somewhat off topic advertisement:
I got a bit distracted from Dovecot a week ago when a guy started
mailing me about wanting to write an irssi2 client as a project to
2012 Oct 23
2
barplot
Hi,
I want to make a barplot with the following datasets:
I have a file as following:
name chr position A1 A2 pop1 pop1 pop2 pop2
I have calculated a measure using all the values in columns "pops", the
values are saved in a vector.
Now I want to make a barplot using the values in this vector as the y axis
and the values in the column "position" in the x-axis.
thank you
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
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
2012 Jun 28
2
R help, using R to build choropleth
Hi guys
i need some help to build choropleth.
Basically i am trying to colour regions on the map by population.
I possess the shape file of the country, and also the population data,
however, i am having trouble to create the plot, below is my code:
population=read.csv("nz2.csv")
population
names(population)
nz=readShapeSpatial((sprintf('nz-geodetic-marks',tmp_dir)))
2012 Jan 04
3
[newbie] stack operations, or functions with side effects (or both)
summary: Specifically, how does one do stack/FIFO operations in R?
Generally, how does one code functions with side effects in R?
details:
I have been a coder for years, mostly using C-like semantics (e.g.,
Java). I am now trying to become a scientist, and to use R, but I don't
yet have the sense of "good R" and R idiom (i.e., expressions that are
to R what (e.g.) the Schwartzian
2010 May 14
2
multhist,labels and percentages
Hi All,
I am in the annoying position of having to present some data to someone who seems to be somewhat less than numerate. I need to label the y-axes of a multhist with the y-axis labeled not as counts but as percentage of a population. Plotting the standard histogram is in a way fine, all I need is to:
-- have a left-handside y-axis labels for pop 1 and a right-handside y-axis labels for pop2
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>
2007 Mar 11
3
Enable pop3 / pop3 and imap
Dear All,
I'm new to use dovecot for the Mail service...
So, how to enable the mail service ( pop3 / pop2 / imap ) ?
Edward.
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
2005 Jul 07
3
What method I should to use for these data?
Dear R user:
I am studying the allele data of two populations.
the following is the data:
a1 a2 a3 a4 a5 a6 a7 a8 a9
a10 a11 a12 a13 a14 a15 a16 a17
pop1 0.0217 0.0000 0.0109 0.0435 0.0435 0.0000 0.0109 0.0543
0.1739 0.0761 0.1413 0.1522 0.1087 0.0870 0.0435 0.0217 0.0109
pop2 0.0213 0.0213 0.0000 0.0000 0.0000 0.0426 0.1702 0.2128
0.1596 0.1809 0.0957 0.0745 0.0106
2004 Mar 01
6
How to plot Histogram with frequence overlaid by distribution curve
Hi,
I am facing the problem that I want to plot a histogram chart set
freq to true and overlay with normal or weibull or exponential distribution
curve.
The sample code is shown as below:
>samp<-c(-8.2262,-8.2262,-8.2262,-8.20209,-8.09294,-8.07321,-8.07321,
-8.07321,-8.07175,-8.04948,-8.04948,-8.04948,-8.03848,-8.03848,
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
2011 Mar 17
3
Beginner question: How to replace part of a filename in read.csv?
I would like to use samp as a part of a filename that I can change. My source
files are .csv files with date as the file name, and I would like to be able
to type in the date (later perhaps automate this using list.files) and then
read the csv and write the pdf automatically. I have tried different
combinations with "" and () around samp, but I keep getting the error
"object
2012 Sep 20
3
lattice dotplot reorder contiguous levels
my reproducible example
test<-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L,
3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L,
4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label = c("A",
"B", "C", "D", "E"), class = "factor"),