dataframe - R : understanding simplified script with brackets or hooks? -
i understand how works script :
y <- y[keep, , keep.lib.sizes=false]
in : keep <- rowsums(cpm(y)>1) >= 3 y <- y[keep, , keep.lib.sizes=false]
i know d.f[a,b]
can not find r-doc d.f[a, ,b]
.
i tried "brackets", "hooks", "commas"... :-(
(sometimes prefer 1 not simplifie r script !)
thanks in advance.
subscripting data.frames takes 2 values: df[rows, columns]
. third value optional arguments can use subscript.
the common of drop=false
in df[1:18, 3, drop = false]
. done because when subset 1 column of data.frame, lose data.frame class. in specific case, seems using object looks data.frame added functionalities bioconductor package. @ methods tell how these work.
Comments
Post a Comment