#' Read a numpy (python) data array into R
#'
#' @param filename Filename for the numpy (.npy) file
#' @export
#' @examples
#' \dontrun{
#' r_ecg <- read_numpy("digital_ecgs.npy")
#' }
read_numpy <- function(filename) {
## load the numpy object
np <- reticulate::import("numpy", convert=T) #Python's number library
rawdata<- np$load(filename)
return(rawdata)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.