forked from ctmm-initiative/ctmmMoveAppR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRFunction.R
More file actions
19 lines (17 loc) · 681 Bytes
/
Copy pathRFunction.R
File metadata and controls
19 lines (17 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
library('move')
library('lubridate')
library(ctmm)
# get data. for outlie it should only take one individual, select one individual in previous step
#The last parameter with the name data is the result of the previous app
# -> Should be removed if no data should be provided from previous app
rFunction = function(data) {
# data[year(data@timestamps) == year]
# this line doesn't work with input.rds, can work with input2.rds
# data <- data[year(data@timestamps) == year]
# # browser()
# pdf(file.path(Sys.getenv(x = "APP_ARTIFACTS_DIR", "."), "hello_world.pdf"))
# plot(data,main="Hello World!")
# dev.off()
res <- outlie(data, plot = FALSE)
return(res)
}