search for: bestpeer

Displaying 2 results from an estimated 2 matches for "bestpeer".

Did you mean: best_err
2008 Jun 05
7
Improving data processing efficiency
...nissuers$HSICIG == arow$HSICIG, ] industrypeers = industrypeers[ order(industrypeers$Market.Cap.13f), ] if ( nrow(industrypeers) > 0 ) { if ( nrow(industrypeers[industrypeers$Market.Cap.13f >= arow$Market.Cap.13f, ]) > 0 ) { bestpeer = industrypeers[industrypeers$Market.Cap.13f >= arow$Market.Cap.13f, ][1,] } else { bestpeer = industrypeers[nrow(industrypeers),] } bestpeer$Quarters.Since.IPO.Issue = arow$Quarters.Since.IPO.Issue #tfd...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame. For instance > ddTable <- data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry")) I want a dataset that is Id Name 1 Paul 2 Bob > unique(ddTable) Will give me all 4 rows, and > unique(ddTable$Id) Will give me c(1,2), but not accompanied by the name column.