<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Construct FSGD Class name from group and non-continuous...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="https://rpkg.net/assets/examples.css" />
</head><body>

<table width="100%" summary="page for get.subject.class"><tr><td>get.subject.class</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Construct FSGD Class name from group and non-continuous covariate columns.</h2>

<h3>Description</h3>

<p>Construct FSGD Class name from group and non-continuous covariate columns.
</p>


<h3>Usage</h3>

<pre>
get.subject.class(demographics_df, row_idx, class_columns, collapse = "_")
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>demographics_df</code></td>
<td>
<p>data.frame, as returned by <code>read.md.demographics</code> or created manually. Note that the data.frame must not contain any character columns, they should be converted to factors.</p>
</td></tr>
<tr valign="top"><td><code>row_idx</code></td>
<td>
<p>integer, the row in the df that belongs to this subject</p>
</td></tr>
<tr valign="top"><td><code>class_columns</code></td>
<td>
<p>the column names to use</p>
</td></tr>
<tr valign="top"><td><code>collapse</code></td>
<td>
<p>character string, the separator</p>
</td></tr>
</table>


<h3>Value</h3>

<p>character string, the Class name for this subject, derived from the values in the 'class_columns'.
</p>


</body></html>
