r - How to select data from dataframe and create a subdataset? -


i have 2 dataframe in r. "x" dataframe has 2 columns (number of identity[id] of animal "i" in 1st, , in 2nd col. point related of animal "i"), , "n"-rows number of animals scored. "y" dataframe has 2 col. x (id of animal "i" in 1st col. , in 2nd col. point related animal "i" in same row, caracther studied). not animals have both evaluations, of them. take sub-dataframe animals have both evaluations. use id recognize animals have both evaluations. subdaframe make composed 3 columns: id of "i" animal (in 1st c.), point in dataframe x (in 2nd c.), , point in dataframe y animal "i" (in 3rd c.). i'm quite new in r , search on web. found "merge" it's seems not work. me? in advance.

i found answer. did subdataframe of each dataframe 4° , 11° column, , used script: a=merge(x,y,by.x="v4",by.x="v4")


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -