[R] Excel export into R

jim holtman jholtman at gmail.com
Thu Mar 6 01:08:41 CET 2008


There are a number of ways for importing from EXCEL.  For example if
you were to create a CSV file for EXCEL, you can read it like:

> x <- read.table('/tempxx.txt.r', header=TRUE, as.is=TRUE)
> x
  Control
1  543_BU
2  123_AT
3  432_CU


On Wed, Mar 5, 2008 at 6:42 PM, Keizer_71 <christophe.lo at gmail.com> wrote:
>
> Hello,
>
> I have this in excel
>
> Control
> 543_BU
> 123_AT
> 432_CU
>
>
> I want to be able to import to R so that it will read like this
>
> c<-c("543_BU","123_AT","432_CU")
>
> output:
> [1] "543_BU" "123_AT" "432_CU"
>
> This is just a short version. I have about 200000 rows and i need a simpler
> way instead of typing each one.
>
> thanks
> --
> View this message in context: http://www.nabble.com/Excel-export-into-R-tp15863252p15863252.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list