Displaying 4 results from an estimated 4 matches for "allele0".
Did you mean:
allele
2018 Mar 05
2
Help with apply and new column?
...ta: Genomics SNP information
Goal: I need to add Chromosome and SNP position to the data frame I'm using through apply.
I'd like to add new column from text processed through apply function.
For example: 10:60523:T:G (Column 2)
CHR: 10
Position: 60523
Dataset:
chr rs ps n_miss allele1 allele0 af beta se l_remle p_wald
-9 10:60523:T:G -9 0 T G 0.977 -1.769354e-02 3.597196e-02 1.566731e-01 6.228309e-01
-9 10:60684:A:C -9 0 A C 0.973 1.698925e-02 2.942366e-02 1.561001e-01 5.636926e-01
-9 10:61331:A:G -9 0 A G 0.973 1.708586e-02 2.942424e-02 1.560944e-01 5.614851e-01
-9 10:62010:C:T -9 0 C...
2018 Mar 05
0
Help with apply and new column?
...xample: 10:60523:T:G (Column 2)
> CHR: 10
> Position: 60523
Assuming Position is "P", what are your "SNP" and "BP" in the names you
assigned below as c("SNP","P","CHR","BP")?
> Dataset:
> chr rs ps n_miss allele1 allele0 af beta se l_remle p_wald
> -9 10:60523:T:G -9 0 T G 0.977 -1.769354e-02 3.597196e-02 1.566731e-01 6.228309e-01
> -9 10:60684:A:C -9 0 A C 0.973 1.698925e-02 2.942366e-02 1.561001e-01 5.636926e-01
> -9 10:61331:A:G -9 0 A G 0.973 1.708586e-02 2.942424e-02 1.560944e-01 5.614851e-01
> -9...
2018 Mar 05
0
Help with apply and new column?
Read the Posting Guide... (see message footer) ... some relevant things you can find there:
a) Yes, this appears to be about how to use an R base function so it is on topic
b) Post a reproducible example (include some sample data, preferably using the dput function)
c) Post using plain text so the mailing list doesn't convert it for you and mangle things in a way you did not intend.
--
Sent
2018 Mar 05
2
Help with apply and new column?
Hello members,
Can I ask question for apply, adding new column to data frame on this e-mail list?
Thanks!
[[alternative HTML version deleted]]