<!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: Data input from file</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

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

<h2>
Data input from file
</h2>

<h3>Description</h3>

<p>Reads <code>std</code> data from CSV file and creates <code>std</code> object.
</p>


<h3>Usage</h3>

<pre>
read.std(file, sep = "\t", dec = ".")
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>file</code></td>
<td>

<p>file path.
</p>
</td></tr>
<tr valign="top"><td><code>sep</code></td>
<td>

<p>field separator used in the file, defaults to &quot;\t&quot;.
</p>
</td></tr>
<tr valign="top"><td><code>dec</code></td>
<td>

<p>the character used in the file for decimal points, defaults to &quot;.&quot;.
</p>
</td></tr>
</table>


<h3>Details</h3>

<p>The <code>file</code> format allows to have more test data within one file.
</p>

<table summary="Rd table">
<tr>
 <td style="text-align: left;">
# Meta data  </td><td style="text-align: left;"> --- </td><td style="text-align: left;"> --- </td><td style="text-align: left;"> --- </td>
</tr>
<tr>
 <td style="text-align: left;">
D1 names </td><td style="text-align: left;"> D1 values </td><td style="text-align: left;"> DN names </td><td style="text-align: left;"> DN values </td>
</tr>
<tr>
 <td style="text-align: left;">
# Data  </td><td style="text-align: left;"> --- </td><td style="text-align: left;"> --- </td><td style="text-align: left;"> --- </td>
</tr>
<tr>
 <td style="text-align: left;">
aperture  </td><td style="text-align: left;"> retained </td><td style="text-align: left;"> aperture </td><td style="text-align: left;"> retained </td>
</tr>
<tr>
 <td style="text-align: left;">
A1 </td><td style="text-align: left;"> R1 values </td><td style="text-align: left;"> An </td><td style="text-align: left;"> Rn values </td>
</tr>
<tr>
 <td style="text-align: left;">
  </td>
</tr>

</table>

<p>Section D1 or DN is 5 rows of meta data. <br />
Commented lines must not be removed. <br />
Multi row columns A and R corresponds to <code>a</code> and <code>r</code> arguments of
<code>std</code> function, D corresponds to <code>desc</code>.
</p>
<p>The file must have at least two columns, then it is just for 1 sample data,
or it can have Nx2 columns for N samples.
</p>
<p>Data section allows for different number of A1 and AN rows.
</p>


<h3>Value</h3>

<p>Returns a <code>std</code> object.
</p>


<h3>See Also</h3>

<p><code>std</code>, <code>c.std</code>, <code>summary.std</code>
</p>


<h3>Examples</h3>

<pre>
# provided example file
fi &lt;- system.file("lignite.csv",package="sievetest")
# inspect the file
file.show(fi)
# read the file
# there will be warning, because the file is prepared the way
# to show them, they are OK
a &lt;- read.std(fi)
plot(a)
</pre>


</body></html>
