Last data update: 2014.03.03

R: Read raw experimental data from a file. This function reads...
readFileR Documentation

Read raw experimental data from a file. This function reads the data from specified (excel,log, txt etc) file and store it in a data frame.

Description

Read raw experimental data from a file. This function reads the data from specified (excel,log, txt etc) file and store it in a data frame.

Usage

readFile(filename, separator, sheet, noofrows_skip, readplates,
  numberofrowsperplate, platetype)

Arguments

filename

Filename.ext.

separator

Any character (, ; ' etc.) that is used as a separator in specified file.

sheet

Need to use only when reading excel files. It is the number of the excel sheet to be read in a worksheet.

noofrows_skip

Number of the rows in the file that should be skipped before starting the data reading.

readplates

Number of the plates that you want to read from a set of plates in a file. This parameter can only be used with excel files. Otherwise it will be ignored.

numberofrowsperplate

It is calculated on the basis of type of plates, that is, number of rows per plates are 17 for 384 well plates (16 lines from plates + 1 header lines) and 9 for 96 well plates (8 lines from plates + 1 header lines).

platetype

Either 384 or 96.

Value

Data frame of data in the file.

Author(s)

Muhammad Kashif

Examples

f <- system.file("/raw/optima.log", package="COMBIA")
fileDF <- readFile(filename = f, separator = ",",sheet=4, noofrows_skip=3,
readplates=1, numberofrowsperplate=17, platetype="384")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(COMBIA)
Loading required package: hash
hash-2.2.6 provided by Decision Patterns

Loading required package: gdata
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.

gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.

Attaching package: 'gdata'

The following object is masked from 'package:stats':

    nobs

The following object is masked from 'package:utils':

    object.size

The following object is masked from 'package:base':

    startsWith

Loading required package: lattice
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: oro.nifti
oro.nifti 0.5.2
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/COMBIA/readFile.Rd_%03d_medium.png", width=480, height=480)
> ### Name: readFile
> ### Title: Read raw experimental data from a file. This function reads the
> ###   data from specified (excel,log, txt etc) file and store it in a data
> ###   frame.
> ### Aliases: readFile
> 
> ### ** Examples
> 
> f <- system.file("/raw/optima.log", package="COMBIA")
> fileDF <- readFile(filename = f, separator = ",",sheet=4, noofrows_skip=3,
+ readplates=1, numberofrowsperplate=17, platetype="384")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>