[R] problem with simple if() statement

Norman Goodacre
Mon, 06 Feb 2006 06:22:21 -0000

the following code apprantely, for some grand old reason, induces a syntax
error:

  if (seq[i] = "A") m <- trans[1,]

  where seq is a vector and trans is a matrix. I cannot for the life of me see
why this is wrong. Syntax error is:

  Error: syntax error in "if (seq[i] ="

  Sincerely,

  Norman Goodacre



---------------------------------

---------------------------------

	[[alternative HTML version deleted]]