n(paste0(var,"_cs"),
> cumsum(get(df)[[var]]
> }}
> ls()[grep("df_",ls())]
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Daniel Egan
> Sent: Donnerstag, 25. April 2013 22:19
Hello all,
This seems like a pretty standard question - suppose I want to loop through
a set of similar data-frames, with similar variables, and create new
variables within them:
nl<-seq(1,5)for (i in nl) {
assign(paste0("df_",nl[i]),data.frame(x=seq(1:10),y=rnorm(10)))}
ls()[grep("df_",ls())]
he error - it's something
specific to 'cairo-png'. The vertical lines appear to be empty, i.e.
transparent.
Any guidance or assistance would be greatly appreciated.
Regards,
Daniel Egan
--
[image: Betterment]*Daniel Egan |* Director of Behavioral Finance and
Investing at Better
3 matches
Mail list logo