If you type ?as.data.frame and ?data.frame you can see there are
differences. data.frame() can take more than one "data parameter".
#producing different results:
data.frame(c(1,2,3), c("hello","world","!"))
as.data.frame(c(1,2,3), c("hello","world","!"))
there are differences (in parameters) for "as.factor" and "factor" as well.
Type ?factor
________________
Moritz Grenke
http://www.360mix.de
> Thanks for both responses.
> is there a difference between the "as.factor" and "factor" commands
> and also between "as.data.frame" and "data.frame"?
______________________________________________
[email protected] 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.