Displaying 20 results from an estimated 6000 matches similar to: "Printting 'for' and 'while' indices"
2004 Feb 11
6
AGREP
Hi all, I have two questions
1 - I have the version 1.4.1 of R, and it doesn't have the 'agrep'
function in the base library. Is there a way to make this funcion
avaliable in R 1.4.1? I mean, how to 'copy' it from R 1.8.1 and 'paste'
it in R 1.4.1?
2 - The AGREP function doesn't give me the Levenshtein distance (edit
distance). Is there a function in R that does
2004 Feb 13
1
RES: AGREP
"Marcos Sanches" <marcos.sanches at ipsos-opinion.com.br> wrote:
Ls1<-length(s1)
Ls2<-length(s2)
for ( p in 1:ls1){
for (q in 1:ls2){
t1<-levenshteinFast(s1[p],s2[q])
...
Ls1=42000
Ls2=70000
I think I will wait for months untill this program ends. Do you have any
sugestion to increase the speed?
The first suggestion has to be "search HARD in the
2004 Feb 09
1
RConsole
I changed my R console configurations, for example, the letters
are white, the background is black, etc,... Then I saved this new
configuration. What should I do if I want to have this new configuration
everytime I open R?
TIA
2004 Feb 26
2
Structural Equation Model
Hello all!
I want to estimate parameters in a MIMIC model. I have one latent
variable (ksi), four reflexive indicators (y1, y2, y3 and y4) and four
formative indicators (x1, x2, x3, x4). Is there a way to do it in R? I
know there is the SEM library, but it seems not to be possible to
specify formative indicators, that is, observed exogenous variables
which causes the latent variable.
Thanks,
2002 Jun 05
5
Monte Carlo
Doctor in veterinary medecine I have a degree in veterinary epidemiology
I would ask if someone can perform Monte Carlo simulation with R.
Thanks in advance.
Dr Kane Ismaila
i_kane at hotmail.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2003 Nov 17
1
Generalized linear model
Hi all!
I am fitting a Poisson model, using the following command:
> fit2<-glm(canc~id1+year1+time+lnpa,family=poisson)
where 'id1', 'year1' and 'time' are factors. I defined them with:
> id1<-C(factor(id1), treatment)
and 'lnpa' is a continuous variable.
The 'summary' function gives me all the effects estimates, that is, for id1,
I
2002 May 02
3
Surface Graphic
Hello list!
I have a problem with the function 'persp'. I have a data set with the
variables
X -> The X coordenate of the insect
Y -> The Y coordenate of the insect
deep-> how deep the insect buried into the soil.
I would like to have a plot with a surface simulating the way the insect
buried. Is it possible? If I type
persp(x,y,deep)
R gives me this error message
Error in
2002 Mar 11
1
Spectral decomposition
Hello all,
I have the square symetric matrix A:
2 1 1
1 2 1
1 1 2
My first question is what is the easiest way to enter this matriz in R?
Second, matrix A has an eigenvalue with multiplicity 2, in this case, how
could I find the two related ortogonal eigenvectors given below by R,
without the help of R, I mean, I want to know how R calculate this
eigenvectors related to the same eigenvalue.
2009 Dec 16
1
WinBUGS - R2WinBUGS problem
Appologies for cross-posting
Dear R users,
I am using R2WinBUGS to call WinBUGS from R. After loading data, model, and initial values I call this command
res <- bugs(data = dfile, inits = list(ifile), parameters.to.save = c("beta"), model.file = mfile, working.directory = tdir, n.thin = nthin, n.chains = 1, n.iter = niterations*nthin, n.burnin = 0, DIC = F, debug = T,
2004 Jan 09
2
strange behaviour when converting from char to POSIX (PR#6422)
Full_Name: Christoph Schmutz, MeteoSchweiz, Switzerland
Version: R1.7.1, R1.8.1
OS: windows2000, solaris sunOS 5.8
Submission from: (NULL) (141.249.133.6)
I'm not sure if I don't get the clue, but please consider this:
> strptime("19930870150","%Y%j%H%M")
[1] "1993-03-28 01:50:00"
> strptime("19930870250","%Y%j%H%M")
[1]
2018 Apr 27
5
Bug in RScript.exe for 3.5.0
Thanks Tomas,
I confirm the R Under development (unstable) (2018-04-26 r74651) version works for Rscript when the file name has a space, and no arguments are specified.
C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R"
R Under development (unstable) (2018-04-26 r74651)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601)
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
Hi Tomas,
Thanks for the info about the binary builds; I did install it, however the bug still seems to be there in the current build. The workaround you suggested does work:
C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R"
Fatal error: cannot open file 'C:\foo': No such file or directory
C:\>"C:\Program
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
Fixed in R-devel. I will port to R-patched after more testing.
Tomas
On 04/26/2018 01:52 AM, Tomas Kalibera wrote:
> Thanks for the report. A quick workaround before this gets fixed is to
> add an extra first argument that has no space in it, e.g.
>
> Rscript --vanilla "foo bar.R"
>
> The problem exists on all systems, not just Windows.
>
> Best
> Tomas
>
2015 Jul 23
2
[LLVMdev] lli supports different targets than llc?
s/pretty much/definitely/
Even then, “works” is too strong a word. Caveat emptor and all that.
> On Jul 23, 2015, at 1:20 PM, Eric Christopher <echristo at gmail.com> wrote:
>
>
>
> On Thu, Jul 23, 2015 at 10:31 AM Débora Setton Sanches <setton.debora at gmail.com <mailto:setton.debora at gmail.com>> wrote:
> Hi,
>
> Is it normal/expected for `llc`
2018 Apr 26
1
Bug in RScript.exe for 3.5.0
Thanks Tomas.
I confirm the quick workaround works for me in the DOS prompt, and when having a shortcut to RScript in SendTo, and when used in the Task Scheduler. I have not tested the R-devel version, due to my unfamiliarity with installing from source code.
-----Original Message-----
From: Tomas Kalibera [mailto:tomas.kalibera at gmail.com]
Sent: Thursday, April 26, 2018 6:34 AM
To: Kerry
2004 Feb 09
2
data.frame to matrix
Hello all,
I've had trouble converting a data.frame to a matrix (numeric) using either
data.matrix() and as.matrix().
After executing one of those I end up with another data.frame with only the
first column of the original data.frame.
I use a window (tcltk) to let the user choose the columns he wants and then
I retrieve them using the following:
varstemp <-
2004 Mar 11
3
making operators act on rows of a data frame
Dear R helpers,
I wish to use the "sum" operator for each row of a data frame.
However, it appears that the operator acts on the entire data
frame, over all columns. What is the best way to obtain row-
wise operation?
The following code shows my attempts so far, and their problems:-
test1=array(rbinom(120,1,0.5),c(20,3))
test1[,3]=NA
sum(test1[,1:2])
test1[,3][sum(test1[,1:2])>=2]=1
2015 Jul 23
2
[LLVMdev] lli supports different targets than llc?
Hi,
Is it normal/expected for `llc` to support a different set of targets
than `lli`?
I have a hello.ll on which this works:
$ llc -mtriple=armv7a-linux-gnueabihf hello.ll
# OK, generates hello.s
But this doesn't:
$ lli -mtriple=armv7a-linux-gnueabihf hello.ll
# lli: error creating EE: No available targets are compatible with
this triple, see -version for the available targets.
I'm
2004 Mar 30
2
Sweave and graphic output locations
Hello,
I'm using R1.8.1 on windows 2000 and version 1.8.1 of the tools package.
I am attempting to have Sweave write files to a different directory via:
testfile <- system.file("Sweave", "Sweave-test-1.Rnw",
package = "tools")
## create a LaTeX file
Sweave(
testfile,
output = "C:/temp/Sweave-test-1.tex",
2004 May 11
2
- making a Windows library from Unix source code
Hi All,
I'm using R1.8.1 on Windows XP.
I'm having trouble producing an R library from source code. A colleague has written the source code, in Unix. I've copied the source code across to Windows (with the help files, data files, description and index) and am trying to compile it into a library.
I've "sourced" each of the *.r files and they appear to work.