[R] Splitting a data column randomly into 3 groups
drj|m|emon @end|ng |rom gm@||@com
Fri Sep 3 03:46:04 CEST 2021
One way is to shuffle the original data frame using sample(). and
split up the result into three equal parts.
I was going to provide example code, but Avi's response popped up and
I kind of agree with him.
On Fri, Sep 3, 2021 at 11:31 AM AbouEl-Makarim Aboueissa
<abouelmakarim1962 using gmail.com> wrote:
> Dear All:
> How to split a column data *randomly* into three groups. Please see the
> attached data. I need to split column #2 titled "Data"
> with many thanks
> *AbouEl-Makarim Aboueissa, PhD*
> *Professor, Statistics and Data Science*
> *Graduate Coordinator*
> *Department of Mathematics and Statistics*
> *University of Southern Maine*
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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