[R] Getting a Error: unexpected symbol in:
dwinsemius at comcast.net
Sat Dec 13 04:44:16 CET 2014
On Dec 12, 2014, at 1:43 PM, Sajjad Jafri wrote:
> I am trying to create a simple function that finds the number of days
> between two dates. However, when I run the function, R gives me an error
> message saying:
What do you mean "when you run the function"? I do not see any calls to the function.
I do see an error message but the functions was defined, nonetheless. All you need to do is type `diffdate` to see it. You will probably be surprised.
> unexpected '}' in " }"
> Here is my function:
> #create a function that finds the number of days between two dates
> return z1-z
> [[alternative HTML version deleted]]
Read the Posting Guide regarding teh desired format of posts.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Alameda, CA, USA
More information about the R-help