Question 2: Lung Cancer Data
The data.txt file is a 12625 x 56 matrix; each column (row) of the matrix corresponds to the individual case (gene). Among the 56 cases,
- Columns 1~20: pulmonary carcinoid samples (Carcinoid);
- Columns 21~33: colon cancer metastasis samples (Colon);
- Columns 34~50: normal lung samples (Normal);
- Columns 51~56: small cell carcinoma samples (SmallCell).
Before the following analyses, please first center each row of the data, i.e. remove the mean of each row and transpose the matrix.
library(tidyverse)
lungcancer = read.table("lungcancer.txt")
## center each row of the data and transpose
data = data.f