Skip to content

what is wrong with for and if cycle in R

3 messages · Jie Tang, Ingmar Visser, Pascal Oettli

#
I get this error below, there seems to be hidden character in your
input instead of a parenthesis:
+ {
+ if (ity==1?
Error: unexpected input in:
"{
if (ity==1?"
+ print(ity)
+ }
Error in print(ity) : object 'ity' not found
Error: unexpected '}' in "}"
hth, Ingmar
On Thu, Dec 19, 2013 at 10:07 AM, Jie Tang <totangjie at gmail.com> wrote:
#
Hi,

It seems the right prenthesis ")" in the "if" statement is in
different encoding.
[1] ef bc 89
[1] 29

 By changing the right parenthesis, it works fine.

HTH,
Pascal
On 19 December 2013 18:07, Jie Tang <totangjie at gmail.com> wrote: