search for: arthmet

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

Did you mean: arther
2006 Jan 16
8
[newbie] This Month / Next Month / The One After That
What I want to do is simple. I''d like code that prints out the name of this month (January) the next month (February) and the one after that (March) I''ve been able to print this month: <% t = Time.now %> <%= t.strftime(" This Month is: %B") %> But I can''t figure out how to get the next months to print out! -- Posted via
2007 Mar 05
4
0 * NA = NA
Is there any way to "force" 0 * NA to be 0 instead of NA? For example, suppose I have a vector with some valid values, while other values are NA. If I matrix-pre-multiply this by a weight row vector, whose weights that correspond to the NAs are zero, the outcome will still be NA: x <- c(1, NA, 1) wt <- c(2, 0, 1) wt %*% x # NA Alberto Monteiro