Completely true. Thank you for your help
On Thu, Sep 16, 2021 at 12:37 PM Rui Barradas wrote:
> Hello,
>
> You are trying to access elements that do not exist, see the example below:
>
>
> x <- 1:3
> x[5] # beyond the last element
> #[1] NA
>
> dim(df)
> #[1] 145092258
>
> df[145092
Hello,
You are trying to access elements that do not exist, see the example below:
x <- 1:3
x[5] # beyond the last element
#[1] NA
dim(df)
#[1] 145092258
df[14509227,] # beyond nrow(df) by 2
Hope this helps,
Rui Barradas
Às 15:12 de 16/09/21, Ana Marija escreveu:
Hi All,
I
You are getting this because you asked for the contents of a row that
is beyond the number of rows in your data frame.
On Thu, Sep 16, 2021 at 5:12 PM Ana Marija wrote:
>
> Hi All,
>
> I have lines in file that look like this:
>
> > df[14509227,]
> SNP A1 A2 freq b se p N
> 1: NA
1 4:12 PM
> To: r-help
> Subject: [R] unable to remove NAs from a data frame
>
> Hi All,
>
> I have lines in file that look like this:
>
> > df[14509227,]
> SNP A1 A2 freq b se p N
> 1: NA NA NA NA NA
>
> data looks like this:
> > he
Hi All,
I have lines in file that look like this:
> df[14509227,]
SNP A1 A2 freq b se p N
1: NA NA NA NA NA
data looks like this:
> head(df)
SNP A1 A2 freq b se p N
1: rs74337086 G A 0.0024460 0.1627 0.1231 0.1865 218792
2: rs76388980 G
5 matches
Mail list logo