[R] xyplot key

2009-10-01 Thread Andrewjohnclose
Hi, I'm having trouble matching the symbols/color of the key to match those specifiec in the plot. Here is the code I used: xyplot(GCR+GCT ~ FRAC, data=RWF, type=c(g,p),cex=1.2,pch=c(22,21), xlab=expression(italic(f)),ylab=expression(italic(S)), key=list(points=list(pch=c(22,21),cex=1.2),

[R] Minimum and blanks

2009-10-01 Thread Chris Li
Hi all, I want to calculate the minimum of a column which contains blanks. R returns as the minimum, which is not I want. Is there a way to overcome it? Thanks in advance. Chris -- View this message in context: http://www.nabble.com/Minimum-and-blanks-tp25692189p25692189.html Sent from the

[R] Confidence intervals PLS prediction

2009-10-01 Thread lievelaurens
I have switched from The Unscrambler to R for pls regression analysis and have been able to calculate scores, coefficients, RMSEP from a large number of PLS1 and PLS2 models. The ultimate goal is to use these models for predicting unknown samples, which again is straight-forward with the built-in

Re: [R] Calling R functions into C# or C++

2009-10-01 Thread fayssal
Hi, It is possible to call R functions from .NET by using a .NET wrapper over the R (D)Com server. http://www.nabble.com/file/p25682136/RFromCsharp.zip Attached is a sample C# project that shows how to call R from C#. Best Regards, Fayssal El Moufatich

[R] re ading and analyzing a word document

2009-10-01 Thread PDXRugger
file=(LUSDR/letter.doc) Howdy Y'all, So i am looking to read a word document in the following formats(.doc) or any type of accessible word processor software (e.g. text .txt, notepad, etc). Had the ability to search certain words, for instance banana, peacock,Weapons Mass Destruction. Then i

[R] Input format for kcca in kernlab

2009-10-01 Thread Guru Ananda
Hi, I'm trying to use kcca function from the kernlab package, and it requires 2 input datasets, both of which need to be matrices containing data index by row. I have two data frame objects which I converted to matrices using data.frame(x). Their dimensions are 2264*10 and 2264*4. I then tried

Re: [R] re ading and analyzing a word document

2009-10-01 Thread PDXRugger
Considering your instructions: #Define words to find to.find - c( 'the', 'is', 'are' ,'dr') #Read in the file... file.text - readLines( 'data/letter.txt' ) #Count number of occurnces of deined word in text line.matches - unlist( lapply( to.find, grep, x = unlist(file.text[2]) ) ) Result:

[R] aproximate a titration kurve to the measure data.

2009-10-01 Thread awayguy
Halo i'm studying chemistry, today we made an experiment and i have to draw a titration kurve for my mess data. we can do it on a mm paper, or we can also use a programe. people from chemistry recomend R last year i studied civil eng. and we used Matlab, as I see, R ist very similar to it, but

Re: [R] Minimum and blanks

2009-10-01 Thread Peter Ehlers
Chris, What is your definition of the minimum of a *character* vector? -Peter Ehlers Chris Li wrote: Hi all, I want to calculate the minimum of a column which contains blanks. R returns as the minimum, which is not I want. Is there a way to overcome it? Thanks in advance. Chris

Re: [R] Overview of error and warning messages for teaching + examples

2009-10-01 Thread Tal Galili
It would best be there - I agree. But since I had no experience with the site - I didn't know the rules of use for it. Thanks for clarifying. Tal -- My contact information: Tal Galili E-mail: tal.gal...@gmail.com Phone number: 972-52-7275845

Re: [R] Overview of error and warning messages for teaching + examples

2009-10-01 Thread joris meys
Hi Ben, other members of the list also pointed me to this possibility. I'll certainly add the manual. Kind regards Joris On Thu, Oct 1, 2009 at 4:14 AM, Ben Bolker bol...@ufl.edu wrote: Tal Galili tal.galili at gmail.com writes: Hi Joris, Good luck with your work. I know how to set up a

[R] creating R roll in Centos OS

2009-10-01 Thread Sukhbir Rattan
Hi I have Centos Operating System. I m installing R on it. For this I have to create roll of R. So, how to create the roll of R, regarding this what to be downloaded and from where? Plz help. By Sukhbir Singh Rattan. [[alternative HTML version deleted]]

Re: [R] Minimum and blanks

2009-10-01 Thread joris meys
The minimum of a character vector is returned according to the unicode or ascii code values, but I guess that's not what Chris is looking for. Chris, please always try to provide a minimal working example of code to see what is wrong. Something goes wrong with the input in your example. As Peter

Re: [R] Missing functions

2009-10-01 Thread Paul Hiemstra
Kenny Shen wrote: Hi all, I'm new to R and have been working hard to get familiarized with it. A problem I'm facing now is that having installed some packages (psych, doBy), I can't seem to access the functions even through there was no error messages when I load them using library(). I get an

Re: [R] Missing functions

2009-10-01 Thread Kenny Shen
hi paul, i tried loading the package psych again and: library(psych) Warning messages: 1: Display list redraw incomplete 2: Display list redraw incomplete 3: Display list redraw incomplete typing library(psych) after that just brings me to an empty then with psych:::function, Error: package

Re: [R] Missing functions

2009-10-01 Thread joris meys
Hi Kenny, what version of R are you using? To clean up, try remove.packages (http://stat.ethz.ch/R-manual/R-patched/library/utils/html/remove.packages.html) On Thu, Oct 1, 2009 at 10:43 AM, Kenny Shen little...@gmail.com wrote: hi joris, i installed them using install.packages('psych') from

Re: [R] Missing functions

2009-10-01 Thread Kenny Shen
hi joris, I'm using: R version 2.8.1 (2008-12-22) I'll give the remove a try and then do another install. hope that'll resolve the issue. thanks for your advice! kenny On Thu, Oct 1, 2009 at 4:51 PM, joris meys jorism...@gmail.com wrote: Hi Kenny, what version of R are you using? To

Re: [R] Missing functions

2009-10-01 Thread Kenny Shen
Hi joris, following your link to the uninstall, then reinstall packages did the trick. thanks! kenny On Thu, Oct 1, 2009 at 4:55 PM, Kenny Shen little...@gmail.com wrote: hi joris, I'm using: R version 2.8.1 (2008-12-22) I'll give the remove a try and then do another install. hope

Re: [R] Missing functions

2009-10-01 Thread Paul Hiemstra
Hi, Look at remove.packages(). Paul Kenny Shen wrote: hi paul, i tried loading the package psych again and: library(psych) Warning messages: 1: Display list redraw incomplete 2: Display list redraw incomplete 3: Display list redraw incomplete typing library(psych) after that just brings

Re: [R] Missing functions

2009-10-01 Thread Kenny Shen
Yes Paul, that resolved the issue for me. Thanks again! On Thu, Oct 1, 2009 at 5:19 PM, Paul Hiemstra p.hiems...@geo.uu.nl wrote: Hi, Look at remove.packages(). Paul Kenny Shen wrote: hi paul, i tried loading the package psych again and: library(psych) Warning messages: 1:

Re: [R] aproximate a titration kurve to the measure data.

2009-10-01 Thread bartjoosen
Hi, This should be possible, even with automatic EP detection. Can you give use some example titration data, or the used matlab code? If you want some introduction papers to R, take a look at the documents at CRAN (CRAN other) Bart awayguy wrote: Halo i'm studying chemistry, today we

[R] pass ... to multiple sub-functions

2009-10-01 Thread baptiste auguie
Dear list, I know I have seen this discussed before but I haven't been successful in searching for ellipsis, dots, ... in the archives. I would like to filter ... arguments according to their name, and dispatch them to two sub-functions, say fun1 and fun2. I looked at lm() but it seemed more

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Dear Helpers   I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.   H - matrix(rnorm(100, mean=5, sd=5000)) sampleframe=data.frame(type=c(rep(H,100)),value=c(H)) sampleframe  

Re: [R] aproximate a titration kurve to the measure data.

2009-10-01 Thread Bernardo Rangel Tura
On Wed, 2009-09-30 at 10:55 -0700, awayguy wrote: Halo i'm studying chemistry, today we made an experiment and i have to draw a titration kurve for my mess data. we can do it on a mm paper, or we can also use a programe. people from chemistry recomend R last year i studied civil eng. and we

Re: [R] How to use Subpopulation data?

2009-10-01 Thread Bernardo Rangel Tura
On Thu, 2009-10-01 at 10:06 +, KABELI MEFANE wrote: Dear Helpers I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters. H - matrix(rnorm(100, mean=5, sd=5000))

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Daniele Amberti
By now It seems nobody have idea. zz - gzfile(C:/gzpdftest.gz, wb) pdf(file = zz) plot(USArrests) dev.off() close(zz) produce a file named 3 without any extension in my working directory. Also I don't have any news on how to gzip the pdf afterward (without using an external executable).

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Thanks   i know, i was just simplying since i have a bigger set,   But the problem is not that.The problem is i have a sampled data and i need to use the results but when i only get the population results. How do i get the legnths,summary,etc of my sampled data not the population? --- On Thu,

[R] set package: more information about syntax

2009-10-01 Thread Jarek Jasiewicz
Dear All! I have a few question about proper syntax for fuzzy rules in sets package (there is only little help about it): 1) how to use negation (NOT) operator there is only OR (||) in example it is NOT, !!, !. I also assume that AND is 2) where it can be set. For example: area %is NOT%

[R] question

2009-10-01 Thread hassan paylakhi
hi I am going to crazy.I want to use beadarray package in R, but I cant. when I want install it, I encounter to this message Loading required package: hwriter Loading required package: sma Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : 'sma' is not a

[R] Nested Anova and type II sum of square

2009-10-01 Thread Olga Ivanikova
Dear R-users, I’d like to make a nested anova on my data, and since I’m discovering both R and statistic, I’d like to be sure that I’m not doing something stupid. Here is my data: I’ve measured some variable responses (Y, for example leaf size) for different plants grown on three

[R] debugging S4 methods

2009-10-01 Thread sebastian mueller
Hi all, Does anyone know how to debug S4 methods? In my case I want to find an error in the specc-function of the kernlab-package. As this seems to be a S4-method the normal S3 debugging can't be applied apparently (e.g. debug(s3function.someclass)). So in my case debug(specc:kernlab) seems

Re: [R] debugging S4 methods

2009-10-01 Thread Duncan Murdoch
On 01/10/2009 7:02 AM, sebastian mueller wrote: Hi all, Does anyone know how to debug S4 methods? In my case I want to find an error in the specc-function of the kernlab-package. As this seems to be a S4-method the normal S3 debugging can't be applied apparently (e.g.

Re: [R] Calculating estimates from a sample

2009-10-01 Thread KABELI MEFANE
Dear Helpers   I have a simulated sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.For example i need to get the summary,length,std.error,etc. this is just a simplified example.   H -

Re: [R] How to use Subpopulation data?

2009-10-01 Thread Peter Ehlers
I assume that you are using package:sampling? (Perhaps it wouldn't be too much trouble to include that information with your query.) Read ?strata and pay attention to the 'Value' section. This will tell you that the function returns a variable ID_unit - the identifier of the selected units

Re: [R] Condition to factor (easy to remember)

2009-10-01 Thread Dieter Menne
Douglas Bates-2 wrote: On Wed, Sep 30, 2009 at 2:42 PM, Douglas Bates ba...@stat.wisc.edu wrote: And besides, Frank Harrell will soon be weighing in to tell you why you shouldn't dichotomize in the first place. Subjects in this study received a 20 ml infusion of Kirsch (40%, Swiss

[R] Huge matrix: allocation works but assignment fails

2009-10-01 Thread Remi
Hello everyone, I am working with one big matrix: w=matrix(0,18000,18000) on a Linux computer with 16Go of RAM. I can actually create the matrix, and even access elements: w[10,10] 0 but if I try to change one element, it fails: w[10,10]=1 Erreur : impossible d'allouer un vecteur de taille

[R] GAM question

2009-10-01 Thread Daniel Rabczenko
Hello evyrone, I would be grateful if you could help me in (I hope) simple problem. I fit a gam model (from mgcv package) with several smooth functions . I don't know how to extract values of just one smooth function. Can you please help me in this? Kind regards, Daniel Rabczenko

Re: [R] creating R roll in Centos OS

2009-10-01 Thread Marc Schwartz
On Oct 1, 2009, at 2:44 AM, Sukhbir Rattan wrote: Hi I have Centos Operating System. I m installing R on it. For this I have to create roll of R. So, how to create the roll of R, regarding this what to be downloaded and from where? Plz help. By Sukhbir Singh Rattan. If by roll, you

Re: [R] re ading and analyzing a word document

2009-10-01 Thread David Winsemius
On Oct 1, 2009, at 12:18 AM, cls59 wrote PDXRugger wrote: Considering your instructions: #Define words to find to.find - c( 'the', 'is', 'are' ,'dr') #Read in the file... file.text - readLines( 'data/letter.txt' ) #Count number of occurnces of deined word in text line.matches - unlist(

Re: [R] question

2009-10-01 Thread David Winsemius
On Oct 1, 2009, at 4:33 AM, hassan paylakhi wrote: hi I am going to crazy.I want to use beadarray package in R, but I cant. when I want install it, I encounter to this message Loading required package: hwriter Loading required package: sma Error in library(pkg, character.only = TRUE,

Re: [R] re ad.delim skips first column (why?)

2009-10-01 Thread HBaize
I can't determine what is going on in you example, but my approach would be to read the text file into a text editor that will display hidden characters (tab, etc.) so you can see the pattern. It could be that there is an extra tab in some locations. You could then use the editor's replace

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Thanks   i was not aware of str, i have a very large code since i am new to r. I forgot to mention that the package is sampling. Actually i have this simulated code:   n - c(100,400,1000,1500,2000) x - c(2,3,3,3,5) y - c(7,7,9,10,10) s - function(mn, mx, n) {sample(mn:mx, n, replace=TRUE)}

[R] Help for 3D Plotting Data on 'Irregular' Grid

2009-10-01 Thread Lorenzo Isella
Dear All, Here is what I am trying to achieve: I would like to plot some data in 3D. Usually, one has a matrix of the kind y_1(x_1) , y_1(x_2).y_1(x_i) y_2(x_1) , y_2(x_2).y_2(x_i) ... y_n(x_1) , y_n(x_2)..y_n(x_i) where e.g. y_2(x_1) is the

[R] Treating variables as symbols

2009-10-01 Thread ZeMajik
Hey, I'm trying to find how to perform operations with a variable treated as a symbol. For, an extremely simple, example I want to integrate a*x with respect to x and I want to find the indefinite integral of this, (a*x^2/2), or the definite integral with some interval for x. Another example of

Re: [R] Treating variables as symbols

2009-10-01 Thread Jorge Ivan Velez
Hi Zemajik, Try this: y - function(a) paste(a, '*x', sep=) y(2) [1] 2*x Also, take a look at the Ryacas package. HTH, Jorge On Thu, Oct 1, 2009 at 9:46 AM, ZeMajik wrote: Hey, I'm trying to find how to perform operations with a variable treated as a symbol. For, an extremely simple,

Re: [R] pass ... to multiple sub-functions

2009-10-01 Thread Peter Ruckdeschel
Dear Baptiste, I know I have seen this discussed before but I haven't been successful in searching for ellipsis, dots, ... in the archives. I would like to filter ... arguments according to their name, and dispatch them to two sub-functions, say fun1 and fun2. I looked at lm() but it seemed

Re: [R] Treating variables as symbols

2009-10-01 Thread Henrique Dallazuanna
Try this: y - function(a) substitute(a * x, list(a = a)) On Thu, Oct 1, 2009 at 10:46 AM, ZeMajik zema...@gmail.com wrote: Hey, I'm trying to find how to perform operations with a variable treated as a symbol. For, an extremely simple, example I want to integrate a*x with respect to

Re: [R] set package: more information about syntax

2009-10-01 Thread Jarek Jasiewicz
Dear All! I have a few question about proper syntax for fuzzy rules in sets package (there is only little help about it): 1) how to use negation (NOT) operator there is only OR (||) in example it is NOT, !!, !. I also assume that AND is 2) where it can be set. For example: area %is

[R] typo in install manual

2009-10-01 Thread Daniel Dekic
http://cran.r-project.org/doc/manuals/R-admin.pdf page 8 and page 13 testInstallPackages(recommended) - testInstalledPackages(recommended) same problem in .html -- CTM Clinical Trials Management GmbH Mariahilferstraße 47/III/3/5 1060 Vienna, Austria Phone: +43 (0) 1 / 585 80 63 Fax: +43

[R] (no subject)

2009-10-01 Thread Jens Oehlschlägel
Hi, Does anyone know where the following package is available: Holleczek B, Gondos A, Brenner H. PeriodR - an R package to calculate long term survival estimates using period analysis. Methods of Information in Medicine 2009; 48: 123-128. Thanks Jens Oehlschlägel -- GRATIS für alle

[R] Getting formatted character from call

2009-10-01 Thread Iago Mosqueira
Hi, I need to get a character vector from an object of class call. But using as.character() returns something based on the internal structure of the object, and not, as I would like, some akin to the output of show() on a call object. Any idea on how to obtain the same output returned by show?

Re: [R] question

2009-10-01 Thread Martin Morgan
hassan paylakhi wrote: hi I am going to crazy.I want to use beadarray package in R, but I cant. when I want install it, I encounter to this message Loading required package: hwriter Loading required package: sma Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc =

[R] The problem of readLines

2009-10-01 Thread Tammy Ma
Dear R-users, I use readLines to read data, but when processing the large data set, there are few files which can not be readed in: 48: In readLines(name_c[i]) ... : incomplete final line found on 'C:/Documents and Settings/lma/My

[R] Maintaining sort order when transpose

2009-10-01 Thread Dry, Jonathan R
Hi all - I have a data frame and have sorted it by a particular column, with rownames set to a different variable. I wish to transpose this data frame, naming columns by the rowname variable but maintaining the sorted order through to the order of columns in my transposed table, however use of

[R] Color of graph

2009-10-01 Thread Ashta
I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so how? Thanks in advance Ashta [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Evaluating expresssions as parameter values

2009-10-01 Thread Erich Neuwirth
Let us walk through my problem step by step: 1. print(xyplot(yield ~ variety | site,groups=year,data=barley)) 2. print(xyplot(as.formula(yield ~ variety | site),groups=year,data=barley)) The above two statements work, the next one does not work 3. print(xyplot(as.formula(yield ~ variety |

Re: [R] The problem of readLines

2009-10-01 Thread Henrique Dallazuanna
From the help page for readLines: If the final line is incomplete (no final EOL marker) the behaviour depends on whether the connection is blocking or not. For a non-blocking text-mode connection the incomplete line is pushed back, silently. For all other connections the line

Re: [R] (no subject)

2009-10-01 Thread Jorge Ivan Velez
Hi Jens, Take a look at http://www.krebsregister.saarland.de/improve/periodR_en.html HTH, Jorge 2009/10/1 Jens Oehlschlägel Hi, Does anyone know where the following package is available: Holleczek B, Gondos A, Brenner H. PeriodR - an R package to calculate long term survival estimates

Re: [R] Getting formatted character from call

2009-10-01 Thread Gabor Grothendieck
Please read the last line to every message to r-help. There is no reproducible code in your post. Anyways, it works for me: class(call(round, 1.5)) [1] call as.character(call(round, 1.5)) [1] round 1.5 format(call(round, 1.5)) [1] round(1.5) On Thu, Oct 1, 2009 at 7:58 AM, Iago Mosqueira

Re: [R] (no subject)

2009-10-01 Thread Andris Jankevics
Actually that is stated in paper abstract: http://www.krebsregister.saarland.de/improve/periodR_en.html Andris 2009/10/1 Jens Oehlschlägel oehl_l...@gmx.de: Hi, Does anyone know where the following package is available: Holleczek B, Gondos A, Brenner H. PeriodR - an R package to calculate

Re: [R] Color of graph

2009-10-01 Thread Henrique Dallazuanna
Try this: abline(m1, col = 'blue') abline(m1, col = 'red') abline(m1, col = 'green') On Thu, Oct 1, 2009 at 10:57 AM, Ashta sewa...@gmail.com wrote: I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so

Re: [R] Color of graph

2009-10-01 Thread smu
abline(m1, col=red) regards, Stefan On Thu, Oct 01, 2009 at 09:57:11AM -0400, Ashta wrote: I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so how? Thanks in advance Ashta

Re: [R] Color of graph

2009-10-01 Thread Charlie Sharpsteen
On Thu, Oct 1, 2009 at 6:57 AM, Ashta sewa...@gmail.com wrote: I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so how? Thanks in advance Ashta Try passing the 'col' parameter to abline: abline(

Re: [R] Color of graph

2009-10-01 Thread Jorge Ivan Velez
Hi Ashta, See the ... in ?abline. HTH, Jorge On Thu, Oct 1, 2009 at 9:57 AM, Ashta wrote: I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so how? Thanks in advance Ashta [[alternative

Re: [R] re ading and analyzing a word document

2009-10-01 Thread spencerg
library(sos) tm - findFn('text mining') tm This produced 15 matches, which you could also find using RSiteSearch('text mining', 'function'). The difference is that findFn{sos} displays the results in a table sorted to place the package with the most matches first. In this case, there

[R] package:snow, timeOut for makeSOCKcluster()

2009-10-01 Thread Markus Loecher
Dear snow users, is there any way to specify a max time after which makeSOCKcluster() stops trying to create socket connections and gives up/returns ? In my current setup (MAC OSX 10.5.8, R version 2.9) I have to force quit R if the host specified in makeSOCKcluster() either does not exist or does

Re: [R] GAM question

2009-10-01 Thread joris meys
Hi Daniel, I presume you mean coefficients by values. Try ?gamObject and read the info in the help file. A GAM object (returned by the function gam() ) contains an element coefficients that is easily accessible. That one contains all estimated coefficients, including those for the smooth

Re: [R] typo in install manual

2009-10-01 Thread Duncan Murdoch
On 10/1/2009 5:37 AM, Daniel Dekic wrote: http://cran.r-project.org/doc/manuals/R-admin.pdf page 8 and page 13 testInstallPackages(recommended) - testInstalledPackages(recommended) Thanks, will fix. Duncan Murdoch __ R-help@r-project.org

[R] cdplot????

2009-10-01 Thread kayj
I am having difficulties interpreting a cdplot, I have a binary variable y that I want to cdplot against a continuous variable x,below is the R command cdplot(y~x, data=mydata) you get a plot with a dark shaded area and a light shaded area. what do these areas mean? and how to interpret the

Re: [R] Maintaining sort order when transpose

2009-10-01 Thread Kevin Wright
An example would be helpful, but if I understand correctly, can't you do something like TDF=t(DF) TDF=TDF[,rownames(DF)] Kevin Wright On Thu, Oct 1, 2009 at 9:04 AM, Dry, Jonathan R jonathan@astrazeneca.com wrote: Hi all - I have a data frame and have sorted it by a particular column,

Re: [R] Debug

2009-10-01 Thread Tammy Ma
From: metal_lical...@live.com To: r-help@r-project.org Subject: Debug Date: Thu, 1 Oct 2009 15:21:42 +0300 Hi, R-Users,' I have written a programe to process the bunch of files in one folder. But there is a error came out; How can I know which file returns error when being processed? I

Re: [R] Treating variables as symbols

2009-10-01 Thread ZeMajik
Thanks guys, Ryacas is pretty much what I'm looking for!However, I can't seem to get it to work properly. For example: yacas(Integrate(x) x) Error in parse(text = text, srcfile = NULL) : unexpected numeric constant in / (^ (x ,2 2 Same thing with expressions such as yacas(x*x) However

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Ista Zahn
I guess I don't understand what your're trying to do. gzip-ing a file from within R is easy enough: pdf(file=CompressMe.pdf) plot(rnorm(100)) dev.off() system(gzip CompressMe.pdf) I think you want something more complicated, but I'm not sure what. -Ista On Thu, Oct 1, 2009 at 6:41 AM, Daniele

Re: [R] Treating variables as symbols

2009-10-01 Thread Gabor Grothendieck
Read the troubleshooting section on the home page: http://ryacas.googlecode.com Note, in particular, that it currently only works with an older version of the XML package. library(Ryacas) packageDescription(XML)$Version [1] 1.96-0 x - Sym(x) Integrate(x*x, x) [1] Starting Yacas!

Re: [R] Debug

2009-10-01 Thread Steve Lianoglou
Hi Tammy, On Oct 1, 2009, at 11:04 AM, Tammy Ma wrote: Hi, R-Users,' I have written a programe to process the bunch of files in one folder. But there is a error came out; How can I know which file returns error when being processed? I have tested the first 1-10th files, no any problem. But the

Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown sender

2009-10-01 Thread Daniele Amberti
system() invokes the OS command specified by command, in the example you gave it means that gzip is installed and (assuming Windows OS) it is in your search path. I'd like to have a solution that do not use external programs. Thanks Daniele -Original Message- From: Ista Zahn

Re: [R] Unable to install lme4

2009-10-01 Thread jamesmcc
I am baffled by this as well. I'm having the same issue. Using suse linux, with 64 bit R2.8.1. Thanks, james Zege, Andrew wrote: I am unable to install package lme4, after several attempts to do so using various repository URLs. Just to make sure everything works fine with proxy,

Re: [R] cdplot????

2009-10-01 Thread Achim Zeileis
On Thu, 1 Oct 2009, kayj wrote: I am having difficulties interpreting a cdplot, I have a binary variable y that I want to cdplot against a continuous variable x,below is the R command cdplot(y~x, data=mydata) you get a plot with a dark shaded area and a light shaded area. what do these areas

Re: [R] The problem of readLines

2009-10-01 Thread Tammy Ma
I have a more problem: Because there are few files which can't be read into R completely, so on the following subsequence programme, I use write.table, which creates the NA files for those incomplete files autimatically. I don't want those NA files. How can I do the following: whenever

[R] Can You Recommend Books for Linear Mixed Models in R

2009-10-01 Thread Pat Schmitz
All I have been looking into the books on performing statistics in R, in particular I am interested in General Linear Mixed Models, for Randomized Complete Block Design Experiments The list I have come away with so far is: Mixed Effects Models in S and S-plus by Pinheiro (2002)

[R] Using optimize with array variables

2009-10-01 Thread Vik
Hello, I am trying to figure out how to use optimize() with array variables as inputs. I have a for loop in the function definition: SS - function(int,slo,x,y){ for(i in 1:length(x)) ((int+slo*x[i])-y[i])^2-squares[i] sum(squares)-sum_squares output_txt = c (The sum of squares is, sum_squares)

Re: [R] pass ... to multiple sub-functions

2009-10-01 Thread baptiste auguie
2009/10/1 Peter Ruckdeschel peter.ruckdesc...@web.de: removed - c(lty,params.fun1) ## I assume you do not want to pass on argument lty... dots.remaining - cl[-1] ### remove the function name dots.remaining - dots.remaining[! names(dots.remaining) %in%

Re: [R] Help me replace a for loop with an apply function

2009-10-01 Thread jim holtman
Will this work: x - read.table(textConnection( day user_id + 2008/11/012001 + 2008/11/012002 + 2008/11/012003 + 2008/11/012004 + 2008/11/012005 + 2008/11/022001 + 2008/11/022005 + 2008/11/032001 + 2008/11/032003 + 2008/11/032004 + 2008/11/03

[R] Normal distribution

2009-10-01 Thread Noela Sánchez
Hi, I am dealing with how to check in R if some data that I have belongs to a normal distribution or not. I am not interested in obtaining the theoreticall frequencies. I am only interested in determing if (by means of a test as Kolmogorov, or whatever), if my data are normal or not. But I have

[R] .Rprofile file

2009-10-01 Thread Data Analytics Corp.
Hi, I want to use the .RProfile to set defaults such as text editor. Is this a file I need to create? Also, where should I put it? I tend to create .RData files for different projects, putting each in a different Windows (Vista) folder. Is one .Rprofile file created that any instance

Re: [R] Huge matrix: allocation works but assignment fails

2009-10-01 Thread Uwe Ligges
Remi wrote: Hello everyone, I am working with one big matrix: w=matrix(0,18000,18000) on a Linux computer with 16Go of RAM. I can actually create the matrix, and even access elements: w[10,10] 0 but if I try to change one element, it fails: w[10,10]=1 In this case your object is copied

Re: [R] Normal distribution

2009-10-01 Thread Richardson, Patrick
?shapiro.test -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Noela Sánchez Sent: Thursday, October 01, 2009 12:47 PM To: r-help@r-project.org Subject: [R] Normal distribution Hi, I am dealing with how to check in R if some data

[R] Looking for a better way to document my packages

2009-10-01 Thread Steve Lianoglou
Hi all, Trying to do what my subject says. As I'm trying to be better about making packages out of my code, I'd like the packages themselves to be better, which means *.Rd- documenting my code. The thing is, from years of programming other languages prior to landing in the R pond, I've

[R] Revolutions blog: September roundup

2009-10-01 Thread David M Smith
I write about R every weekday at the Revolutions blog: http://blog.revolution-computing.com . In case you missed them, here are some articles from last month of particular interest to R users. http://bit.ly/WYAnM shows how to create a URL for a Google Spreadsheet so you can read the data

Re: [R] Huge matrix: allocation works but assignment fails

2009-10-01 Thread Ben Bolker
Remi wrote: (Failed to allocate a vector of size...) What can I do? And, maybe even more important, how can one explains such a behavior? If your matrices are not sparse, get more memory. If they are, help(sparseMatrix,package=Matrix) ?

Re: [R] Using optimize with array variables

2009-10-01 Thread Charles C. Berry
On Thu, 1 Oct 2009, Vik wrote: Hello, I am trying to figure out how to use optimize() with array variables as inputs. I have a for loop in the function definition: SS - function(int,slo,x,y){ for(i in 1:length(x)) ((int+slo*x[i])-y[i])^2-squares[i] sum(squares)-sum_squares output_txt = c (The

Re: [R] Looking for a better way to document my packages

2009-10-01 Thread baptiste auguie
Hi, I know of three options that resemble your query, - the roxygen package - a ruby script called weeder by Hadley Wikham - the inlinedocs package on r-forge I only ever used roxygen though, so i can't speak for the relative merits of the others. HTH, baptiste 2009/10/1 Steve Lianoglou

Re: [R] Unable to install lme4

2009-10-01 Thread jamesmcc
This is the first time I've encountered R having difficulty with package and R version compatibility. I cant believe no one has fixed generally so that your version of R can get the latest package appropriate to that version. How nice would that be? :) Anyway, I figured it out for my version

Re: [R] Normal distribution

2009-10-01 Thread Steve Lianoglou
Hi, I think you can also use a qq-plot to do the same, no? You won't get a statistic score + p.value, but perhaps you're more of a visual person? :-) -steve On Thu, Oct 1, 2009 at 12:56 PM, Richardson, Patrick patrick.richard...@vai.org wrote: ?shapiro.test -Original Message- From:

Re: [R] Normal distribution

2009-10-01 Thread Richardson, Patrick
I don't disagree. And to that end one could probably look at the skewness and kurtosis values as well. A combination of several techniques would probably be a good idea. Best regards, Patrick -Original Message- From: Steve Lianoglou [mailto:mailinglist.honey...@gmail.com] Sent:

Re: [R] Looking for a better way to document my packages

2009-10-01 Thread Steve Lianoglou
Ah, great! Thanks for the refs, I'll look into them. -steve On Thu, Oct 1, 2009 at 1:12 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Hi, I know of three options that resemble your query, - the roxygen package - a ruby script called weeder by Hadley Wikham - the inlinedocs

Re: [R] launching two RGUI computations from two different Excel workbooks

2009-10-01 Thread Erich Neuwirth
Please send questions like this to the rcom mailing list. You can subscribe at rcom.univie.ac.at. On Sep 28, 2009, at 1:34 PM, sowh...@o2.pl wrote: Hello, I have the following problem: I have excel workbooks connected with R through RExcel package. Data are being loaded from excel, then

Re: [R] Normal distribution

2009-10-01 Thread Peter Ehlers
Noela, Package nortest has 5 tests of normality. A word of caution: the wording of your question suggests that you believe that, if the test you use does not reject the normality hypothesis, you then have proof that your data come from a Normal distribution. That's *NOT* true. Normality will

Re: [R] Normal distribution

2009-10-01 Thread Peter Ehlers
Another interesting visual technique is given by the qreference() function in pkg:DAAG. I've used this type of display effectively with non-stats people as well as in teaching intro courses in stats. (I would randomize the location of the actual-data panel and not use a different colour. The

[R] caret package for time series applications

2009-10-01 Thread zubin
Hello, I have some time series applications, where i have a large set of X variables (hundreds) and thousands of time data points (sampling every minute). I like to use the caret package to support the analysis, variable selection and model selection. However, reading the documentation, it

  1   2   >