Re: [R] how to name a variable?

From: ronggui <ronggui.huang_at_gmail.com>
Date: Fri 07 Jul 2006 - 19:32:49 EST

> 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@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@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



______________________________________________ R-help@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

Received on Fri Jul 07 20:46:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 07 Jul 2006 - 22:15:52 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.