[R] How to extract or sort values from one column
m@||||@t@ @end|ng |rom pp@|net@||
Fri Jan 31 16:12:53 CET 2020
Let's assume your data is stored in a data frame called 'df'. So this
code should do the job:
df$Value[ (df$Value>=0.2 & df$Values<=0.4) | df$Value>=0.7 ]
pe, 2020-01-31 kello 09:21 -0500, pooja sinha kirjoitti:
> Hi All,
> I have a .csv file with four columns (Chrom, Start_pos, End_pos &
> The value column range from 0 to 1.0 having more than 2.8 million
> rows. I
> need to write a code from which I can extract the values from 0.2-0.4
> 0.7-1.0. Could anyone help me in writing the code because I am new to
> R and
> it takes lot of time manually to sort based on values.
> The only part I know is I can read the .csv file and after that I
> know how to proceed further.
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help