Skip to content

Commit

Permalink
create data3 with a functional sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
aammd committed Mar 15, 2015
1 parent 3cbd885 commit 9ee1161
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
Binary file added .remake/db/2872c15b2a2a1f6f704174367c89aee0.rds
Binary file not shown.
Binary file added .remake/objects/data3
Binary file not shown.
1 change: 1 addition & 0 deletions .remake/objects/data3__hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
506308e82755482b479fa98cf430b156
5 changes: 4 additions & 1 deletion remake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ targets:

all:
depends:
- data2
- data3

data:
command: make_data()


data2:
command: change_data(data)

data3:
command: change_the_data(data2)
7 changes: 6 additions & 1 deletion rscript.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
##makes data
library(magrittr)

make_data <- function(){
data.frame(x = 1:7)
}

change_data <- function(df){
transform(df, x2 = x/10)
}
}

change_the_data <- . %>%
transform(x3 = x/20)

0 comments on commit 9ee1161

Please sign in to comment.