Question

Creating and manipulating data frames

Merge the most relevant data found in the 3 tables (golub.gnames, golub, and golub.cl) that make-up the golub data in the library (multtest) into one data.frame with the following properties:

Name: golub.df

Dimensions: patient rows and named gene columns, and an additional named column for the cancer classifications

Column Names: use the gene name (column 2) from golub.gnames and “classification”

Classification Column: use a factor column in golub.df that uses "ALL" and "AML" as the classifications

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

# lymphoblastic leukemia (ALL) and acute myeloid leukemia (AML)
length(golub.cl) # 38
gol.fac <- factor(golub.cl, levels=0:1, labels = c("ALL","AML") )
gene.names <- levels( factor(golub.gnames[,2]))
length(gene.names) # 2935...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

C++ Questions
Homework Solution
$30.00
Programming
C++
Palindromes
Strings
Reverse Functions
Time Formats
Parameters
Outputs
Console
Input
Output
Display
Letters
Characters
Lines
Statements
Variables
Counters
Points & Distances Using R Programming
Homework Solution
$90.00
Statistics
Mathematics
Computer Science
Computing
R Programming
Functions
Distances
Points
Pairs
Equations
Matrices
Random Values
Statements
Variables
Loops
General Questions from Various Computer Science Branches
Homework Solution
$20.00
CSS
XML
Authentication
Authorization
RDBMS
Tree
Data
Structure
IT
NAND
Gate
Address
IP
Netmask
Network
Venn
Diagram
NTP
Server
Query
Database
Normalization
Relational
Data
Gauss-Jordan Equation Method in C++
Homework Solution
$175.00
Mathematics
Computer Science
C++
Gauss-Jordan
Linear Equations
Matrices
Input Files
Output Files
Rows
Columns
Loops
Variables
Statements
Algorithm
Results
Get help from a qualified tutor
Live Chats