Entering edit mode
9.9 years ago
amit
•
0
I am completely new to R, sorry for this basic question.
I have around 150 different csv files, in a folder. I am interested in two common columns with same headers, among the files and am trying to make bar plots for these two columns for all the files, separately.
Could any body please suggest how to do this in a loop? I make bar plot from a single file in following way.
a <-read.table(file="test.txt", sep="\t", header=T)
p_range<- range(a$cp,a$cm)
barplot(a$cp, ylim=p_range)
barplot(a$cm, add=T)