HEFrame.Rmd
Every HEFrame contains context of HE, such as parameter, key_dir_path, etc.
To generate HEFrame
#' Generate HEFrame
#'
#' `params` returns the parameter of HE.
#' `context` returns the context of HE.
#' `hf` returns HEFrame
#`library(heaan.sdk.R)
#`import_heaan_sdk()
#`params <- heaan_sdk.HEParameter("FGb")
#`context <- heaan_sdk.Context(
#` params,
#` key_dir_path = "keys",
#` load_keys = "all",
#` generate_keys = TRUE
#`)
#'
df <- data.frame(a = c(1, 2, 3),
b = c(2, 3, 4))
hf <- HEFrame.from_frame(context, df)
From HEFrame you can get num_slots, num_rows, context, info()
#' Get information of HEFrame
#' @description
#' `num_slots` returns number of available slots of HEFrame.
#' `num_rows` returns number of rows of HEFrame.
#' `context` returns context of HEFrame
#' `info` returns metadata of HEFrame
#'
num_slots <- hf$num_slots
num_rows <- hf$num_rows
context <- hf$context
info <- hf$info