Note that if you want, you could go beyond trillions by adding to suffixes.
I hope that this does what you want,
John
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
--------------------------------
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Frank Duan
Sent: Saturday, April 16, 2005 5:02 PM
To: f.calboli at imperial.ac.uk
Cc: r-help
Subject: Re: [R] How to create a vector with "one", "two",
"three", ...?
Sorry, I didn't get the question clear. What I meant is to
create a character vector with length 200:
"one", "two", "three", ..., "two hundred"
On 4/15/05, Federico Calboli <f.calboli at imperial.ac.uk> wrote:
On Fri, 2005-04-15 at 14:30 -0400, Frank Duan wrote:
Hi R people,
I met a naive prolem. Could anyone give me a hint how to
create such
a vector with entries: "one", "two", "three", ...?
rvect <- c("one", "two", "three")
rvect
[1] "one" "two" "three"
Is it what you want?
F
--
Federico C. F. Calboli
Department of Epidemiology and Public Health Imperial College, St
Mary's Campus Norfolk Place, London W2 1PG
Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193
f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com