Thank you Kevin, this is the code I am using. I'm not sure if I am missing any steps.
> pacman::p_load(pacman, rio, ggplot2, htmltools, DESeq2, limma, Biobase, GOexpress)
> Colorectal <- read.csv("C:/Users/Bigitha/Desktop/allnoc6.csv", row.names = 1)
> Colorectal <- as.matrix(Colorectal, rownames=TRUE)
> class(Colorectal)
> dim(Colorectal)
> colnames(Colorectal)
> head(Colorectal) #this is the normalised target count matrix
A1 A2 A3 A4 A5 A6 A7 A8
A2M 111.37228 93.43759 96.10967 68.92820 56.74304 33.45115 40.78395 43.74823
ABCB1 32.25881 39.19703 31.37352 25.84559 37.22006 28.23869 42.81308 25.45319
ABCF1 43.50197 39.45032 42.76654 30.98827 45.42456 61.10323 54.30966 41.83873
ABL1 47.23076 64.66280 47.58509 53.44226 61.02018 85.28357 60.83633 40.86467
ACOT12 32.04164 33.79165 29.51108 50.78428 33.70963 25.25458 34.68069 24.68044
ACSF3 58.79355 51.97980 50.39916 45.36814 57.41808 65.82973 56.23274 53.22973
> metadata <- read.csv("C:/Users/Bigitha/Desktop/Pheno2noC6.csv", row.names = 1, header=TRUE, sep=",")
> dim(metadata)
> rownames(metadata)
> summary(metadata)
> all(rownames(metadata)==colnames(Colorectal))
> phenoData <- new("AnnotatedDataFrame", data = metadata)
> head(pData(phenoData))
> eSet <- ExpressionSet(assayData = Colorectal, phenoData = phenoData)
> design <- model.matrix(~kras, data = pData(eSet))
> head(design, 30)
> colSums(design)
> table(pData(eSet)[,"kras"])
> fit <- lmFit(eSet, design)
> fit <- eBayes(fit)
> df <- topTable(fit, coef=2, n=2000)
> head(df,10)
logFC AveExpr t P.Value adj.P.Val B
POLR2A -23.92406 72.30563 -8.136987 2.084201e-10 3.801583e-07 8.495753
FOXA1 15.08336 35.97589 7.918481 4.343634e-10 3.961394e-07 8.080353
CAPN2 -39.77087 73.21918 -6.983658 1.044160e-08 6.348492e-06 6.219311
CMTM6 -39.12816 76.75838 -6.765166 2.208931e-08 1.007273e-05 5.766454
RAC3 26.40288 75.76756 6.695406 2.806665e-08 1.023871e-05 5.620601
LAMP1 -96.08082 157.26962 -6.320483 1.017535e-07 2.756852e-05 4.827166
CACNG4 10.32207 33.20535 6.309130 1.058002e-07 2.756852e-05 4.802907
SETD2 -13.77444 46.41535 -6.217496 1.449312e-07 3.304431e-05 4.606658
OAZ1 -248.20727 435.55159 -6.078048 2.338887e-07 4.597504e-05 4.306551
STK11 -33.33797 94.85910 -6.056238 2.520561e-07 4.597504e-05 4.259463