On Wed, Nov 3, 2010 at 6:04 PM, km <srikrishnamo...@gmail.com> wrote: > Hi all, > > can we use '=' instead of '<-' operator for assignment in R programs?
Yes, mostly, you can also use 'help' to ask such questions: > help("=") The operators ‘<-’ and ‘=’ assign into the environment in which they are evaluated. The operator ‘<-’ can be used anywhere, whereas the operator ‘=’ is only allowed at the top level (e.g., in the complete expression typed at the command prompt) or as one of the subexpressions in a braced list of expressions. and so on... ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.