On 14.02.2011 19:58, jose Bartolomei wrote:
Dear all,
I have encounter an odd situation.
I have various R scripts interconnected via the source () function.
After examining the results I noticed that not all the functions or procedures
within a script were adequately conducted.
Especially with the longest script ( about 180 lines)
Then, I ran every scripts individually (not using source () ) selecting all
(Ctrl + a) and running the selection (Ctrl + r).
R read every line in my script but, again, not all of the procedures were
executed.
For example:
X$DATEACCI<-as.Date(X$DATEACCI) stayed as a factor.
Or
X$AgeG bellow was not created
ageg<-c(0, 4, 11, 50, Inf)
X$AgeG<-cut(X$AGE, ageg, include.lowest=TRUE,
labels=c("0-4", "5-11", "12-50", "51+"))
X data.set is approximately dim( 345,000, 33) for year one but I will need to
run the scripts on 10 years.
I tried it using attach and the function use() from epicalc but did not work
neither.
Well, you need to give us a reproducible example, if my following guess
is incorrect: You have not looked at the error messages!
Please report the error messages and whatch out after which lines they
appear if you run it as a whole. You certainly made a mistake, but we
cannot know.
Uwe Ligges
Nonetheless, if I ran every line of my script individually, everything was OK.
Any insight on this?
What I have missed from R Manuals?
I am using R 2.12.0 embedded within eclipse Helios via StatET 0.9.1
In addition I ran the scripts using R console: 2.12.0, 32 bit (not within
eclipse)
I conducted the same procedure in two different HP Z400 running in Window 7,
4Gb of RAM
I'll try under Linux in my home, if different I'll report it.
Thanks,
Jose
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.
______________________________________________
[email protected] 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.