[R] Simple Question

K. Elo maillists at nic.fi
Fri Sep 28 08:31:16 CEST 2012


Hi!

28.09.2012 09:13, Bhupendrasinh Thakre wrote:
> Statement I tried :
>
> b <- unclass(Sys.time())
> b = 1348812597
> c_b <- rnorm(1,2,1)

Do you mean this:

--- code ---

 > df<-data.frame("x"=0,"y"=0)
 > colnames(df)
[1] "x" "y"
 > colnames(df)[2]<-paste("b",unclass(Sys.time()),sep="_")
 > colnames(df)
[1] "x"                  "b_1348813791.55393"

--- code ---

HTH,
Kimmo




More information about the R-help mailing list