[R] Loading some function at R startup

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Nov 10 09:35:54 CET 2004


?Startup will tell you how: most likely you want to use ~/.Rprofile.

BTW, read.delim2 already sets dec="," by default!

On Wed, 10 Nov 2004, Vito Ricci wrote:

> Dear R-users,
> 
> I've built these functions usefell for me to
> import/export data from/to Excel:
> 
> importa.da.excel<-function(){read.delim2("clipboard",
> dec=",")
> ## questa funzione consente di importare dati da Excel
> in R
> ## selezionare in Excel le celle che contengono i
> dati, 
> ## compresi in nomi delle colonne
> ## Autore: Vito Ricci email:vito_ricci at yahoo.com
> ## Data di creazione: 09/11/04
> }
> 
> esporta.in.excel<-function(dati){write.table(dati,"clipboard",
> sep="\t", dec=",", col.names=NA)
> ## questa funzione consente di esportare dati in Excel
> da R
> ## passare come argomento il dataframe, la matrice,
> vettore da esportare 
> ## Autore: Vito Ricci email:vito_ricci at yahoo.com
> ## Data di creazione: 09/11/04
> }
> 
> I wish those functions will be loaded each time starts
> an R session. How can I get this? 
> 
> platform i386-pc-mingw32
> arch     i386           
> os       mingw32        
> system   i386, mingw32  
> status                  
> major    2              
> minor    0.0            
> year     2004           
> month    10             
> day      04             
> language R   
> 
> Thanks in advance.
> Vito
> 
> =====
> Diventare costruttori di soluzioni
> Became solutions' constructors
> 
> "The business of the statistician is to catalyze 
> the scientific learning process."  
> George E. P. Box
> 
> 
> Visitate il portale http://www.modugno.it/
> e in particolare la sezione su Palese http://www.modugno.it/archivio/cat_palese.shtml
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list