search for: column_b

Displaying 3 results from an estimated 3 matches for "column_b".

Did you mean: column_1
2012 Nov 21
1
lists as matrix cells ?
...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 6 In some cases I even construct matrices with lists as cell content: do.call( 'cbind', lis...
2005 Mar 21
1
working with tables
...ing 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. $estimate has the following format: mean sd 0.01664940 0.976...
2012 Apr 18
1
Re: validates_uniqueness_of question
...sure 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 not equal to 0 Kind Regards Gurdipe -- You received this me...