Dear r-help,
I have a matrix, suppose, 10x10, and I need the matrix 5x5, having
in each cell a mean value of the cells from the initial matrix.
Please, point me to a function in R, which can help me doing that.
Digging the documentation and mail archives didn't give me a result.
100
rmean
jh [,1] [,2] [,3] [,4] [,5]
jh [1,] 6.5 26.5 46.5 66.5 86.5
jh [2,] 8.5 28.5 48.5 68.5 88.5
jh [3,] 10.5 30.5 50.5 70.5 90.5
jh [4,] 12.5 32.5 52.5 72.5 92.5
jh [5,] 14.5 34.5 54.5 74.5 94.5
jh
jh On 7/27/06, Vladimir Eremeev [EMAIL PROTECTED] wrote:Dear r-help,
jh I have
Dear Robin,
Thank you, seems it is what I need.
---
Best regards,
Vladimirmailto:[EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Dear Sean,
Thursday, July 27, 2006, 3:31:31 PM, you wrote:
SOR Hi Vladimir,
SOR I was wondering whether this was image related :-)
Yes, that's right, I am doing image processing with R.
SOR would one of the image related libraries do it for you?
SOR looking at
SOR
Dear useRs,
While exploring new R packages, I have found the Rattle.
This screenshot http://rattle.togaware.com/rattle-correlation.png
is very interesting
(others are in http://rattle.togaware.com/rattle-screenshots.html ).
Which function was used to produce this plot?
Is such plotting of the
Dear useRs,
Is it possible to get the R package usage statistics?
That is, does R contain any tools to estimate which packages were
used and how often?
I am going to temporary change the workplace and packing the data
and their processing scripts on my computer in order to continue my
Here is the perl script with some comments
pre
#!/bin/perl -w
use File::Find;
# we use the standard Perl module.
# its procedure will scan the directory tree and put all package names to the
hash
# along with counting the number of their loadings.
%pkgs=(base=-1,#
Dear Roger,
Tuesday, September 26, 2006, 4:16:38 PM, you wrote:
RB On Tue, 26 Sep 2006, Vladimir Eremeev wrote:
Here is the perl script with some comments
RB ??
Sorry, forgot to mention, this script is designed to run from the root
of the working directory tree.
It scans all R session
Dear useRs,
I am experiencing very strange error with Mark Bravington's package debug.
I haven't seen them before.
Here is the sample session
library(debug)
Loading required package: mvbutils
MVBUTILS: no tasks vector found in ROOT
Loading required package: tcltk
Loading Tcl/Tk interface ...
Dear Christian,
Tuesday, October 17, 2006, 11:26:07 PM, you wrote:
SC I had exactly the same problem with the installtion of rattle:
SC After calling library(RGtk2)
SC I get the message The procedure entry point
SC atk_relation_add_targetcould not be located in the dynamic link
SC library
Dear useRs,
Sorry, if this is a FAQ.
I just need the direction to dig.
I am working on the linux box (its DNS name is raccoon, to be
definite), Fedora Core 3.
I connect with ssh to another linux box (Debian, dns name chena) and run R on
it.
When I call a plotting function from the R command
Andre Nathan andre at digirati.com.br writes:
Thanks Ben. Do you know how the the x axis can be made shorter?
If you want to shorten the x interval, use xlim=c(0,750)
Otherwise, if you want to decrease the physical width of your plot, you should
use the width= argument in call to png, when
I did this with points by supplying the vector in the col= argument.
That is,
plot(x=x.vector,y=y.vector,col=col.table[y.vector*100+100],pch=16)
It is presumed, that col.table contains 200 colors, and y.vector is in (-1,1)
range. You can write your own expression to define the color for
I have temporarily changed my working place and now checking for updates the R
repository at the University of Washington, closest to me.
It doesn't give updates.
call update.packages(ask=FALSE) with repository USA(WA) didn't do anything, but
call update.packages(ask=FALSE) with repository
Deepayan Sarkar deepayan.sarkar at gmail.com writes:
I am working on the linux box (its DNS name is raccoon, to be
definite), Fedora Core 3.
I connect with ssh to another linux box (Debian, dns name chena) and run R
on it.
When I call a plotting function from the R command line, it
Everything is enabled, but still doesn't work.
xeyes and xclock give errors (Error: Can't open display: localhost:10.0),
R produces Rplots.ps
I also have a windows box, and go to chena using PuTTY.
I have cygwin with X server installed on it.
If I enable X11 forwarding in PuTTY, start
Patrick Connolly p_connolly at ihug.co.nz writes:
What I'd like to do is avoid the need to make the Month.r files and
have the script pass the month information directly to the function
that a single .r file would call.
?commandArgs
__
consider get or as.name
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hi everyone:
Please, refer to the chapter 9 of the R language definition ($R_HOME/doc/
manual/r-lang.pdf)
The simplest way is using print() functions.
Besides the debugging functions described in the manual, you can use the very
powerful package debug, developed by Mark Bravington.
However, I don't know how to produce two axes on the same side of the
plot.
Any pointers or examples?
Try manually drawing the axis using lines() or segments() or arrows() and
text() or mtext()
__
R-help@stat.math.ethz.ch mailing list
?axis says that this function has the logical parameter outer indicating
whether the axis should be drawn in the outer plot margin, rather than the
standard plot margin.
You could try two calls to it with different outer values.
__
axis(1, line=-3)
I have just come to this solution.
However, it seems, I don't understand the meaning of the outer parameter.
What is it for?
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
Looks like it's a windows' problem.
You also cannot create a file with the name con and any extension from the
command line.
Try
echo something con.txt
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
The problem is somewhere in the file, probably with tab characters, as removing
sep= from your call does the job.
dfr-read.table(Tchange_rates_crawled.dat,header=TRUE)
str(dfr)
'data.frame': 122271 obs. of 5 variables:
[skipped]
dfr-
About 3D plots:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/6439.html
Many other plot examples:
http://addictedtor.free.fr/graphiques/allgraph.php
I used rgl, it can produce interactive plots, which can be rotated, increased
and decreased with the mouse.
Hi all R users,
I want to
The statement that it is for windows only in the first link in my previous post
seems to me obsolete now.
Unfortunately, I don't remember exactly, probably, I have used it in Linux.
__
R-help@stat.math.ethz.ch mailing list
Why not use the subset option? Something like:
lm(diff ~ Age + Race, data=data, subset=data$Meno==PRE)
should do the trick, and be much easier to read!
data$ could be omitted, simply
lm(diff ~ Age + Race, data=data, subset=Meno==PRE)
__
fit-NULL
try (
{
fit - lm(y~x, data = data_fitting)
coeffs - as.list(coef(fit))
## other subsequent processes
},
silent =TRUE)
--
View this message in context:
Dear all,
I have a directory with my research project, containing files
.RData
and
inflow.RData
I am just curious, is there any way to explore contents of inflow.RData from
command line without affecting .RData and without copying inflow.RData to
another location?
I can see names and
())
ls()
choose the file .RData
On 29/01/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:
Dear all,
I have a directory with my research project, containing files
.RData
and
inflow.RData
I am just curious, is there any way to explore contents of
inflow.RDatafrom
command line without affecting
C.Rosa wrote:
Dear All,
I am using R for my research and I have two questions about it:
1) is it possible to create a loop using a string, instead of a numeric
vector? I have in mind a specific problem:
for (i in c(UK,USA))
output{i}-summary(lm(y{i} ~ x{i}))
In other words, at
That is
C.Rosa wrote:
for (i in c(UK,USA))
output{i}-summary(lm(y{i} ~ x{i}))
for (i in c(UK,USA)) {
lm.txt-paste(output,i,-,lm(,y,i,x,i,),sep=) # 1. produce a
character string containing needed expression
eval(parse(text=lm.txt)) #
2.
Vladimir Eremeev wrote:
That is
C.Rosa wrote:
for (i in c(UK,USA))
output{i}-summary(lm(y{i} ~ x{i}))
for (i in c(UK,USA)) {
lm.txt-paste(output,i,-,lm(,y,i,~,x,i,),sep=) # 1.
produce a character string containing needed expression
eval(parse(text=lm.txt
Does anyone use FAR manager?
If yes, does that one use the Colorer plugin with the FAR?
And, if yes, does that one have a file for Colorer, describing R syntax? :)
--
View this message in context:
I would try using na.contiguos from package stats.
R.utils has seqToIntervals.defaul,
which Gets all contigous intervals of a vector of indices.
(I didn't use the latter, help.search(contiguous) gave me that name).
--
View this message in context:
see ?order
ar2[,order(colnames(ar2))]
Federico Abascal wrote:
I have another question: how can I sort the columns of an array
according to its column names (for ar2, change CAEB to ABCE)?
--
View this message in context:
dfr1-merge(ar1,ar2,all=TRUE)
result-as.matrix(dfr1[apply(dfr1,2,function(x)!any(is.na(x)))])
Federico Abascal wrote:
Dear all,
I have a problem that may be someone of you can help. I am a newbie and
do not find how to do it in manuals.
I have two arrays, for example:
ar1 -
Dr. med. Peter Robinson wrote:
I have used the image() function to show a heat plot of a matrix of data
whose intensity is color-coded. I have two questions that I have not
been able to solve by using the help system or google.
1) How can one add a scale/legend that shows what
1. ? ls.str()
2. My favourite eval(parse(text= ... )) :)
sapply(ls(),FUN=function(x)eval(parse(text=x)))
--
View this message in context:
http://www.nabble.com/-R--How-to-print-the-objects-in-the-memory-tf3147472.html#a8725398
Sent from the R help mailing list archive at Nabble.com.
image.plot from fields plots an image and a legend (or scale)
Dr. med. Peter Robinson wrote:
I have used the image() function to show a heat plot of a matrix of data
whose intensity is color-coded.
1) How can one add a scale/legend that shows what numerical values a
given color
Chen, Xiao wrote:
Greetings -
I have a quick question that I hope someone will have a quick answer. I
have tried to use the R function system with the MS-DOS command type
to display the full content of a text file. But it always returns with a
message saying the text file is not found.
You need to install perl and MinGW, at least.
If you have them installed, then you need to properly set PATH environment
variable and, probably, restart your command line session.
See chapter 5 of the manual Writing R extensions (installed in
R_HOME/doc/manual)
and these two links
dfr-data.frame(day=c(1/1/1970,5/1/1970,5/12/2003,31/12/2003),temperature=c(1,-1,2,0.5))
dfr
day temperature
1 1/1/1970 1.0
2 5/1/1970-1.0
3 5/12/2003 2.0
4 31/12/2003 0.5
Milton Cezar Ribeiro wrote:
I have a 1000x1000 matrix and I would like to write it in a ASC file,
where each row from my matrix
are written in a separated line. I tryed write() function, but it don´t
work fine to me.
any idea?
Kind regards, Miltinho
What was unsatisfying?
You could
Mahieux Dimitri wrote:
I would know if it is possible with grep to match a exact string. For
example, I want to match the string DP2 (and only this) and grep match
DP2BS too.
I have sought in the grep help but I didn't find what I want.
grep(DP2, {other arguments}, fixed=TRUE)
?grep
Thank you.
There was my misunderstanding of the documentation.
(Un)fortunately, I haven't met the cases, when my code worked incorrectly.
Peter Dalgaard wrote:
Vladimir Eremeev wrote:
Mahieux Dimitri wrote:
I would know if it is possible with grep to match a exact string. For
example, I
You can use
plot(y~x,col=color.index.in.palette.defined.from(z),pch=20,type=p)
where
color.index.in.palette.defined.from(z)
is a function or an expression, returning either a color index in a
predefined palette or any other color representation, suitable for R. This
is described in ?par.
I
Wensui Liu wrote:
subset(table1, rate != 999id == table2$id)
On 2/6/07, lalitha viswanath [EMAIL PROTECTED] wrote:
Hi
I have table1 which has the foll. columns
id age rate
and table2 which has the foll. columns
id count
I wish to get data from table1 for all the ids which
are
Simon P. Kempf wrote:
Background:
I have five multiple imputed datasets. For each datasets I have run a
regression analysis and combined the regression coefficients according to
Rubin (1987) rule.
So, now you have two numeric values: slope and offset. Right?
Simon P. Kempf wrote:
Here is the discussion about the function search.path()
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/34411.html
which searches the PATH variable for your script and returns the full path.
You also can put your script contents in functions, then create a package
and load it with library().
Here is the list of NN related packages
http://cran.r-project.org/src/contrib/Views/MachineLearning.html
I also have written some bindings from R to the SNNS (Stuttgart neural
network simulator), however, they are still not on the release stage.
vinod gullu wrote:
I am interested in Neural
http://r-spatial.sourceforge.net
Linda Smith wrote:
I have a netcdf gridded file with LCC projection. I can easily use
image.plot to visualize it. However, as the axises are in X,Y, not Lat and
Lon, I could not add state or country maps onto it (or lat lon
information).
I do have a
Schmitt, Corinna wrote:
I still have problems with the reading of a matrix.
Input: matrixData6.txt
A-Paar B-Paar C-Paar D-Paar E-Paar
A 1 3 5 7 9
B 2 4 6 8 10
R-commands:
y=read.table(file=Z:/Software/R-Programme/matrixData6.txt)
y
Result:
A.Paar B.Paar C.Paar
If your country or state borders are polygons or polylines, you could convert
them to desired projection using
the function project from the package rgdal.
Latitude-longitude grid also could be added by generating desired polylines
in lat-lon and converting them to the desired projection using
I have installed RGTk2 to satisfy other package requirements.
I am not planning to use it in my own work.
Occasionally I search through the R help using the help.search() function,
and every time it returns me lots of references to the functions in the
RGtk2 package, which I don't need.
I would
Hello Linda,
Friday, April 6, 2007, 2:47:43 AM, you wrote:
LS On 4/5/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:
VE If your country or state borders are polygons or polylines, you could
convert
VE them to desired projection using
VE the function project from the package rgdal.
VE Latitude
What operating system do you use?
If you use Windows, than open the Control Panel, double click on the System
icon, go to Advanced tab, press
Environment variables button, then press New to create one more new
variable, enter http_proxy as the Name of variable, and
You didn't describe the exact format of the .gpr files.
There are 32 heading lines in each file, which are now hidden from R
community.
You 'skip' 31 of them in read.table, and one more plays header ('header=T').
Since you are using read.table, your files are usual ascii files.
You shoud use
Try using cat, paste(c(c(,paste (. .. .. collapse=,),))), format,
formatC and others
francogrex wrote:
Hello I am using the for (i...) and a sink() into a file. But the output
I am having is not arranged in either a vector or any other good
structure. I would like to have the output in a
Consider sapply and get.
There might be something like the following (untested)
fn-function(l){ # l is supposed to be a letter. Errors will occur
otherwise.
#constructing names
dfr.name-paste(toupper(l),INDSLIM,sep=)
column.name-paste(tolower(l),region,sep=)
#retrieving data from the
gracezhang wrote:
Hi,
I failed to search for R package providing random number generator of
Park and Miller.
Anyone know any R package supporting this kind of function?
I failed too.
However, here is the source code http://www.firstpr.com.au/dsp/rand31/
which can be either easily
By the way, AFAIK, R uses the Mersenne-Twister random number generator, which
has a much better reputation for producing numbers than any linear
congruential PRNG (the same url, http://www.firstpr.com.au/dsp/rand31/)
gracezhang wrote:
I failed to search for R package providing random number
m-cbind(m,0)
m[m[,3]m[,4],5]-1
colnames(m)[5]-censoring
raymond chiruka wrote:
i would like to add a variable to an existing matrix by manipulating 2
previous variables eg for the data
m
treat strata censti survTime
[1,] 1 2 284.684074 690.4961005
ls(pattern=.*777.*)
Schmitt, Corinna wrote:
Dear R-Experts,
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I need to delete those variables. How can I reach this
aim?
--
View
sorry, forgot to delete objects.
rm(list=ls(pattern=.*777.*))
Vladimir Eremeev wrote:
ls(pattern=.*777.*)
Schmitt, Corinna wrote:
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I
32.971439 247.21786
0
rc [3,] 2 1 85.758253 797.04949
0
rc [4,] 1 1 16.999171
78.92309 0
rc l used matrix to genarate the data
rc thanks in advance
rc Vladimir
Vadim Ogranovich wrote:
Hi,
I ran into a problem of converting a text representation of an expression
into parsed expression to be further evaluated inside lm ().
n - 100
data - data.frame(x= rnorm (n), y= rnorm (n))
data. lm - lm (y ~ x, data=data)
## this works
I usually install a new version over the old one (in the same directory).
I did this since R 1.xx, using windows 2000 and then windows XP.
No bugs were found, everything always works fine.
Iasonas Lamprianou wrote:
Hi I am using R version 2.4.1. How can I upgrade to version 2.5 without
For me, the simplest way to find, what is wrong, would be tracing the R code:
library(debug)
mtrace(cph)
cph(Surv(time.sur, status.sur)~ strat(colon[,13])+colon[,18]
+colon[,20]+colon[,9], surv=TRUE)
... then find the place of the error and analyze how to adjust the function
call arguments to
Here is some information on this regression in R
http://tolstoy.newcastle.edu.au/R/help/06/02/21153.html
Abdus Sattar wrote:
I am want to use tobit regression for left censored panel/longitudinal
data. Could you please provide me the name of library and/or package
that will give me option
Vladimir Eremeev wrote:
For me, the simplest way to find, what is wrong, would be tracing the R
code:
library(debug)
mtrace(cph)
cph(Surv(time.sur, status.sur)~ strat(colon[,13])+colon[,18]
+colon[,20]+colon[,9], surv=TRUE)
... then find the place of the error and analyze how
To create 6th column in the matrix m, you should use the cbind function.
To calculate the vector of pairwise min or max values, you should use the
pmin and pmax functions:
act.surv.time-pmin(m[,censoringTime],m[,survivalTime])
m-cbind(m,act.surv.time)
raymond chiruka wrote:
hie l would like
Dear all,
I have several files with Matlab code, which I am translating to R.
For the zero-level approach, I took the very old shell script from R-help
archives, which has made some obvious leg-work such as replacement of =
with -.
Now I am translating indexing, matrix operations and function
Which function implements the piecewise cubic Hermite interpolation?
I am looking for equivalent of matlab's interp1 with the method = 'pchip'
Here is the reference
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/interp1.html;
--
View this
Did you try manually opening the file mentioned in the browser
(Z:\Software\R\R-2.5.0\doc\html\index.html) ?
Does this file exist?
Was the html help installed?
Schmitt, Corinna wrote:
Hallo,
I just updated to the new version of R by installing everything new. Now
I have a problem with
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Vladimir Eremeev
Gesendet: Dienstag, 8. Mai 2007 12:22
An: r-help@stat.math.ethz.ch
Betreff: Re: [R] trouble with help
Did you try manually opening the file mentioned in the browser
(Z:\Software\R\R
Looks like you are reading manuals and these mailings insufficiently
carefully.
?apply says that if its second argument is 1, it gives you what you want.
Gabor Csardi has also written you this.
If you have several vectors, not a single matrix, you can use pmin:
'pchip' from the 'signal' package seems to do the desirable operations.
Vladimir Eremeev wrote:
Which function implements the piecewise cubic Hermite interpolation?
I am looking for equivalent of matlab's interp1 with the method = 'pchip'
Here is the reference
http
Urania Sun wrote:
I have a dataset of 1 records which I want to use to compare two
prediction models.
I split the records into test dataset (size = ntest) and training dataset
(size = ntrain). Then I run the two models.
Now I want to shuffle the data and rerun the models. I want
elyakhlifi mustapha wrote:
I saw the R-help to run some R programs in batch I used it like this
R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r
Erreur : erreur de syntaxe dans R CMD
but without success!!!I don't work on linux but on windows IS it the same
command ?
elyakhlifi mustapha wrote:
hello,
can you help me I need to seperate words and symbol in a mathematics
formula as follow
C744=(C627*C177)/100
How could I do please?
If you need to simply split a character vector, use strsplit.
This and previous your posts suggest you need to
Vladimir Eremeev wrote:
Dear R experts,
I have a Matlab code which I am translating to R in order to examine and
enhance it.
First of all, I need to reproduce in R the results which were already
obtained in Matlab (to make sure that everything is correct).
There are some matrix
Vladimir Eremeev wrote:
Dear R experts,
I have a Matlab code which I am translating to R in order to examine and
enhance it.
First of all, I need to reproduce in R the results which were already
obtained in Matlab (to make sure that everything is correct).
There are some matrix
elyakhlifi mustapha wrote:
hello,
how can I do to drop C from this character C325 ?
1. if C is always single and always first:
substring(C325,2)
2. more generic solution, drops all letters
sp-unlist(strsplit(C325,split=[A-Z]))
sp-sp[nchar(sp)0]
sp
--
View this message in context:
d. sarthi maheshwari wrote:
Hi,
I am struggling with using R CMD BATCH command. Kindly suggest solution to
the following problem.
I have a function named CinC with accept two input parameters. This can be
shown as:
CinC - function(start, end)
where start and end both are
mister_bluesman wrote:
Basically, I’m trying to install rJava on my windows XP machine. I think I
have succeeded in doing so as it appears in the list when i type library()
in R.
However, when i type ‘library(rJava)’ I get an error dialog box saying:
'This application has failed to
mister_bluesman wrote:
Ah thanks for that. That seems to have done the trick. But I'm not
sure whether I have copied the right jvm.dll file into the path.
I have 3 places where a jvm.dll file can be found:
~\Java\jre1.6.0_01\bin\client -this is the one i copied
I was solving similar problem some time ago.
Here is my script.
I had a data frame, containing a response and several other variables, which
were assumed predictors.
I was trying to choose the best linear approximation.
This approach now seems to me useless, please, don't blame me for that.
Vladimir Eremeev wrote:
I was solving similar problem some time ago.
Here is my script.
I had a data frame, containing a response and several other variables,
which were assumed predictors.
I was trying to choose the best linear approximation.
This approach now seems to me useless
RSiteSearch(legend outside plot)
will bring you many links to the discussions of this question.
layout perfectly allows everything.
typical sequence looks like this
This divides the device region by two parts one below another:
layout(matrix(c(1,2),byrow=TRUE), heights=[blah-blah-blah], [some
Sorry, I'm stuck. :)
I am writing a function, which would fit either one linear model or another
one, depending on its argument model.type.
And I don't want to use several if's, because R allows doing it with much
more beauty.
That is I am looking for prettier alternative to the following
snow still exists, and there is one more package snowFT on CRAN (FT stands
for Fault Tolerant)
Probably, you didn't find it because of typing its name in capitals.
hodgess wrote:
According to the R-help, at one time there was a package called SNOW. It
doesn't seem
to exist anymore.
There are R interfaces to MPI and PVM on CRAN, which are Rmpi and RPVM,
respectively.
hodgess wrote:
I was wondering if there were any packages for parallel programming in R.
According to the R-help, at one time there was a package called SNOW. It
doesn't seem
to exist anymore.
NextMethod(mymodel)
}
mymodel.S - function(a, b, method = S) cat(S:, a, b, method, \n)
mymodel.HK - function(a, b, method = S) cat(HK:, a, b, method, \n)
mymodel(1:3, 1:4)
mymodel(1:3, 1:4, S)
mymodel(1:3, 1:4, HK)
On 5/22/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:
Sorry, I'm stuck
These are not functions.
These are separate products (one more is bison), aimed to help in creating
programming language interpreters.
You should know the C programming language and be familiar with the
algorithm theory, the finite state machine theory and with the LALR
grammatics, in order to
Great!
I was thinking about adding such a feature in the future.
Gabor Grothendieck wrote:
Note that a significant difference between the two solutions is that
the OO solution allows new methods corresponding to method=
to be added without changing the function holding the statements.
By defining your own function.
You can get the function body by typing its name in the R command line and
pressing Enter.
Copy-paste the function body in ascii file (source R code), redefine it as
you like, for example, by adding desired argument and code for processing
it, then source that file
apply(dfr,1,FUN=function(x){
cat(c(x[1],
ifelse(x[2]==x[3],x[2],paste(x[2],x[3],sep=-)),\n),
file=filename.txt)
})
This code assumes the data frame with at least 3 columns, errors will occur
if there will be
Yes, it is.
The original is here
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/92829.html
However, it requires some modifications.
Here they are. Sorry, I can test it only in Windows.
search.source - function(file, path=Sys.getenv(PATH), ...)
{
for(p in
When I update.packages(), R shows the dialog window, listing CRAN mirrors and
asks to choose the CRAN mirror to use in this session. Then, R uses this
address and never asks again until quit.
Is there any way to make R ask for the CRAN mirror again, except restarting
it?
I am just trying to
1 - 100 of 147 matches
Mail list logo