EPS_translate: EPS Translator

View source: R/datasteps_translators.R

EPS_translateR Documentation

EPS Translator

Description

It will read the score code that is written in DS2, extract the astore name and create an astore call written using SWAT. The reason for that is because the DS2 is not reliable/self contained

Usage

EPS_translate(
  in_file = NULL,
  out_file = "dmcas_epscorecode.R",
  zip = TRUE,
  in_caslib,
  in_castable,
  out_caslib,
  out_castable,
  hostname = "myserver.com",
  copyVars = NULL
)

Arguments

in_file

Path to zip/sas file with the score code.

out_file

Path to the translated .R code file.

zip

Boolean, if the score code is inside a zip file. Default to TRUE. It will look for dmcas_epscorecode.sas file inside the zip.

in_caslib

caslib name of the input table

in_castable

input table name

out_caslib

caslib name of the output table

out_castable

output table name

hostname

sas viya hostname to be used, not available inside the DS2 code

copyVars

default NULL, will not copy variables to the output. If "ALL" will copy all variables to the scored table output, if it is a vector, will copy named vars e.g: ⁠c("var1", "var2)⁠

Value

List object with the Rscore code, out castable, out caslib and the written file path.

Examples

EPS_translate("filepath.zip")


sassoftware/sas-scoring-translator-r documentation built on Dec. 7, 2023, 11:55 p.m.