I would like to separate one dataframe in two using R. As an example, having one dataframe 70% of the original content and the other one having 30%. How could I do that? My dataframe is of size (22740,2).
My dataframe consists in one column having genes and in the other column having the pathway where it belongs. I want to keep that 70-30 relation in EVERY pathway of the dataframe. Therefore, I am not interesting in taking the first 70% rows and do a new dataframe for example.
Hope I explained myself clearly.