Hey, I am very new to R and I need to use it (and the ACEPACK package) to do some statistical analysis. I have installed acepack but efforts to get started has been unsuccessful. I can't seem to be able to load my data files because I am yet to figure the syntax to use. Is there a work directory in R where I can put my files and call them anytime, like in Matlab? My files are on my C drive and I just can't figure the syntax to get them into R. Any help? ....Best Regards Obinna Duru Energy Resources Engineering Department, Green Earth Sciences Building, 367 Panama Street, Stanford, CA 94305-2220 cell: (650) 814 6079 fax: (659) 725 2099 email: duru@stanford.edu [[alternative HTML version deleted]]
what is the format of your data files, txt/csv/mdb/xls? the syntax is very different. could you please give more info? thanks. On 12/31/06, Obinna Duru <duru at pangea.stanford.edu> wrote:> Hey, I am very new to R and I need to use it (and the ACEPACK > package) to do some statistical analysis. > > I have installed acepack but efforts to get started has been > unsuccessful. I can't seem to be able to load my data files because I > am yet to figure the syntax to use. Is there a work directory in R > where I can put my files and call them anytime, like in Matlab? My > files are on my C drive and I just can't figure the syntax to get them into R. > > Any help? > > ....Best Regards > > Obinna Duru > > Energy Resources Engineering Department, > Green Earth Sciences Building, > 367 Panama Street, > Stanford, CA 94305-2220 > cell: (650) 814 6079 > fax: (659) 725 2099 > email: duru at stanford.edu > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code. >-- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)
On Dec 31, 2006, at 10:15 PM, Obinna Duru wrote:> I have installed acepack but efforts to get started has been > unsuccessful. I can't seem to be able to load my data files because I > am yet to figure the syntax to use. Is there a work directory in R > where I can put my files and call them anytime, like in Matlab? My > files are on my C drive and I just can't figure the syntax to get > them into R.Start by looking at ?getwd ?read.table intall.packages('foreign') # if not installed ?read.spss ?read.ssd etc. and then http://www.bioconductor.org/developers/progRef/fileHandling.pdf followed by the more general http://cran.r-project.org/doc/manuals/R-intro.pdf _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: http://www.people.virginia.edu/~mk9y/