search for: subract

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

Did you mean: subtract
2006 Nov 13
2
indexing question
...321 1326 1331 1351 1356 1361 1381 1386 1391 1411 1416 [141] 1421 I want to calculate temp[36] - temp[31] and temp[41] - temp[36] Similarly, temp[66] - temp[61] and temp[71] - temp[66] . . . . Similarly temp[1416]-temp[1411] temp[1421] - temp[1416] I'm doing this because the above subractions represent pairs of returns and the correlations between them wil be calculated eventually. In other words, eventually I will have X_36_31 ( i.e : temp[36] - temp[31] ) X_66-61 X_96-91 . . . . . . . X_1411-1416 as one vector and Y_41-36 Y_71-66 Y_101-96 . . . . . Y_1416_1421 as anothe...
2010 Jun 17
1
Subtraction of group means using AGGREGATE and MERGE
Hi all, This is my first ever post, so forgive me and let me know if my etiquette is less than that required. I am searching for a faster way of subracting group means within a data frame than the solution I've found so far, using AGGREGATE and MERGE. I'll flesh my question out using a trivial example: I have a data frame Z with two columns - one X of values and one Y of labels: > Z X Y 1 1 4 2 2 4 3 3 5 4 4...
2013 Mar 09
4
Calculation with date
Hello again, Let say I have an non-negative integer vector (which may be random): Vec <- c(0, 13, 10, 4) And I have a date: > Date <- as.Date(Sys.time()) > Date [1] "2013-03-09" Using these 2 information, I want to get following date-vector: New_Vec <- c("2013-03-01", "2014-04-01", "2014-01-01", "2013-07-01") Basically the