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

Questions About GIT
Homework Solution
$75.00
Computer Science
Programming
GIT
Java
Algorithms
Accounts
Configurations
Branches
Classes
Patterns
Commands
Remote Repository
Executing
Data Mining Problem
Homework Solution
$20.00
Data Mining
Clusters
Functions
Iterations
Excel
Algorithms
Observations
Data Sets
K-Means
Centroids
KNN Classification of The Iris Dataset
Homework Solution
$10.00
Computer Science
R Programming
Data Science
KNN Classification
Iris Dataset
Variables
Species
Fitting
Test Data
Train Data
Sorting Algorithms Using Programming Language C
Homework Solution
$63.00
Computer Science
Programming
C
Heap
Recursion
Quick Sort
Bubble Sort
Functions
Algorithms
Modification
Partition
Arrays
Loops
Statements
Variables
Pointers
Experiments
Data Sets
Random Numbers
Transaction Processing Systems (130 words)
Homework Solution
$13.00
Computer Science
Technology
Transactions
Processing Systems
Companies
Management
Sales
Profitability
Productivity
Employees
Get help from a qualified tutor
Live Chats