[R] store variable as tab-del. txt-file

Henrique Dallazuanna wwwhsd at gmail.com
Thu Jan 24 11:01:28 CET 2008


See ?write.table

On 24/01/2008, Schmitt, Corinna <Corinna.Schmitt at igb.fraunhofer.de> wrote:
> Hallo,
> how can I store a variable as a tab-delimited txt-file? I crated a
> variable with the following commands:
>
> > fit12<-lmFit(qrg[,1:2])
> > t12<-toptable(fit12,adjust="fdr",number=25,genelist=qrg$genes[,1])
> > t12
>             ID     logFC         t      P.Value  adj.P.Val        B
> 522    PLAU_OP -6.836144 -8.420414 5.589416e-05 0.01212520 2.054965
> 1555  CD44_WIZ -6.569622 -8.227938 6.510169e-05 0.01212520 1.944046
> 767   CD44_WIZ -8.164317 -8.201678 6.648556e-05 0.01212520 1.928622
> 1234  EMP1_WIZ -6.822609 -8.145985 6.953146e-05 0.01212520 1.895674
> 445   EMP1_WIZ -6.796011 -8.079979 7.334676e-05 0.01212520 1.856207
> 1310   PLAU_OP -6.361645 -7.955721 8.118607e-05 0.01212520 1.780656
> 1460 FOSL1_WIZ -6.265342 -7.841959 8.919795e-05 0.01212520 1.710025
> 1459 FOSL1_WIZ -6.132684 -7.692912 1.010747e-04 0.01212520 1.615319
> 1326  RAC2_WIZ -6.130817 -7.648676 1.049345e-04 0.01212520 1.586728
> 768   CD44_WIZ -6.054628 -7.592040 1.101204e-04 0.01212520 1.549795
> 537   RAC2_WIZ -6.447683 -7.577670 1.114816e-04 0.01212520 1.540365
> 1418  FOSL1_OP -6.022508 -7.556906 1.134820e-04 0.01212520 1.526697
> 1210   EMP1_OP -5.997289 -7.502210 1.189472e-04 0.01212520 1.490452
> 672  FOSL1_WIZ -6.060602 -7.491438 1.200581e-04 0.01212520 1.483272
> 446   EMP1_WIZ -6.211220 -7.461834 1.231715e-04 0.01212520 1.463470
> 545   PLAU_WIZ -5.931195 -7.429649 1.266597e-04 0.01212520 1.441824
> 630   FOSL1_OP -5.877253 -7.368262 1.336248e-04 0.01212520 1.400193
> 671  FOSL1_WIZ -5.870755 -7.325227 1.387642e-04 0.01212520 1.370736
> 1417  FOSL1_OP -5.813254 -7.294160 1.426123e-04 0.01212520 1.349331
> 422    EMP1_OP -6.013347 -7.286186 1.436191e-04 0.01212520 1.343819
> 546   PLAU_WIZ -6.030866 -7.282026 1.441477e-04 0.01212520 1.340939
> 369   PLAUR_OP -6.054368 -7.209710 1.536923e-04 0.01212520 1.290546
> 538   RAC2_WIZ -5.959863 -7.147772 1.624334e-04 0.01212520 1.246868
> 1325  RAC2_WIZ -5.811128 -7.144946 1.628454e-04 0.01212520 1.244864
> 1309   PLAU_OP -6.028117 -7.075208 1.733917e-04 0.01239404 1.195081
> >
>
> Now I want to store t12 as a tab-delimited txt-file to use it in other
> programm. How can I realize this?
>
> Thanks, Corinna
>
> ______________________________________________
> 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list