Hello,
Please Ana, post data in dput format.
And the expected output too.
Hope this helps,
Rui Barradas
Às 17:37 de 14/09/20, Ana Marija escreveu:
sorry not replace with NA but with empty string for a name, for example
for example this:
geneSymbol["Ku8QhfS0n_hIOABXuE"]
Ku8QhfS0n_hIOABXuE
sorry not replace with NA but with empty string for a name, for example
for example this:
> geneSymbol["Ku8QhfS0n_hIOABXuE"]
Ku8QhfS0n_hIOABXuE
"MACC1"
would go when I subject it to
> geneSymbol["Ku8QhfS0n_hIOABXuE"]
Ku8QhfS0n_hIOABXuE
On Mon, Sep 14, 2020 at 11:35 AM Ana Marija w
Hello,
I have a vector like this:
> head(geneSymbol)
Ku8QhfS0n_hIOABXuE Bx496XsFXiAlj.Eaeo W38p0ogk.wIBVRXllY
QIBkqIS9LR5DfTlTS8 BZKiEvS0eQ305U0v34 6TheVd.HiE1UF3lX6g
"MACC1""GGACT" "A4GALT"
"NPSR1-AS1""NPSR1-AS1" "AAAS"
it has around 15000 en
gston ON Canada
> -Original Message-
> From: ecoking...@yahoo.co.in
> Sent: Sun, 19 Jan 2014 11:39:43 -0800 (PST)
> To: r-help@r-project.org
> Subject: [R] how to replace values
>
> Dear R community
> B
> I have a large data set contain some empty cells. Becaus
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of kingsly
> Sent: Tuesday, January 21, 2014 7:22 AM
> To: r-help@r-project.org
> Subject: Re: [R] how to replace values
>
> First of all I thank all t
First of all I thank all the friends.
Though I have written zero to replace NA in previous email, I will replace
with extreme value (9).
On Tuesday, 21 January 2014 7:05 AM, jwd [via R]
wrote:
On Sun, 19 Jan 2014 11:39:43 -0800 (PST)
kingsly <[hidden email]> wrote:
_
On Sun, 19 Jan 2014 11:39:43 -0800 (PST)
kingsly wrote:
> Dear R community
>
> I have a large data set contain some empty cells. Because of that,
> may be I am wrong, values are produced. Now I want replace both
> empty and values with zero.
> Elder1 <- data.frame(
> ID=c("ID1","ID2","ID3"
0, 2014 3:07 PM
> To: r-help@r-project.org; ecoking...@yahoo.co.in
> Subject: Re: [R] how to replace values
>
> I hope the code below will show you how to co what you want to do.
> John
>
> Elder1 <- data.frame(
> ID=c("ID1","ID2","ID3","
ces@r-
> project.org] On Behalf Of John Sorkin
> Sent: Monday, January 20, 2014 3:07 PM
> To: r-help@r-project.org; ecoking...@yahoo.co.in
> Subject: Re: [R] how to replace values
>
> I hope the code below will show you how to co what you want to do.
> John
>
> Elder1 <
I hope the code below will show you how to co what you want to do.
John
Elder1 <- data.frame(
ID=c("ID1","ID2","ID3","ID6","ID8"),
age=c(38,35,"",NA,NA))
Elder1
# The age variable is a factor, we want it to be numeric
class(Elder1[,'age'])
# Convert factor to a numeric value.
Elder1$age<-as.nu
[r-help-boun...@r-project.org] ;
meghatalmazó: kingsly [ecoking...@yahoo.co.in]
Küldve: 2014. január 19. 20:39
To: r-help@r-project.org
Tárgy: [R] how to replace values
Dear R community
I have a large data set contain some empty cells. Because of that, may be I am
wrong, values are produced
Dear R community
Â
I have a large data set contain some empty cells. Because of that, may be I
am wrong, values are produced.
Now I want replace both empty and values with zero.
Â
Elder1 <- data.frame(
 ID=c("ID1","ID2","ID3","ID6","ID8"),
 age=c(38,35,"",NA,NA))
Output I am expecting
Â
indx <- match(u$nam, v$enter, nomatch = 0)
u$coe[indx != 0] <- v$coeff[indx]
Sent from my iPad
On Feb 5, 2012, at 15:45, Valerie Moore wrote:
> Hi,
>
> I have two data frames (u and v).
>
>> u
> coe nam
> 1 0 Time
> 2 0Poten
> 3 0 AdvExp
> 4 0Share
> 5 0 Chang
Hi,
I have two data frames (u and v).
> u
coe nam
1 0 Time
2 0 Poten
3 0 AdvExp
4 0 Share
5 0 Change
6 0 Accounts
7 0 Work
8 0 Rating
> v
coeff enter
1 0.7272727 Accounts
2 0.322 Time
3 0.0500123 Poten
I want to update the values
t;result <- merge(dataset, tmp)
>result$Mean[is.na(result$y) | result$y != 0] <- result$x[is.na(result$y) |
>result$y != 0]
>
>Best regards,
>
>Thierry
>> -Oorspronkelijk bericht-
>> Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
:21
> Aan: r-help@r-project.org
> Onderwerp: [R] how to replace values in x by means in subgroups created in ...
> (not loops)
>
>
> # Dear all,
> # how to replace values in x by means in subgroups created in ...
> # replace only these values where y=0 in continous sequence #
# Dear all,
# how to replace values in x by means in subgroups created in ...
# replace only these values where y=0 in continous sequence
# replace by mean calculated locally for each subgroup created by
# continous sequence of 0,0,0 in parallel y vector, i.e.
# where there is continous sequence
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
If the coding would start at 1 rather than 0 then +1's in the
penultimate line could be eliminated.
Sigbert
- ---
gene <- c("YAR003W", "YAR007C", "YAR008W", "YBL035C", "YBL111C", "YBL112C")
print(gene)
to <- c(0,1,3,2) # to <- c
Hello all,
I have a list of genes as follows (A)
Number GeneName
0 YAR003W
1 YAR007C
2 YAR008W
3 YBL035C
4 YBL111C
5 YBL112C
And I have a list of gene interactions as follows (B)
0 -> 1
1 -> 5
3 -> 4
2 -> 3
I want to repl
19 matches
Mail list logo