# R –Refcards and Basic I/O Operations

- Author: Editor SDC
- Published: 2008-12-26
- Canonical: https://www.smartdatacollective.com/15508/

While working with a large number of files for data processing, I used the following R commands for data processing. Given that everyone needs to split as well merge and append data – I am just giving some code on splitting data based on parameters , and appending data as well as merging data.

 

Splitting Data Based on a Parameter.

The following divides the data into subsets which contain either Male or anything else in different datasets.

**Input and Subset**

Note the read.table command assigns the dataset name X in R environment from the file reference (path denoted by ….)

```
**x

