jeudi 21 décembre 2017

R - Function Error with IF Statement

I am getting the following error for the code: Error: unexpected '}' in "}"

csv_etl <- function(client) {
  if (client = 'OXF') {
    print('I am OXF')
  }
}

Is my syntax incorrect? I've counted the curly braces and parenthesis and they all are closed.

Aucun commentaire:

Enregistrer un commentaire