Hello sir
I am facing an issue in multivariant to remove the 2% of the markers from lines...
here is my initial code.
LDA
clean start
rm(list=ls())
installing and loading specialized libraries
library(lattice)
tryCatch({library(ggplot2)}, error = function(e) {install.packages("ggplot2")},finaly = library(ggplot2))
tryCatch({library(MASS)}, error = function(e) {install.packages("MASS")},finaly = library(MASS))
tryCatch({library(caret)}, error = function(e) {install.packages("caret")},finaly = library(caret))
#tryCatch({library(tidyverse)}, error = function(e) {install.packages("tidyverse")},finaly = library(tidyverse))
#library(gmodels)
Are you in the appropriate working directory?
getwd()
were are the test data
dir("Data/")
#reading data
Data=read.table("SunFlowerGenotypes.txt",header = T,sep="\t")
#showing header of data
head(Data)
colnames(Data)
#List of proportions line have
sapply(Data[,-1],mean)
#Eleminate the 2% of lines from markers
sapply(Data[,-1],mean)<0.02
I need help in to remove the 2% of markers from lines.
Here is the data
SunFlowerGenotypes.txt
I will be happy if you help me to figure out the code