Error: unexpected ‘}’ in “}” in R [duplicate]

It seems you using unicode characters in your code: ”p =”,p).

Replace

hist(x,prob=T,breaks=20,main=paste("n =",n,”p =”,p))

by

hist(x,prob=T,breaks=20,main=paste("n =",n, "p =",p))

Leave a Comment

tech