duttashi / learnr

Exploratory, Inferential and Predictive data analysis. Feel free to show your :heart: by giving a star :star:
MIT License
78 stars 56 forks source link

initial commit- create script on data filtering. #43

Closed duttashi closed 5 years ago

duttashi commented 5 years ago

In this script, I have answered the question, Assume a dataset consists of mixed data, ie., both numeric and categorical data Then, How to filter rows of data with multiple columns having negative values.?

R> df
  fac1 fac2  num1  num2
1    1    4  0.30 -1.23
2    2    3  0.40  0.30
3    1    2 -1.23 -3.21
4    4    3 -3.21  0.21
5    1    3  0.23  0.12

I want, rows with non-negative data like,

  fac1 fac2 num1 num2
1    2    3 0.40 0.30
2    1    3 0.23 0.12
duttashi commented 5 years ago

no conflict with the base branch. Okay to merge.