samp_for_class: split data into train vs test

samp_for_classR Documentation

split data into train vs test

Description

Splits a sample table into 2 sample tables roughly by prop in which no samples with sampe exp_id are in both the test and train

Usage

samp_for_class(sampTab, prop = 0.5, dLevel = "description1",
  dLevelStudy = "exp_id")

Arguments

sampTab

sample table must have exp_id column

prop

proportion of samples to use as training

dLevel

column name for

dLevelStudy

column name to indicate experiment or study id

Value

list of stTrain stVal


pcahan1/CellNet documentation built on May 18, 2023, 4:58 p.m.