View source: R/UA_UI_Functions.R
BSkysaveDataset | R Documentation |
saves a BlueSky Statistics UI datagrid loaded dataset to the supported file formats. [supported file formats : .SAV, .SAS7BDAT, .DTA, .XLSX, .CSV, .RDATA, and .DBF]
BSkysaveDataset(
fullpathfilename,
filetype,
Rownames = TRUE,
Colnames = FALSE,
newWorksheetName = NULL,
factor2char = TRUE,
dataSetNameOrIndex
)
fullpathfilename |
is a full path filename of a disk file to which will dataset will be written. Use forward slash as path separator. |
filetype |
is the file format you want to save to. It must be one of the ("XLSX", "CSV", "DBF", "RDATA", "SAV", "SAS7BDAT", "DTA"). |
newWorksheetName |
is the name of the excel worksheet. Used only when saving to an Excel file format. |
dataSetNameOrIndex |
is a name of the dataset that already loaded in the BlueSky Statistics UI datagrid. Use single quotes around dataset name. |
df <-data.frame(A=c(1,2,3), B=c(4,5,6), C=c(6,7,8))
BSkyLoadRefresh('df') #dataframe must be loaded in the grid before you try to save it to different formats.
BSkysaveDataset("D:/mytestdata.rdata", filetype="RDATA", dataSetNameOrIndex='df')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.