Off topic:making barplots from multiple files in R
0
0
Entering edit mode
11.2 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)
R • 2.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2316 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6