search for: olicence

Displaying 2 results from an estimated 2 matches for "olicence".

Did you mean: licence
2010 Nov 14
6
sum in vector
hy guys i have one question :) i have two vectors markets and price market <- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) price <- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) i would like sum prices: market 1: (100+4+96), market 2: (38),..., market 9: (10+50) ao i would like get this result: (200, 38, ..., 60) and i don't wanna use while, for loops... is there any other function
2006 Jul 27
1
get value from array
Hi, Ive got an array, and when I run @aArray.inspect in the view it outputs [#"45", "id"=>"1"}>] how can I just output the number 45? thanks dave -- Posted via http://www.ruby-forum.com/.