Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

Filtering lots of numeric data in R, highest number in each of 3007 rows

$
0
0

3007 rows, need highest decimal number from each row and disregard any rows with a result below 0.5

numeric values represent probability of accuracy from 0 to 1, so i need the highest

need the code for - Look across a single row, identify the high value and return it, along with column name

it should come up as a simple table or list

Data that needs sorting

Did this

dput(BB[max.col(BB[1:516], ties.method = "first")])

got a lot of NAs

result

ouput message

[947] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA[969] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA[991] NA NA NA NA NA NA NA NA NA NA[ reached getOption("max.print") -- omitted 2007 entries ]

Warning message:In max.col(BB[1 - 516], ties.method = "first") : NAs introduced by coercion


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>