Commit d468d363 authored by Feng Xue's avatar Feng Xue
Browse files

add help text to use and keep commands

parent 76b2d914
......@@ -116,6 +116,34 @@ function CommandExecutor() {
}
]
},
"keep": {
"parameters": "[varlist] [if]",
"shortDescription": "Hold variables or observations in the current dataset.",
"description": "The command keep holds variables or observations in the current dataset. Either the [varlist] or the [if] statement need to be specified. Both can not be specified together. When the [varlist] is specified the variable column is kept in the dataset. And, when the [if] statement is specified, observations (rows) matching the condition are kept in the dataset.\n\nThe keep command is irreversible.",
"syntax": "keep [varlist] [if]",
"examples": [
{
"example": "keep gender",
"description": "Keep variable \"gender\" in the current dataset."
},
{
"example": "keep if age < 5",
"description": "Keep observations where variable age has value less than 5."
}
]
},
"use": {
"parameters": "datasetId",
"shortDescription": "Load dataset.",
"description": "The command use loads into workspace a dataset previously created. If your datasetId contains embedded spaces, remember to enclose it in double quotes.creates a new variable where its values are as per the expression defined.",
"syntax": "use datasetId",
"examples": [
{
"example": "use dataset1",
"description": "Load dataset1 into current workspace."
}
]
},
"generate": {
"parameters": "newvar = expression [if ...]",
"shortDescription": "Creates new variable as per the expression defined.",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment