From ggrothendieck @ending from gm@il@com  Mon Jul 23 16:51:53 2018
From: ggrothendieck @ending from gm@il@com (Gabor Grothendieck)
Date: Mon, 23 Jul 2018 10:51:53 -0400
Subject: [Rd] oddity in transform
Message-ID: <CAP01uRn1wbE4sFMoLn4YBJmXY4fO9zZsECf08RgCs4_HAN=jbQ@mail.gmail.com>

Note the inconsistency in the names in these two examples.  X.Time in
the first case and Time.1 in the second case.

  > transform(BOD, X = BOD[1:2] * seq(6))
    Time demand X.Time X.demand
  1    1    8.3      1      8.3
  2    2   10.3      4     20.6
  3    3   19.0      9     57.0
  4    4   16.0     16     64.0
  5    5   15.6     25     78.0
  6    7   19.8     42    118.8

  > transform(BOD, X = BOD[1] * seq(6))
    Time demand Time.1
  1    1    8.3      1
  2    2   10.3      4
  3    3   19.0      9
  4    4   16.0     16
  5    5   15.6     25
  6    7   19.8     42

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



[Rd] oddity in transform
Gabor Grothendieck