#' @title Format LTR prediction data to CSV file format
#' @description This function formats the LTR prediction \code{\link{data.frame}}
#' generated by \code{\link{LTRharvest}}, \code{\link{LTRdigest}}, or \code{\link{LTRpred}}
#' to a \code{\link{data.frame}} in \code{CSV} file format.
#' @param LTR.data the LTR prediction \code{\link{data.frame}}
#' generated by \code{\link{LTRharvest}}, \code{\link{LTRdigest}}, or \code{\link{LTRpred}}.
#' @param output filename of the output CSV file.
#' @author Hajk-Georg Drost
#' @examples
#' gff.file <- system.file("TAIR10_chr_all_LTRdigestPrediction.gff",
#' package = "LTRpred")
#' tabout.file <- system.file("TAIR10_chr_all-ltrdigest_tabout.csv"
#' ,package = "LTRpred")
#' LTRfile <- read.prediction(gff.file,tabout.file, program = "LTRdigest")
#'
#' # generate csv file
#' pred2csv(LTRfile$ltr.retrotransposon)
#' @return the \code{LTR.data} table in csv format saved to the hard drive.
#' @export
pred2csv <- function(LTR.data, output = "output.csv"){
utils::write.table(LTR.data,output, sep = ";", quote = FALSE, col.names = TRUE, row.names = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.