Hi ngupta: i didn't get what you mean with "If B than xts..If T yts..." i suppose that you want to plot the prices of type A, then the prices of type B and so on...
# well, to extract prices of tipe A, you can use A <- which(table[,1] == "A") # and then A.prices <- table[,2][A] hope that helps, JM El Jueves, 22 de Mayo de 2008 11:29, ngupta escribió: > Hi, I am fairly new to R so this may be easy for some. > I have one column that is the Type="A, B' T" > and I have another column that lists Price='894, 895, 896' > > I wanted to plot three different series based upon the Type...If B than > xts..If T yts... > > How exactly do I do this? > > Thanks in advance ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.