Displaying 3 results from an estimated 3 matches for "subracting".
Did you mean:
subtracting
2006 Nov 13
2
indexing question
I have the following set of indices, call it idx, that correspond to the
indices of a vector say temp.
[1] 31 36 41 61 66 71 91 96 101 121 126 131 151
156 161 181 186 191 211 216 221 241 246 251 271 276 281
301 306 311 331 336 341 361 366
[36] 371 391 396 401 421 426 431 451 456 461 481 486 491
511 516 521 541 546 551 571 576 581
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