Learn R Programming

SWATH2stats (version 1.2.3)

import_data: import_data: Transforms the column names from a data frame to the required format.

Description

This functions transforms the column names from a data frame from another format to a data frame with column names used by the OpenSWATH output and required for these functions. During executing of the function the corresponding columns for each column in the data need to be selected. For columns that do not corresond to a certain column 'not applicable' needs to be selected and the column names are not changed.

Usage

import_data(data)

Arguments

data
A data frame containing the SWATH-MS data (one line per peptide precursor quantified) but with different column names.

Value

Returns the data frame in the appropriate format.

Examples

Run this code
data('Spyogenes', package = 'SWATH2stats')
head(data)
str(data)

Run the code above in your browser using DataLab