[R] Splitting up of a dataframe according to the type of variables

Jim Holtman jholtman at gmail.com
Mon Dec 17 11:16:33 CET 2012


most likely the 'split' function, but exactly how would depend on the data which you did not provide.

Sent from my iPad

On Dec 17, 2012, at 5:02, "Martin Spindler" <Martin.Spindler at gmx.de> wrote:

> Dear R users,
> 
> I have a dataframe which consists of variables of type numeric and factor.
> What is the easiest way to split up the dataframe to two dataframe which contain all variables of the type numeric resp. factors?
> 
> Thank you very much for your efforts in advance!
> 
> Best,
> 
> Martin
> 
> ______________________________________________
> R-help at r-project.org 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.




More information about the R-help mailing list