I have a basic question, but it is the first time that I deal with this issue.
I wrote a pipeline (a list of commands that execute some computations). The pipeline is an R script that will run just after loading the file source("MyScrip.R").
At a certain point I have to set an external parameter that is called k
while running the script that can be null, so that k=""
or a number so that for example k = 20
depending from the input data.
The user will decide if it will be NULL
or 20
. I have no idea how to set this condition in the script and in the command line on the prompt. Can anyone help me please with some examples or general indications to implement this piece of code?