[R] How to Export an R outcome to an Excel Spreadshee​t

PaulJr paulbernal07 at gmail.com
Tue May 1 22:52:29 CEST 2012


Hello R community,

 

I basically created a normal distribution with mean 2500 and standard
deviation = 450 with a sample of size 50 and assigned that to a variable
named genvar2 with the following command:

 

genvar2<-rnorm(mean=2500, sd=450, n=50)

 

Now, the output of genvar2 generates de following:

 

[1] 2478.126 2671.259 2163.879 2440.796 2702.234 1871.514 2525.127 2830.688
 [9] 2704.148 3464.478 2609.795 3368.288 2661.613 2731.901 2535.846 2165.461
[17] 1870.069 3513.533 2053.342 2447.887 2605.913 2188.192 2514.004 2965.374
[25] 3550.454 1783.323 2568.323 2324.673 2528.994 2433.895 2751.111 2727.282
[33] 1837.081 1896.721 3445.993 1357.462 2348.177 2368.423 2029.738 2500.372
[41] 2000.008 3088.112 3003.325 2763.740 2475.636 1860.988 2292.909 2134.172
[49] 2291.116 2851.066


I want to export all of these numbers into a column in an excel file (in an
xlsx and .csv format).

 

How can I do this?

 

Any help will be greatly appreciated,

 

Best regards,

 

Paul

--
View this message in context: http://r.789695.n4.nabble.com/How-to-Export-an-R-outcome-to-an-Excel-Spreadshee-t-tp4601703.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list