Displaying 20 results from an estimated 20000 matches similar to: "Is accessing models in views bad?"
2007 Jun 07
0
Unique :key not maintained after add_indexes?
Hi,
When adding an index to another one using add_indexes I get duplicates
even though I use the :key attribute. For example:
def test_add_indexes_uniqueness
index1 = Ferret::Index::Index.new(:key => :id)
index2 = Ferret::Index::Index.new(:key => :id)
# Add two items with same id
index1 << {:id => 23, :data => "This is the data..."}
2011 Apr 03
1
Help in splitting ists into sub-lists
Dear List,
Let's say I have a list whose components are 2 matrices (as exemplified in
the "mylist" object below). I'd like to create a list with components being
4 matrices based on an logical index vector. is there a way to simplify what
I'm doing to obtain the results in "mylist2"? I'd like something that would
work on an arbitrary number of elements in
2009 Jan 27
1
Problem with RMA using limma, oligo and pdInfoBuilder packages
Hi,
I am a Ph.D. student from Québec, Canada. I’m a beginner with R and
Bioconductor. Until now the only experience I have is in analyzing
microarray data using affy and limma packages. Now I am trying to analyze
Rat Gene 10 st arrays and I would like to run RMA analysis and Smyth
moderated t test on those arrays. Since no cdf official package is available
for those arrays, after reading many
2009 Aug 07
0
Bar plots with stacked columns marked with askterisks
Hi,
I'm trying to plot bar graphs with stacked columns marked with
askterisks for certain columns, which follow certain criteria.
I've gotten the stacked bar plots with Data set A (please refer to
code below). However, I haven't figured how to put asterisks on
columns based on some extra information (such as "used/unused") as in
Data set B i.e. asterisks at the
2006 Nov 14
2
Problem with file size
Hi everyone,
I have 2 environments (2 different R sessions) as described below:
Session 1:
Name of the environment: "CrlmmInfo"
Objects in the environment:
index1: logical index - length 238304
index2: logical index - length 238304
priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of
length 2) - all num
params: list of 4:
centers [238304 x 3 x
2006 Nov 14
2
Problem with file size
Hi everyone,
I have 2 environments (2 different R sessions) as described below:
Session 1:
Name of the environment: "CrlmmInfo"
Objects in the environment:
index1: logical index - length 238304
index2: logical index - length 238304
priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of
length 2) - all num
params: list of 4:
centers [238304 x 3 x
2010 Mar 09
0
Removing Zeros from matrix:Problem fixed
Hey,
Thanks for your great inputs. While "index = apply(mat == 0, MARGIN = 1,
any)" gives you an idea of the rows containing zero(s),
"index<-data[!apply(data==0,MARGIN=1,any),]" does the actual job of removing
the rows with zeros.
Kind regards
Ogbos
On 9 March 2010 15:12, Paul Hiemstra <p.hiemstra@geo.uu.nl> wrote:
> Dimitris Rizopoulos wrote:
>
>>
2012 Jun 28
3
Storing results in a single file after looping over all files
Hi All,
I have a whole lot of *.raw files in my working folder and I am doing the same analysis on each of those and want to save all the results in a single file. I am making some mistake here and can't figure out how to solve it.
Say, the *.raw files are ABCD.raw, EFGH.raw, IJKL.raw ...
The files are of this format
ID PHI?? aa1? aa2? aa3 ....
1??? 1???? 1.3?? 2.0?? 1.0
2??? 0????
2010 Sep 28
1
confirming behavior of "by"
Hi,
I'm using "by" to summarize by multiple groups, and want to extract the
returned into a pretty dataframe. I'm trying to find a simple way to
name the rows of the data frame. I'd like it to be something like
index1.val1.index2.val2 where the index1 and index2 are the names of the
indices and the val1 & val2 are names of possible values of the index.
(the
2016 Mar 17
0
match and unique
Hi Terry,
On 03/16/2016 08:03 AM, Therneau, Terry M., Ph.D. wrote:
> Is the phrase "index <- match(x, sort(unique(x)))" reliable, in the
> sense that it will never return NA?
This is assuming that match() and unique() will never disagree on
equality between 2 floating point values. I believe they share some
code internally (same hashing routine?), so maybe it's reliable.
2010 Apr 19
2
Acceder a varias tablas
Buenas,
He creado dos andamios para dos tablas a la que accedo por index1 e
index2 respectivamente. En cada index puedo hacer las tareas de añadir,
borrar, ver lineas... pero me gustaria saber como se hace una busqueda
mas compleja...es decir si tengo una tabla Productos y otra tabla
descripciones y quiero mostrar en los productos con sus descripciones...
he intentado en el index1 acceder a la
2006 Feb 13
2
categories and admin/categories - different controllers and templates?
Is there some way to have these two sets of URLs use
totally different controllers and templates?
categories/list
categories/show/1
admin/categories/list
admin/categories/edit/1
admin/categories/destroy/1
admin/categories/update/1
Besides, of course, using different controller names
;). The first URL is publicly accessible, while the
second contains admin functions. Also, with the
second,
2011 Sep 27
0
A very big matrix inside a function
Dear listers:
As a part of a intermediate process, I need to use and modify a very big
matrix (some 30000x30000) inside the body of a function. If the matrix is
defined in the function, R shows a error message "Cannot allocate vector of
size 6.7 Gb". But if I define the matrix before the function is called (as
soon as the dimension can be calculated) R can allocate it. The problem is
2020 Oct 11
2
Manipulating DAGs in TableGen
This is a proposal to enhance TableGen's ability to analyze and manipulate
DAGs. Hopefully this will allows more complex DAGs to be built in TableGen.
1. Add a new value suffix.
value(index)
The value must be a DAG. The index specifies the operator or an operand,
whose value is produced. The index can be
0 produce the operator
1...n produce operand by
2006 Jan 21
6
Redirecting in a view?
Is there a way to do this in a view?
<% redirect_to ''http://url.com'' %>
All I can think of is outputting a link and using
Javascript to click it, or probably do something like
''doc.location(url)''.
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2005 Dec 28
4
undefined method `include''
I''m getting this error in Rails:
undefined method `include'' for
#<MenusController:0x408efd1c>
The offending code is:
require "rexml/document"
include REXML
I see there may be a problem with GCC 4 on OSX, but
I''m using Redhat with GCC 3.2.
http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere
2006 Jan 11
2
map.connect - redirect with 302?
Is it possible to write map.connect rules in route.rb
that externally redirect (HTTP 302) to other actions?
thanks
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Feb 09
2
select options for HABTM?
I''ve looked through the docs and the wiki and can''t
figure out how to go about generating select options
and the update function for an item that has a HABTM
relationship.
I have a ''parks'' table and the park model has a HABTM
to the ''states'' table. On the park edit page, I''d like
a multiple select box to appear with all states show,
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put
''caches_page :show'' in it. The problem is that the pages are saved with
an html extension. As a result, browsers display the cached feeds as
HTML rather than XML, and feed validators complain.
There''s an option to set ''Base.page_cache_extension'' globally, but I
don''t want
2011 Sep 02
0
No subject
rly there would be a heavy penalty to launching a shell so you would want t=
o carefully evaluate the frequency this is executed on your system.<br />
<div class=3D"container">
<div class=3D"line number1 index0 alt2"><code class=3D"sql plain"><br />
DELIMITER @@</code></div>
<div class=3D"line number2 index1