Try

vector <- c(1,2,3,4)
write.table(data.frame(vector), "example.xls", col.names = TRUE, row.names =
FALSE)

See ?write.table for more information.

HTH,
Jorge



On Tue, Sep 7, 2010 at 5:33 PM, lord12 <> wrote:

>
> What is the syntax for this?
>
> If you have: vector = c(1,2,3,4), how would you output this to column A of
> an excel spreadsheet?
> --
> View this message in context:
> http://r.789695.n4.nabble.com/how-to-you-output-a-vector-to-a-column-in-excel-tp2530470p2530470.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

        [[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.

Reply via email to