search for: column_a

Displaying 4 results from an estimated 4 matches for "column_a".

Did you mean: column_1
2012 Nov 21
1
lists as matrix cells ?
Dear R experts, since more or less half a year I am using R. In many of my computations I construct huge matrices. Often I do so using 'cbind' on named lists: do.call( 'cbind', list( "Column_A"=list("Row_one"=1.0, "Row_two"=2.0, "Row_three"=3.0), "Column_B"=list("Row_one"=4.0, "Row_two"=5.0, "Row_three"=6.0) ) ) # Returns: Column_A Column_B Row_one 1 4 Row_two 2 5 Row_three 3...
2005 Mar 21
1
working with tables
...loop will generate a few outputs. Finally I have to combine them to get something like a "spreadsheet" that my colleagues can import in EXCEL. Up to now I'm doing it as follows: With each loop-step I assign new values for each "column" of my desired output like colum_A=c(column_A,new_value) At the end I combine all columns: my_table=cbind(column_A,column_B ... ) I think there should be another easier way to assign the new lines directly, isn't it? (2) I often have to use the "fitdistr" function included in library MASS. The generated output for e.g. $esti...
2012 Apr 18
1
Re: validates_uniqueness_of question
...i All, I am trying write a validation rule where I need to ensure that when a certain value is updated or created in a particular columns, a number of other columns columns are unique and that another column does not contain a certain value. I have been able to use the validates_uniqueness_of :column_a (to be updated or inserted) with , :scope => [ :column_b , :column_c , :column_d ] . This works well but now I also need to extend it so that a certain column is not equal to 0. How can I extend the validation rule to also include that a check is carried out that this other column does n...
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you