Displaying 20 results from an estimated 1000 matches similar to: "switching elements of a vector"
2010 May 26
5
counts of a vector
Hi,
I need help to find an efficient way to transform a vector like:
a<-c(1,1,0,1,0,0,0,1,1,1,1,0,1,0,1,1)
in a vector that counts only di 1 elements, like:
b<-c(1,2,0,1,0,0,0,1,2,3,4,0,1,0,1,2)
Thank you!
--
View this message in context: http://r.789695.n4.nabble.com/counts-of-a-vector-tp2232047p2232047.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 01
2
s.e. of arima
Hi,
I'm using the function arima() from the ts package.
when the function gives me the output I can see the s.e. of the
coefficients.
However I cannot find a way to collect them in a object
estimate<-arima(x, order=c(1,0,1))
estimate$se does not work
in fact str(estimate) does not contain $se.
How is it possible? The function compute and print that value but it is not
the resulting
2008 Feb 10
11
data frame question
Hello
I have 2 data frames df1 and df2. I would like to create a
new data frame new_df which will contain only the common rows based on the first 2
columns (chrN and start). The column score in the new data frame
should
be replaced with a column containing the average score (average_score) from df1
and df2.
df1= data.frame(chrN= c(“chr1”, “chr1”, “chr1”, “chr1”, “chr2”,
“chr2”, “chr2”),
2009 Jan 28
0
[LLVMdev] DAGCombiner rant
Hi Scott,
I'm not clear on what you're saying here; some of your
points below seem to be contradictory. The advice to
use target-independent nodes when feasible seems
sound to me, so I wrote up a comment about it in
SelectionDAGNodes.h. If you can formulate your
thoughts in the form of specific documentation changes,
that would be helpful.
In theory, DAGCombiner is supposed to check if
2009 Jan 26
2
[LLVMdev] DAGCombiner rant
Yes, it was I who put that rant in the commit log and it's justified. Worse,
it's unreasonable to actually go through all of DAGCombiner's code and check
to see if certain kinds of constants, e.g., i64, are legal during a
particular phase of DAGCombiner. DAGCombiner does good work and the backends
are supposed to be good citizens. CellSPU is certainly trying to be a good
citizen, no
2008 Nov 05
2
Muliply images > wich plugin?
Hi,
I have one destionation such as Barcelona and i want to store and show
multiply pictures of Barcelona. Wich upload plugin is the best for this
purpose?
Grtz..remco
--
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
2006 Sep 07
5
Conservative "ANOVA tables" in lmer
Dear lmer-ers,
My thanks for all of you who are sharing your trials and tribulations
publicly.
I was hoping to elicit some feedback on my thoughts on denominator
degrees of freedom for F ratios in mixed models. These thoughts and
practices result from my reading of previous postings by Doug Bates
and others.
- I start by assuming that the appropriate denominator degrees lies
between n
2004 Dec 13
2
Switching to Mac, suggestions? (was switching to linux)
I'm looking to switch to Mac platform. Anyone had any experience
with that? I'm expecting on a power G4 laptop later this week.... hope
R behaves...
-- dok
2009 Nov 16
2
How to make all elements all elements lower-cap ?
I have a vector of letters like c("a", "B", "c"). Is there any R function to
force all elements to lower-cap ?
Thanks,
--
View this message in context: http://old.nabble.com/How-to-make-all-elements-all-elements-lower-cap---tp26365794p26365794.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jun 08
1
return counts of elements on a table column depending on elements on another column
Hi,
I am given the following table:
> head(hsa_refseq)
chr genome region start stop nu strand nu.1 nu.2
gene_id
1 chr1 hg19_refGene CDS 67000042 67000051 0 + 0 gene_id
NM_032291
2 chr1 hg19_refGene exon 66999825 67000051 0 + . gene_id
NM_032291
3 chr1 hg19_refGene CDS 67091530 67091593 0 + 2 gene_id
NM_032291
4 chr1 hg19_refGene exon
2011 Jul 27
2
replacing elements of vector through elements of another vector
Hello everybody,
I hope this question is not too silly but I'm almost going crazy about
that and could not find a solution.
I have two variables, say A and B and I would like to combine them in C.
In particular I want a C-value of B when B is not NA and the A value in
case that B is NA:
A B C
2 NA 2
3 4 4
NA 3 3
4 1 1
2 NA 2
1 4 4
NA NA NA
5 3 3
4 1 1
I
2008 Jan 07
2
Switching screen resolution on the fly
Is there any way other than CTL ALT + and CTL ALT -
to set and or change the resolution of the X server when I want to.
Is there a way to so take me to "1920x1080" mode and then later
take me to "1366x768" mode.
With xvidtune I see the -next and -prev options but I was hoping for
jumping to specific modes. I so realize I can also edit out unwanted modes
in the xorg.conf but
2006 Jul 24
0
dynamic database switching..
I''ve developped a rails app and am trying to improve the training mode i''ve
started to develop for it (its an inward facing rails app BTW). Anyway at
the moment i have it set up so while in training mode it flags any orders
created as ''training'' using a bitwise op. While changes to orders aren''t
''real'' in training mode changes to
2006 Jun 15
1
Switching from mysql to postgres
My company uses Postgres, but while developing my Rails app I''ve used
mysql on my local machine. I would love to demonstrate the coolness of
Rails to my coworkers by recreating my schema on the central database in
as few steps as possible. I''ve gotten the feeling that this can be
done, something with Rake which I have not yet played with. Can
somebody offer a pointer? Is
2006 May 04
1
Switching to production mode
Hello,
I want to start my rails application in production mode. But for some reason
in spite of uncommenting this line in ''config/environment.rb''
ENV[''RAILS_ENV''] ||= ''production''
when I run ''ruby script\console'' it says loading development mode.
Also, the webrick sends log messages to development.log file instead of
2006 Apr 02
1
switching environments
Hi all,
I created a Rails project on MS Windows.
Now I''m on my Mac, and would like to extend this existing project.
However, I can not run the script/generate, because the scripts all
reference the windows directory of Ruby.
Is there an easy way to switch to the Unix environment?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Jul 27
1
high context switching and high load averages slowing down system
Hi All,
I have a HP DL 580 with 4 3 GHz CPUs and 4 GB RAM. I'm running Oracle
on it. Throughout the day I am getting high load averages (6 - 18)
and at the same time I see context switching go over 300,000.
Sometimes over 500,000. This is slowing the system down to a crawl.
My OS is RHEL 3 AS Update 4 with the 2.4.21-32.0.1.ELsmp kernel.
Any ideas on why this is happening and how to fix
2001 Oct 20
1
Switching modes
Hi All,
I saw a document mentioning different ext3 modes, e.g. modes=ordered,
but I can't find the documentation of this feature, nor a description of
the different modes. Could someone give me a pointer where I should
look?
TIA,
Jesper
--
Jesper Holmberg |"But how can |
jesper.holmberg@enst-bretagne.fr | one be warm |
ENST Br, BP 832, 29285 Brest, FRANCE |
2007 Oct 12
0
load balance switching latency
Hello there.
I am setting up a router using openwrt. Part of the project is load
balancing among 2 broadband lines. I made use of the line:
ip route add default scope global \
nexthop {GW1} dev {IF1} weight 1 \
nexthop {GW2} dev {IF2} weight 1
somewhere on the configs.
On the test phase, automatically switching (routing) to line GW2 when
line GW1 is suddenly disconnected takes a long time.
2006 Jan 11
1
switching two nodes
Hi,
Is there a simple api in scriptaculous or prototype, to simply switch two
nodes in the dom tree ?
or do i have to code it. (a sweet option would be to be able to hook an
effect as well)
My use case is to drag and drop elements to switch them
Regards
Tarek
--
Tarek Ziadé | www.afpy.org
Python - why settle for snake oil when you can have the whole snake?
(Mark Jackson)