[R] Re: Data frames

Josef Eschgfaeller esg at felix.unife.it
Mon Apr 25 12:34:24 CEST 2005


Perhaps this works for creating a new void dataframe:

Newvoid = function (...)
{a=c(...); m=length(a)
initial=matrix(rep(NA,m),byrow=T,ncol=m)
tab=data.frame(initial)
colnames(tab)=a; subset(tab,F)}

Josef Eschgfäller

-- 
Josef Eschgfäller
Dipartimento Matematico
Universita' di Ferrara
http://felix.unife.it


More information about the R-help mailing list