回答編集履歴
1
Update
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
dfx <- transform(df, price_t_1 =
|
18
18
|
|
19
|
-
price_t[match(paste(name,
|
19
|
+
price_t[match(paste(name, year-1), paste(name, year), nomatch = NA)])
|
20
20
|
|
21
21
|
|
22
22
|
|