Issue the command:
debug(eat.a.file)
and then run your eat.a.file call. This will step you through
the function showing where it goes wrong.
By the way,
- you don't need semicolons at the end of each line,
- the format you are specifying on chron is the default anyways
so you can leave ou
r than the old-style `eat.file`, though R
base itself is full of names.somethings and probably
always will be.
HTH
> -Original Message-
> From: Ajay Shah [mailto:[EMAIL PROTECTED]
> Sent: 02 March 2004 18:00
> To: r-help
> Subject: [R] Stuck in trying to convert repetitive code
Folks,
I have the following repetitive code which works correctly:
A = read.table(file="junior.csv", sep=",", col.names=c("date", "l"));
A$date = chron(as.character(A$date), format="m/d/y");
r.junior = levels2weeklyret(lastfriday, A$date, A$l);
plot(A$date, A$l, type="l", col="red", m