Skip to content

Commit

Permalink
changed output of the function from a df with the original data and e…
Browse files Browse the repository at this point in the history
…xtra columns with the estimated oc and the model used to estimate each sample, to a list with tho elements. The data frame that was the former output and a aditional object with the parameters of the models.

#38
  • Loading branch information
NPJuncal committed Jan 17, 2024
1 parent 6c55c22 commit d66efb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/estimate_oc.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ estimate_oc <- function(df = NULL,
df_out <- subset(df_pred,
select = c(-ecosystem_r, -species_r, -site_r, -om_r, -oc_r))

invisible(df_out)
out<-list (df_out, all_models)
names(out)<-c("data","models")

invisible(out)

}

Expand Down

0 comments on commit d66efb7

Please sign in to comment.