Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Dec 8, 2023
1 parent fe24f0e commit fcb08c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions R/setMetadata.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#' setMetadata
#'
#' @param stana stana
#' @param meta metadata (data.frame)
#' row.name as ID of the trees
#'
#' @return stana object
#'
setMetadata(stana, meta) {
meta[["id"]] <- row.names(meta)
stana@meta <- meta
return(stana)
}
1 change: 1 addition & 0 deletions R/stana.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
setClass("stana", slots=list(
type="character",
cl="list",
meta="data.frame",
mergeDir="character",
db="character",
ids="character",
Expand Down

0 comments on commit fcb08c4

Please sign in to comment.