R: Summary information only for positive numbers in a range

Unknown Coder

I have variable in a dataframe that contains values between -70 and 78. If I use the summary() function, I get a summary with all the numbers included (as expected). Is it possible to run summary() ONLY on the positive numbers (>0) within that variable?

Conrad_111

Yes, it's possible.

The code below works, assuming your data frame is called myData and the column you want to filter (to values >0) is called x.

summary(myData[myData$x>0,])

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Python Range() for positive and negative numbers

From Dev

Cumulative sum for positive numbers only

From Java

How to make type="number" to positive numbers only

From Dev

Summing only positive numbers in PHP array

From Dev

Check if string contains only positive numbers in Ruby

From Dev

How to only allow positive numbers in an EditText

From Dev

How to add only positive numbers in shell script?

From Dev

Grep for a range of numbers in R

From Dev

awk - match positive whole numbers and floating point numbers only

From Dev

Creating a Sequence with positive and negative numbers in R

From Dev

R: Mapping positive and negative numbers with different colors

From Dev

pandas dataframe groupby: sum/count of only positive numbers

From Dev

How to generate only positive numbers (see what I mean below)

From Dev

Program that returns the sum of squares of only the positive numbers in a list

From Dev

Positive numbers only validation in a do..while + switch/case statement

From Dev

HTML input for Positive Whole Numbers Only (Type=number)

From Dev

Casting str in Scientific Notation to Float fails only on Positive numbers in Python

From Dev

jQuery allow only positive or negative numbers (without decimals)

From Dev

Allow only numbers in range to be entered into text box

From Dev

Negative and positive percentage range

From Dev

How To Split A Range Factor Into List Of Numbers In R

From Dev

grouping and averaging fixed range of numbers in R

From Dev

Custom validation for positive numbers

From Dev

Positive and Negative numbers in String

From Dev

Positive and negative numbers with ArrayList

From Dev

How can I define an Elisp widget type that only accepts positive numbers?

From Dev

Python: how to get only positive numbers of nested int list with resonable performance

From Dev

javascript to allow only negative and positive numbers and decimal upto 6 digits on keypress

From Dev

How do I filter and sum only negative or positive numbers in a field using an expression in SQL Reporting Services 2014

Related Related

  1. 1

    Python Range() for positive and negative numbers

  2. 2

    Cumulative sum for positive numbers only

  3. 3

    How to make type="number" to positive numbers only

  4. 4

    Summing only positive numbers in PHP array

  5. 5

    Check if string contains only positive numbers in Ruby

  6. 6

    How to only allow positive numbers in an EditText

  7. 7

    How to add only positive numbers in shell script?

  8. 8

    Grep for a range of numbers in R

  9. 9

    awk - match positive whole numbers and floating point numbers only

  10. 10

    Creating a Sequence with positive and negative numbers in R

  11. 11

    R: Mapping positive and negative numbers with different colors

  12. 12

    pandas dataframe groupby: sum/count of only positive numbers

  13. 13

    How to generate only positive numbers (see what I mean below)

  14. 14

    Program that returns the sum of squares of only the positive numbers in a list

  15. 15

    Positive numbers only validation in a do..while + switch/case statement

  16. 16

    HTML input for Positive Whole Numbers Only (Type=number)

  17. 17

    Casting str in Scientific Notation to Float fails only on Positive numbers in Python

  18. 18

    jQuery allow only positive or negative numbers (without decimals)

  19. 19

    Allow only numbers in range to be entered into text box

  20. 20

    Negative and positive percentage range

  21. 21

    How To Split A Range Factor Into List Of Numbers In R

  22. 22

    grouping and averaging fixed range of numbers in R

  23. 23

    Custom validation for positive numbers

  24. 24

    Positive and Negative numbers in String

  25. 25

    Positive and negative numbers with ArrayList

  26. 26

    How can I define an Elisp widget type that only accepts positive numbers?

  27. 27

    Python: how to get only positive numbers of nested int list with resonable performance

  28. 28

    javascript to allow only negative and positive numbers and decimal upto 6 digits on keypress

  29. 29

    How do I filter and sum only negative or positive numbers in a field using an expression in SQL Reporting Services 2014

HotTag

Archive