Is there a method that converts a csv file to a data frame ? M
On Thu, 9 Sep 2004, Murli Nair wrote:> Is there a method that converts a csv file to a data frame ?There are R _functions_, if that is what you are asking. ("method" is a technical term in R.) Try help.search("csv"), which gives me one entry. -- 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
Hi, see ? read.csv and use read.csv() to read the csv file, after convert as a data.frame see: ? as.data.frame it forces into a data.frame; e.g. you've the data csv file: data.csv mydata<-read.csv('C:/data.csv') mydf<-as.data.frame(mydata) ## data as dataframe bye Vito Is there a method that converts a csv file to a data frame ? M ====Diventare costruttori di soluzioni Visitate il portale http://www.modugno.it/ e in particolare la sezione su Palese http://www.modugno.it/archivio/cat_palese.shtml ___________________________________ http://it.seriea.fantasysports.yahoo.com/