On Fri, Sep 28, 2012 at 11:15 AM, Bhupendrasinh Thakre <vickytha...@gmail.com> wrote: > Thanks a ton Berend. That worked like a charm...... > R comes with thousands of Sweet Surprises everyday....
-- Not for those who read the docs. :-o -- Bert > > > Bhupendrasinh Thakre > > > > > On Sep 28, 2012, at 12:00 PM, Berend Hasselman <b...@xs4all.nl> wrote: > >> >> On 28-09-2012, at 18:40, Bhupendrasinh Thakre <vickytha...@gmail.com> wrote: >> >>> Hi Everyone, >>> >>> Sorry for coming back again with a new problem. >>> Editing question, session info and data so you don't have to scroll till >>> the end of page. >>> >>> *Situation :* >>> >>> I have a data frame and it's name is df. Now I want to add Time Stamp to >>> the end of *"name" of "data Frame" i.e. "df_system_time"*. Previously it >>> was running great and thanks to Dr. Winsemius , Kimmo and Pascal and I >>> believe as the function which i used was scalar. >>> >>> *Data :* >>> >>> dput(df)structure(list(x = 1:10, y = 1:10), .Names = c("x", "y"), >>> row.names = c(NA, >>> -10L), class = "data.frame") >>> >> >> You have been given the answer. >> It only needs a minor variation: >> >> newname.df <- paste0("df_", format(Sys.time(), "%Y_%m_%d_%H_%M_%S") ) >> assign(newname.df,df) >> >> and if you wish >> >> rm(list=c('df','newname.df')) >> >> Or install package memisc (found by doing findFn("rename") from package sos) >> and use function rename(0; I have not tried this. >> >> Berend > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm ______________________________________________ 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.