[R] how to name a variable?

ronggui ronggui.huang at gmail.com
Fri Jul 7 11:32:49 CEST 2006


> s<-data.frame(var.name=seq(1,6,by=2))
> s
  var.name
1        1
2        3
3        5


2006/7/7, zhijie zhang <epistat at gmail.com>:
> Dear friends,
>  The "s" in the following argument don't have a variable name, how should i
> give it a name?
>  > s<-data.frame(seq(1,6,by=2))
> > s
>   seq.1..6..by...2.
> 1                 1
> 2                 3
> 3                 5
>
> thanks very much!
>
> --
> Kind Regards,
> Zhi Jie,Zhang ,PHD
> Department of Epidemiology
> School of Public Health
> Fudan University
> Tel:86-21-54237149
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>


-- 
»ÆÈÙ¹ó
Department of Sociology
Fudan University



More information about the R-help mailing list