Displaying 4 results from an estimated 4 matches for "a_name".
Did you mean:
__name
2009 Dec 11
1
The correct way to set an element in a list to NULL? (FAQ is not clear)
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-set-components-of-a-list-to-NULL_003f
The explanation on this FAQ entry is not clear. It says '... similarly
for named components...'. What I understood was x[i]<-list(NULL) is
the same as x$a_name<-list(NULL). But, they are not. As the example
below shows, x$a_name<-list(NULL) is the same as x[[i]]<-list(NULL).
> x=list(a=1:3,b=NULL,c=2:5,d=NULL)
> x
$a
[1] 1 2 3
$b
NULL
$c
[1] 2 3 4 5
$d
NULL
> x[[3]]=list(NULL)
> x
$a
[1] 1 2 3
$b
NULL
$c
$c[[1]]
NULL
$d
NULL...
2005 Apr 22
1
Beginner in R
hello ( and sorry for my poor english ... )
I'm a newbie on R software and I need to obtain this kind of system :
a structure, like a liste :
my_struct <- list()
my_struct$a <- a_value
my_struct$b <- another_value
my_struct$c <- one_more_value
and a function with two args : the first is a instance of the structure,
and the second is any component of the structure (here $a, $b
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...h has the id +an_id+. This corresponds to the find_window
+ # method method in WxWidgets when called with an integer.
+ def find_window_by_id(an_id)
+ Wx::Window.find_window_by_id(an_id, self)
+ end
+
+ # Searches all windows below +self+ and returns the first window which
+ # has the name +a_name+ This corresponds to the find_window method method
+ # in WxWidgets when called with an string.
+ def find_window_by_name(a_name)
+ Wx::Window.find_window_by_name(a_name, self)
+ end
+
+ # Searches all windows below +self+ and returns the first window which
+ # has the label +a_label+.
+ d...
2007 Jul 05
0
act_as_tree, belongs_to and has_many foreign keys incorrect
...');
my_top_level_file.children.create(:file_name => ''bar'')
When the data gets saved, the first row in the Files table gets the
new product_id value that is also inserted into the Projects table,
but the child row does not, giving me results like:
Projects:
id: 1
name: A_Name
Files:
id: 1
project_id: 1
parent_id: null
filename: foo
id: 2
product_id: 0 <---------------------- Should this not be 1?
parent_id: 1
filename: bar
Firstly, am I doing things right? If so, is this a bug, or is this
how things were intended to work? Surely all rows in the f...