Displaying 8 results from an estimated 8 matches for "a2ct2".
Did you mean:
a22
2012 Feb 24
2
data frame manipulation with condition
...("AA","BB","CC","AA"),y=1:4))
> df
x y
1 AA 1
2 BB 2
3 CC 3
4 AA 4
I want to modify this df this way :
if df$x=="AA" then df$y=df$y*10
if df$x=="BB" then df$y=df$y*25
and so on with other conditions.
TY for any help.
Trading
?
A2CT2 Ltd.
Arnaud Gaboury
?
A2CT2 Ltd.
2012 Feb 09
2
ifelse
...%in% c(1,10,100)==TRUE),cat("YES\n"),cat("NO\n"))
YES
Error in ifelse(all(l %in% c(1, 10, 100) == TRUE), cat("YES\n"), cat("NO\n")) :
replacement has length zero
I have the correct answer, YES, but with an Error.
Why?
TY for any help
Arnaud Gaboury
?
A2CT2 Ltd.
2012 Feb 24
1
data frame manipulation with conditions
...("AA","BB","CC","AA"),y=1:4))
> df
x y
1 AA 1
2 BB 2
3 CC 3
4 AA 4
I want to modify this df this way :
if df$x=="AA" then df$y=df$y*10
if df$x=="BB" then df$y=df$y*25
and so on with other conditions.
TY for any help.
Trading
?
A2CT2 Ltd.
2012 Feb 27
1
compare two data frames with same columns names but of different dimensions
...ata.frame")
As you can see, they have same column names.
My idea was to merge these two df when passing as argument "not to take into account duplicate rows", so I will get one df with rows which are not in both df.
Is it possible? How to do it?
TY for any help.
Arnaud Gaboury
?
A2CT2 Ltd.
2012 Feb 27
2
compare two data frames of different dimensions and only keep unique rows
...",
"6", "7", "8", "9", "11", "21", "31", "41", "61", "71", "51",
"10", "81", "91"), class = "data.frame")
TY for your help
Arnaud Gaboury
?
A2CT2 Ltd.
2012 Feb 07
1
replace elements of a data frame
...df=="BO"]<-"BOB"
But my df is bigger indeed with other elements.
I was thinking using replace(), but can't get any clean result ( NA or all elements replaced with only one), neither with sapply().
TY for any help, and sorry for the n00b question.
Arnaud Gaboury
?
A2CT2 Ltd.
2012 Feb 27
1
Ubuntu jaunty - R can't be install
Dear helpers,
I would like to install R on a computer with Ubuntu Jaunty.
Unfortunately, Jaunty does not appear in any CRAN mirror website I
have tried (France, Canada, Italy, Germany).
Could you give me any mirror website allowing installation on
Jaunty?or could you give me a procedure to passby this problem?
Thanks for your help,
Best regards,
Marine Veyssi?re
2012 Feb 24
3
install rJava in Ubuntu 11.10
I am trying to install rJava on a WUBI Ubuntu 11.10 installation of R with no luck. I was originally trying to install the iplots package and encountered this rJava problem.
Code used:
install.packages("rJava")
(CRAN mirrors --Canada(ON) and Canada(QC2)
I installed iplots with no problem on Windows 7.
I know just about zero about Ubuntu or Linux in general so I have no idea what I