There is a new version of the 'debug' package (v1.1.0) available on
CRAN. For existing users, the main changes are (i) some bug fixes, and
(ii) it is now NAMESPACEd, so you can avoid naming conflicts with other
packages.
For new users, 'debug' is an alternative to 'trace' and 'browser',
offering:
There is a new version of the 'mvbutils' package (v1.1.1) available on
CRAN.
For existing users, the main new features are:
(i) 'help' now works properly with with R2.0+ (!)
(ii) 'mvbutils' is now NAMESPACEd, so you can avoid naming conflicts
with other packages. (Many functions are no longer use
I'd like to recommend to open the pdf() device (and to plot in)
directly. There is no reason to use the windows() device in BATCH mode,
if you want to produce PDF.
Lapointe, Pierre wrote:
First of all, I apologize for the triple post, but I did not see that the
word wrap on the r-help list site
Hi Juan Pablo
Take a look at the document under help->Manuals in pdf->R data
import/export. There is a whole section there on how to import data from
other statistical software.
If you have a script file from S-Plus you can open it in any text editor
(i.e. notepad)
¡Suerte!
Francisco
From: J
Hello all.
I've got a little file which is from S-Plus. The problem is I don't
own a copy of said program, and R won't read it.
I wonder if there's a caritative soul here who could export the file
to some other format (csv, or even excel!) and send it back to me.
Thanks in advance.
Juan Pab
"Kevin E. Thorpe" <[EMAIL PROTECTED]> writes:
> rparab <- function(nn) {
> u <- 2*runif(nn) - 1
> ifelse(u<0,-(abs(u)^(1/3)),u^(1/3))
> }
>
> It seems that in my version of R (2.0.1) on Linux, that calculating the cube
> root of a negative number using ^(1/3) returns NaN. I looked at the help in
Hi:
I tried to install the latest version of R (2-1.0)in an AIX machine . I was
able to tar, and configure with no
errors. However, when I said make, I got the following errors:
gcc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry -Wl,-bexpall
-Wl,-bI:../../../etc/R.exp -L/usr/local/lib -o R_X1
This thread was very timely for me since I will be teaching an introductory
biostats course in the fall, including a session on CLT. I have shamelessly
taken Dr. Venables' slick piece of code and wrapped it in a function so that
I can vary the maximum sample size at will. I then created functions b
On Thu, 12 May 2005, Martin C. Martin wrote:
I have a variable "m" that contains the number of minutes that something
lasted, e.g.
m <- 139
I'd like to convert it to a difftime, so I can add it to the POSIXct start
time. But as.difftime seems to want a character string, with at most two
charac
On Thu, 12 May 2005, Prof Brian Ripley wrote:
Yes, I did mention the OS was unstated, knowing that some had problems. I
will try to investigate why this is not working on Windows for a future
release.
For the record, this is a POSIX-compliance failure. The POSIX standard
says
Local timezone
Hi,
I have a variable "m" that contains the number of minutes that something
lasted, e.g.
m <- 139
I'd like to convert it to a difftime, so I can add it to the POSIXct
start time. But as.difftime seems to want a character string, with at
most two characters for the minutes. All other conversi
Alexander Roth wrote:
Hi everyone,
how can I calculate standardized logistic regression coefficients using
R? I used "glm" resp. "lrm" from the design-package in order to
calculate logistic regression coefficients but I'm wondering if there's
a possibility to get standardized logistic regression co
Thank you, the word wrap did make it impossible.
For me
pdf(file="c:/CFTC.pdf",height=10,width=8,paper="letter")
## plotting
dev.off()
works in interactive mode or from a file. I don't understand why you are
going via dev.print(), nor what exactly what is different about your
invocation of `batc
I want to create a MDS plot with pairwise Fst values derived from a
population genetics project. My Fst values are in a tab-delimited file
(lower triangle only) that I view with Excel. When I use the cmdscale
command I get the message:
Error in cmdscale(x) : Distances must be result of dist or
First of all, I apologize for the triple post, but I did not see that the
word wrap on the r-help list site would render my code unusable. So here it
is again. Hoping that this time it will work if you cut and paste it in
your Rgui.
I have a program that works well in Rgui but that does not work
__
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
I think glob2rx is of sufficient interest and sufficiently small
that it would be nice to have in the core of R without having to
install and load sfsmisc.
On 5/12/05, Martin Maechler <[EMAIL PROTECTED]> wrote:
> > "BaRow" == Barry Rowlingson <[EMAIL PROTECTED]>
> > on Thu, 12 May 200
It works. thanks!
-Luke
On 5/12/05, Liaw, Andy <[EMAIL PROTECTED]> wrote:
> Just read them like any other numbers; e.g.:
>
> > x <- scan(sep=",")
> 1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003
> 5: [hit ctrl-d]
> Read 4 items
> > x
> [1] 9164.254 6719.529 4883.449 3718.159
>
Dear all
I have a data set like following
***
name ticker price # how to specify attributes for differet colums
a ta 1
a ta 1
a ta 1
name ticker price # the extra headline is a problem
a ta 1
a ta 1
b2
b2
b
> "BaRow" == Barry Rowlingson <[EMAIL PROTECTED]>
> on Thu, 12 May 2005 11:05:43 +0100 writes:
BaRow> Uwe Ligges wrote:
>> Please read about regular expressions (!!!) and try to
>> understand that ".txt" also finds "Not_a_txt_file.xls"
>>
BaRow> The confusi
Is this from package tree? If so treeco is in the namespace but not
exported.
> library(tree)
> ls(asNamespace("tree"))
[1] "cv.tree""data.tree" "descendants"
[4] "deviance.tree" "labels.tree""misclass.tree"
[7] "model.frame.tree" "na.tree.replace""node.
Just read them like any other numbers; e.g.:
> x <- scan(sep=",")
1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003
5: [hit ctrl-d]
Read 4 items
> x
[1] 9164.254 6719.529 4883.449 3718.159
Andy
> From: Luke Zhou
>
> Hi,
>
> I have a data file whose values are scientific notati
Hi,
I have a data file whose values are scientific notations, for example:
9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003, ...
How to load such data into R?
Thanks,
-Luke
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/
Dear R-ians,
I have a datamatrix X of nrows (large) and 3 colums. The 3 columns
represent the coordinates of a cloud in a 3 dimensional space.
Now I want to find the extremes of my cloud by using the N-FINDR
algoritm. This algorithm consists of maximizing the volume between tree
points. Therefo
> Hello, I have a program that works well in Rgui but that does not work in
> a batch file (Execution halted)
>
> Here's the code (it will work on you side, but you need internet access
> through R as it will download a table from a US gov site)
>
> download.file("http://www.cftc.gov/files/dea/hi
Hello, I have a program that works well in Rgui but that does not work in a
batch file (Execution halted)
Here's the code (it will work on you side, but you need internet access
through R as it will download a table from a US gov site)
download.file("http://www.cftc.gov/files/dea/history
Hi.
I have to make some minor modifications to the text.tree function - I
don't like the way it prints the split labels (they are too long in my
case and overlap). I tried to make s simple modification to the
text.tree function so that it will limit the number of significant
digits in tree labels,
Yes, I did mention the OS was unstated, knowing that some had problems.
I will try to investigate why this is not working on Windows for a future
release.
For Windows users something like
.../RGui.exe TZ=GMT
should do it.
On Thu, 12 May 2005, Vadim Ogranovich wrote:
Works for me on Linux:
Sys.ti
Works for me on Linux:
> Sys.time()
[1] "2005-05-12 10:22:31 PDT"
> Sys.putenv(TZ="GMT")
> Sys.time()
[1] "2005-05-12 17:22:37 GMT"
I extensively use the reset of TZ to parse times.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gabor
> Grothend
My function works fine if the X and Y exist in the T314 data. How can I
code the macro to allow vector designations in the function different than
X and Y? Maybe something to do with environment?
rm(list=ls())
# Data from NCHRP Appendix A -
http://trb.org/publications/nchrp/nchrp_w71.pdf
T3
maybe you can find cumsum() helpful, e.g.,
cumsum(1:5)
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.
?cumsum
Z
On Thu, 12 May 2005 18:48:32 +0200 Lars wrote:
> hi,
>
> i'd like to calculate a temperatursum, adding the value of each
> element. let's say the data looks like this:
>
> x<-c(1,2,3,4,5)
> what i want to do, is ploting not the sum in the end but all the
> subresults, too,
> so my v
hi,
i'd like to calculate a temperatursum, adding the value of each element.
let's say the data looks like this:
x<-c(1,2,3,4,5)
what i want to do, is ploting not the sum in the end but all the
subresults, too,
so my vector holds:
x[i]
[1]
1,3,6,10,15
here is what i tried, which seems to be right
Ernesto Jardim wrote on 5/12/2005 11:01 AM:
Hi
I'm getting the following error that do not make sense to me, what am
Idoing wrong ?
> acf(Recsim[1,], lag.max=1)
Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1
Regards
EJ
Hi, Ernesto,
What is Recsim[1,]? I can reproduce this
Ernesto Jardim wrote:
Hi
I'm getting the following error that do not make sense to me, what am
Idoing wrong ?
> acf(Recsim[1,], lag.max=1)
Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1
Regards
EJ
__
R-help@stat.math.ethz.ch maili
On Thu, 12 May 2005, Ernesto Jardim wrote:
I'm getting the following error that do not make sense to me, what am Idoing
wrong ?
acf(Recsim[1,], lag.max=1)
Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1
Inside the code
lag.max <- min(lag.max, sampleT - 1)
if (lag.max
On Thu, 2005-05-12 at 17:12 +0100, Prof Brian Ripley wrote:
> On Thu, 12 May 2005, Vin Everett wrote:
>
> > I am having problems compiling R on a Solaris 10 opteron box we have on
> > trial.
> >
> > checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib -
> > L/usr/local/lib -L/usr/lo
It can happen. The covariance is produced from a set of pairs, and the
variances from all the points. It usually indicates that too fine a
binning has been used or that there is a trend in the data which has not
been removed.
On Thu, 12 May 2005, Kechi Nzerem wrote:
I'm using the correlogram
On Thu, 12 May 2005, Vin Everett wrote:
I am having problems compiling R on a Solaris 10 opteron box we have on
trial.
checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib -
L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 -
L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i3
I could really use some advice about installing the RMySQL package under R
2.1.0 on Mac OS 10.4. I get the following message from R when I try:
---
Configuration error:
Could not locate the library "libz" required by MySQ
Hi
I'm getting the following error that do not make sense to me, what am
Idoing wrong ?
> acf(Recsim[1,], lag.max=1)
Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1
Regards
EJ
__
R-help@stat.math.ethz.ch mailing list
https://stat.e
Dear R-ians,
I am working with princomp and I now want to manually recalculate my
original values. I want to do it to completely understand the procedure
of principal components.
I tried it with a test data set (2 dimensions) and I was able to
calculate my original values (of a random point of
I did not fully understand which environment you want but:
1. if this is written in your function: e <- environment()
then e contains the current environment in the function
2. parent.env(e) is the lexical environment within which
your function was defined. Also, if the function is ca
Glen Jones <[EMAIL PROTECTED]> wrote:
> if (InternalMean == 0)
> Intresult = 1
> if (InternalMean > 0 & InternalMean < 1)
> Intresult = .95
> [etc.]
This looks like a job for "cut":
R> i <- cut(InternalMean, c(-Inf,0,1,2,4,9,Inf), labels=F)
R> Intresult <- c(1,.95,.85,.70,.50,0)[i]
-- Da
On May 12, 2005, at 10:09 AM, Gabor Grothendieck wrote:
On 5/11/05, Sean Davis <[EMAIL PROTECTED]> wrote:
I have a list in a package environment
assign('refflat',list(),pos='package:locPkg')
to which I would like to make assignments like:
refflat[['a']] <- read.table('fileA.txt')
refflat[['b']] <-
On Thu, 12 May 2005, Suresh Krishna wrote:
Is that the entire story ? I tried this with yesterday's patched version
(windows xp) and found:
list.files(getwd(),"*.txt",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular expression
list.fi
Bill Shipley wrote:
> Hello. I am analysing data from a mixed model perspective using the
> lme() function. The fixed effects model is a quadratic (Y~X+X2) where
> X2 is the square of X and the data have a 3-level structure. I fitted a
> series of three models with the same fixed effects but dif
On 5/11/05, Sean Davis <[EMAIL PROTECTED]> wrote:
> I have a list in a package environment
>
> assign('refflat',list(),pos='package:locPkg')
>
> to which I would like to make assignments like:
>
> refflat[['a']] <- read.table('fileA.txt')
> refflat[['b']] <- read.table('fileB.txt')
>
> I am doi
Here's one way to work around it:
> nm <- c("x", "", "y")
> x <- 10; y <- 20
> myObj <- structure(vector(mode="list", length=length(nm)), names=nm)
> goodNames <- nm[nchar(nm) > 0]
> myObj[goodNames] <- mget(goodNames, .GlobalEnv)
> myObj
$x
[1] 10
[[2]]
NULL
$y
[1] 20
Andy
> From: Georg Otto
Hi everyone,
how can I calculate standardized logistic regression coefficients using
R? I used "glm" resp. "lrm" from the design-package in order to
calculate logistic regression coefficients but I'm wondering if there's
a possibility to get standardized logistic regression coefficients?
Thanks
Georg Otto wrote:
Dear R community,
I am a beginner to R and have a question concerning mget, about I could
not find anything in the various documentation.
I have a column in a dataframe x for which I want to get values in y:
mget(x[,1], env=y, ifnotfound=NA)
I receive an error mesage:
Error in m
Dear R community,
I am a beginner to R and have a question concerning mget, about I could
not find anything in the various documentation.
I have a column in a dataframe x for which I want to get values in y:
mget(x[,1], env=y, ifnotfound=NA)
I receive an error mesage:
Error in mget(x[, 1], env =
martin peters writes:
> $ library(pls)
> $ data(NIR)
>
> $ testing.plsNOCV <- plsr(y ~ X, 6, data = NIR, method="kernelpls",
> validation="none")
> $ NIR.plsCV <- plsr(y ~ X, 6, data = NIR, CV=TRUE, method="kernelpls")
> $ testing.plsCV <- crossval(testing.plsNOCV)
> $ R2(NIR.plsCV)
> (Intercept)
I have tried this but on Windows XP R 2.1.0 found I had to set it outside of
R prior to starting R.
1. unsuccessful
> Sys.time()
[1] "2005-05-12 09:08:03 Eastern Daylight Time"
> Sys.putenv(TZ="GMT")
> Sys.time() # no change
[1] "2005-05-12 09:08:12 Eastern Daylight Time"
2. OK
C:\>set tz=GMT
This might solve your problem without helping. Having spent I bit of time
trying to build R with the pkgadd version of GCC from Sunfreeware and not
getting anywhere I downloaded the source for GCC 3.4.2 and built this, then
used this to build R.
Everything worked fine.
HTH
Phineas
-Origina
I have been trying to use the listings package in LaTeX to do this but
have not been fully happy with the result. Here is what I'm trying:
\lstloadlanguages{R}
\lstset{language=R,basicstyle=\smaller[2],commentstyle=\rmfamily\smaller,
showstringspaces=false,%
xleftmargin=4ex,literate={<-}{{$\le
Thank you for your answer,
but my problem concerns the support vectors. Indeed the two classes are
well separated and the hyperplane is linear but the support vectors aren't
aligned in parallel to the hyperplane. And according to me, the support
vectors (for each class) should be aligned along
Dear R-Help,
As a reference about multi plot,
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48725.html
I want to know how can I make a label for each row.
I mean like,
- --
|| ||
Note that sfsmisc::glob2rx is a handy function that will convert glob style
wildcard expressions to regular expressions.
On 5/12/05, Steve Roberts <[EMAIL PROTECTED]> wrote:
> Yes I missed the NEWS entry - or rather didn't realise its significance.
> So the "bug" was in the previous version and
Hi
I am having problems compiling R on a Solaris 10 opteron box we have on
trial.
checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib -
L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 -
L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc-
solaris2.10/3.3.2/../../.. -
Yes I missed the NEWS entry - or rather didn't realise its significance.
So the "bug" was in the previous version and my old code which worked
but shouldn't have.
Thanks for the replies - rapid and to the point as usual.
Steve.
Date sent: Thu, 12 May 2005 10:45:03 +0200
From:
Ute Visser wrote:
Hello!
I wonder why the x and the y expression are treated differently in the
plot-function?
In the example below I should get three times the same graph, shouldn't
I?
column<-c(0,1)
par(mfrow = c(3,1))
plot((1-column)~column)
plot(column~(1-column))
In right hand sides of formula
Gladys,
>
> I've used svm() with a linear kernel and I'd like to plot the linear
>
> hyperplane and the support vectors. I use plot.svm() and, according to
> me, I would have found aligned support vectors (because the hyperplane
> is linear) for each class but it wasn't the case. Could you ex
Uwe Ligges wrote:
Please read about regular expressions (!!!) and try to understand that
".txt" also finds "Not_a_txt_file.xls"
The confusion here is between regular expressions and wildcard
expansion known as 'globbing'. The two things are very different, and
use characters such as '*' '.
Hello!
I wonder why the x and the y expression are treated differently in the
plot-function?
In the example below I should get three times the same graph, shouldn't
I?
column<-c(0,1)
par(mfrow = c(3,1))
plot((1-column)~column)
plot(column~(1-column))
plot(column~as.vector(1-column))
Thanks for c
Dear all,
I'm a trainee statistician in a company and we'd like to understand svm
mechanism, at first with simple examples.
I use e1071 package and I have several questions. I'm working with data
extracted from cats data (from R). My dataset corresponds to a completely
separable case with a bi
Le 12.05.2005 10:48, Suresh Krishna a écrit :
Is that the entire story ? I tried this with yesterday's patched
version (windows xp) and found:
> list.files(getwd(),"*.txt",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular expression
>
Dear all,
I am trying to plot means and error bars using xYplot, but I get an
error message from xYplot which I can not figure out:
> Error in Summary.factor(..., na.rm = na.rm) :
range not meaningful for factors
The data frame (tmpNa) was created using aggregate. I have used dump to
cre
Romain Francois wrote:
Le 12.05.2005 10:30, Steve Roberts a écrit :
R2.0.1 (MS Windows)
list.files(myloc,"*.zip",full=T)
[1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip"
[2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip"
R2.1.0:
list.files(myloc,"*.zip",full=T)
Error in list.files(path, pattern,
Suresh Krishna wrote:
Is that the entire story ? I tried this with yesterday's patched version
(windows xp) and found:
> list.files(getwd(),"*.txt",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular expression
> list.files(getwd(),'.
oops, my fault. i missed typing the key '*' character in the second version.
apologies !!!
suresh
Suresh Krishna wrote:
Is that the entire story ? I tried this with yesterday's patched version
(windows xp) and found:
> list.files(getwd(),"*.txt",full=T)
Error in list.files(path, pattern, all.fil
Le 12.05.2005 10:30, Steve Roberts a écrit :
R2.0.1 (MS Windows)
list.files(myloc,"*.zip",full=T)
[1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip"
[2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip"
R2.1.0:
list.files(myloc,"*.zip",full=T)
Error in list.files(path, pattern, all.files, full.nam
Dear all,
I'm using the correlogram function in the spatial library to calculate
spatial correlograms of radar data. However, I'm finding that the
resulting values are often outside the range [-1,1], usually only at
larger distances of separation.
I'm not sure whether to be overly concerned abou
Is that the entire story ? I tried this with yesterday's patched version
(windows xp) and found:
> list.files(getwd(),"*.txt",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular expression
> list.files(getwd(),'.txt',full=T)
[1] "C:/Doc
Steve Roberts wrote:
R2.0.1 (MS Windows)
list.files(myloc,"*.zip",full=T)
[1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip"
[2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip"
R2.1.0:
list.files(myloc,"*.zip",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pat
R2.0.1 (MS Windows)
> list.files(myloc,"*.zip",full=T)
[1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip"
[2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip"
R2.1.0:
> list.files(myloc,"*.zip",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular e
Navarre Sabine (stu) wrote:
Hello,
(sqlQuery(channel, "select * from.."))
I would like to know if it's possible to put a file name in the
parameters of the function 'sqlQuery' instead of putting the query .
If it's possible, what kind of extension for my file have I need?
That's for your help
S
Hello,
(sqlQuery(channel, "select * from.."))
I would like to know if it's possible to put a file name in the
parameters of the function 'sqlQuery' instead of putting the query .
If it's possible, what kind of extension for my file have I need?
That's for your help
Sabine
[[
for example (works also with png and jpg)
bmp("mypic.bmp");
plot(...);
dev.off();
hih
__
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
Dear all,
I have just uploaded to CRAN the version 1.3 of the
package 'adehabitat'. Significant changes are
listed below:
- Several functions allowing the conversion from
and to classes of the package sp have been added.
Maps of class "asc", "kasc", "area", as well as
radio-monitoring of class "
80 matches
Mail list logo