hi, Heinz,
> You are right - match seems obviously better, but why not do
>
> x <- c("a","b","c")
> match(x, letters[])
no, really, i wasn't sure of the requirements!
cheers, Greg
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
Greg,
Greg Minshall wrote/hat geschrieben on/am 02.11.2021 08:57:
Heinz,
x <- c("a","b","c")
lettersnum <- 1:length(letters[])
names(lettersnum) <- letters[]
lettersnum[x]
lettersnum[x]
a b c
1 2 3
i'm not sure if the following is obviously better, but one might do
b <- match(a, a)
Heinz,
> x <- c("a","b","c")
> lettersnum <- 1:length(letters[])
> names(lettersnum) <- letters[]
> lettersnum[x]
> > lettersnum[x]
> a b c
> 1 2 3
i'm not sure if the following is obviously better, but one might do
> b <- match(a, a)
> names(b) <- a
> b
a b c
1 2 3
cheers, Greg
Alice wrote/hat geschrieben on/am 31.10.2021 07:33:
Dear members,
How to translate the charter to the underline inter?
I tried this:
x <- c("a","b","c")
as.numeric(x)
[1] NA NA NA
Warning message:
NAs introduced by coercion
It didn't work.
Sorry for my newbie questions.
B.R.
> R.oo::charToInt(x)
# [1] 97 98 99
On Mon, Nov 1, 2021 at 9:48 PM Alice wrote:
>
> Dear members,
>
> How to translate the charter to the underline inter?
> I tried this:
>
> > x <- c("a","b","c")
>
> > as.numeric(x)
>
> [1] NA NA NA
>
> Warning message:
>
> NAs introduced by coercion
>
>
> It
Dear members,
How to translate the charter to the underline inter?
I tried this:
> x <- c("a","b","c")
> as.numeric(x)
[1] NA NA NA
Warning message:
NAs introduced by coercion
It didn't work.
Sorry for my newbie questions.
B.R.
Alice
[[alternative HTML version deleted]]
Dear the members in the R-help mailing list,
R version 2.1.0 and later support translations of program messages. The
continuous efforts have been made by R Translation Teams
http://developer.r-project.org/TranslationTeams.html. I appreciate
the leadership shown by Prof. Duncan Murdoch
On 20/05/2012 00:01, Duncan Murdoch wrote:
On 12-05-18 2:23 PM, David Winsemius wrote:
On May 18, 2012, at 10:52 AM, Duncan Murdoch wrote:
On 12-05-18 5:15 AM, gholi bahrami wrote:
Dear Sir/Madam
I am a BSc student studying statistics in Ferdowsi University of
Mashhad,Iran.
Translating R
On 12-05-18 2:23 PM, David Winsemius wrote:
On May 18, 2012, at 10:52 AM, Duncan Murdoch wrote:
On 12-05-18 5:15 AM, gholi bahrami wrote:
Dear Sir/Madam
I am a BSc student studying statistics in Ferdowsi University of
Mashhad,Iran.
Translating R messages to Farsi is my thesis and I have
Dear Sir/Madam
I am a BSc student studying statistics in Ferdowsi University of Mashhad,Iran.
Translating R messages to Farsi is my thesis and I have already downloaded
*poEdit* to translate those messages.However, the created .mo files for R.pot
and RGui.pot are not useful at all.
I would like
On 12-05-18 5:15 AM, gholi bahrami wrote:
Dear Sir/Madam
I am a BSc student studying statistics in Ferdowsi University of Mashhad,Iran.
Translating R messages to Farsi is my thesis and I have already downloaded
*poEdit* to translate those messages.However, the created .mo files for R.pot
and
On May 18, 2012, at 10:52 AM, Duncan Murdoch wrote:
On 12-05-18 5:15 AM, gholi bahrami wrote:
Dear Sir/Madam
I am a BSc student studying statistics in Ferdowsi University of
Mashhad,Iran.
Translating R messages to Farsi is my thesis and I have already
downloaded *poEdit* to translate
Hi everyone, i´m a new user of R and i´m trying to translate an linear
optimization problem from Matlab into r.
The matlab code is as follow:
options = optimset('Diagnostics','on');
[x fval exitflag] = linprog(f,A,b,Aeq,beq,lb,ub,[],options);
exitflag
fval
x=round(x);
Where:
f = Linear
On Tue, May 08, 2012 at 10:21:59AM -0700, Haio wrote:
Hi everyone, i´m a new user of R and i´m trying to translate an linear
optimization problem from Matlab into r.
The matlab code is as follow:
options = optimset('Diagnostics','on');
[x fval exitflag] =
Hi there
I am new user of r, i would need some help to translate som code for vectors
in matlab to r. I have managed to translate the first 7 rows, but not the
rest. Could anyone give me any suggestions for this problem??
Matlab code:
tempo=[];
temps=[];
tempn=[];
tempao=[];
tempas=[];
Perhaps read An Intro to R (shipped with every packaging of R -- type
help.start() to get it) and then look at
http://cran.r-project.org/doc/contrib/Hiebeler-matlabR.pdf
n_o, nan_s, etc. are not functions I have in my Matlab distribution so
I can't give more advice without knowing what they
Haio joakim.aback at gmail.com writes:
Hi there
I am new user of r, i would need some help to translate som code for vectors
in matlab to r. I have managed to translate the first 7 rows, but not the
rest. Could anyone give me any suggestions for this problem??
Matlab code:
tempo=[];
Dear all,
I have a very short code written in Mathematica which I would need to get
translated for use in R.
I'm not an expert in Mathematica (which is why I would not
feel comfortable with doing the translation myself), but the code is very
short (probably 30-40 lines) and looks quite simple
ychu066 wrote:
my teachers doesnt understand R and I don't know how to use SAS.
Anyone interested in translating my codes to test whether your SAS codes
are as good as R???
I can test it on SAS codes once you have translated it
regards:working:
It is quite easy to
Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of ychu066
Sent: Monday, November 23, 2009 2:35 PM
To: r-help@r-project.org
Subject: [R] Translation from R codes to SAS.
my teachers doesnt understand R and I don't know how to use SAS.
Anyone
my teachers doesnt understand R and I don't know how to use SAS.
Anyone interested in translating my codes to test whether your SAS codes are
as good as R???
I can test it on SAS codes once you have translated it
regards:working:
--
View this message in context:
Until someone agrees to your request, you may want to look into this book:
http://www.amazon.com/SAS-Management-Statistical-Analysis-Graphics/dp/1420070576
http://www.amazon.com/SAS-Management-Statistical-Analysis-Graphics/dp/1420070576
~Gary
On Mon, Nov 23, 2009 at 4:35 PM, ychu066
22 matches
Mail list logo