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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -