Trying to use foie Gras and keep running into the error:
object of type 'closure' is not subsettable when trying to use my data. screenshot below:
(I tried creating the columns as different variables, in the data.frame: "data", but nothing changed when I used that. Any suggestions? Thanks!
(upload://iSviYMbpdYezJ708Qs4vZBK5gLK.jpeg)
HP <- read_csv("~/Desktop/Research Projects /Mako Migration/Data Sources /HypowerII_fg.csv")
HPII<-as.data.frame(HP)
print(HPII)
sapply(HPII,class)
convert to dif formats
sapply(data_table_mod,class)
col1<-as.character(HPII$id)
col2<-as.POSIXct(HPII$date)
col3<-as.character(HPII$lc)
col4<-as.double(HPII$lon)
col5<- as.double(HPII$lat)
#make into df
data<- data.frame(col1,col2,col3,col4,col5)
sapply(data,class)
str(data)
class(HPII)
typeof(HPII)
prefilter/fit
fit <-
fit_ssm(
HPII(),
model = "rw",
time.step = 24,
control = ssm_control)