diff options
author | Suraj Yerramilli | 2015-02-06 22:46:27 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2015-02-06 22:46:27 +0530 |
commit | ee9d6e1533070c63cd21d5a2f67799415d328845 (patch) | |
tree | 4c45a738edeb6f157706b6305457165cab373804 /man | |
parent | 42cd9b42fb05596cd1ed81935df79c885c7e02ad (diff) | |
download | SysID-R-code-ee9d6e1533070c63cd21d5a2f67799415d328845.tar.gz SysID-R-code-ee9d6e1533070c63cd21d5a2f67799415d328845.tar.bz2 SysID-R-code-ee9d6e1533070c63cd21d5a2f67799415d328845.zip |
added an example to documentation
Diffstat (limited to 'man')
-rw-r--r-- | man/dataPartition.Rd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/man/dataPartition.Rd b/man/dataPartition.Rd index 501ace2..afcc473 100644 --- a/man/dataPartition.Rd +++ b/man/dataPartition.Rd @@ -18,4 +18,10 @@ list containing estimation and validation idframe objects The function splits the data into training and validation sets and returns them bundled as a list. The size of the sets are determined by the parameter \code{p}. } +\examples{ +data(cstr) +splitList <- dataPartition(cstr,p=0.6) +train <- splitList$estimation # training set +test <- splitList$validation # testing set +} |