plot - accessing / plotting rows and columns from tables - R -
ratings = read.table("ratings.txt", sep="\t", col.names=c("user", "mid", "rating"), fill=false, strip.white=true) l = colnames(ratings)[2]
this give me 2nd column - ("mid")
however third row in column "mid"
i try:
k = colnames(ratings)[2][3]
but give me n/a. how access rows , columns. , if can, plot them like:
plot(mid~rating)
Comments
Post a Comment