Re: [R] No CHM file

2009-06-03 Thread Duncan Murdoch
Rebecca Sela wrote: I just built a package in R (version 2.1.1 on a Linux machine) and then moved it to my computer (R version 2.8.1 on a Windows machine). When I loaded the package and tried to open help for one of the commands, I got the following warning: Warning message: In print.help_fi

Re: [R] Excel Export in a beauty way

2009-06-03 Thread Patrick Connolly
On Wed, 03-Jun-2009 at 08:54AM -0500, Marc Schwartz wrote: [...] > For example, using the Perl package that I do for the WriteXLS > package, it is not possible to use the "AutoFit" capability to > easily set all column widths wide enough to visually allow for the > data contained within each. Fro

[R] Using WinBUGS from R: A Multi-Way Array Problem

2009-06-03 Thread Khurram Nadeem
Please suggest a way out to the following problem. I have a T by n data matrix (say Y) where coulmns are time series of length T. To do some analysis in WinBUGS I need to construct my data as follows. yy<-rep(Y,k) ## this will be a vector Yk<-array(yy,dim=c(T,n,k)) ## data array Here the definit

Re: [R] Need help understanding output from aov and from anova

2009-06-03 Thread Steven McKinney
Hi Suman, What version of R are you running? In R 2.9.0 running your first example yields a warning Warning message: In anova.lm(lm(vtot ~ fac)) : ANOVA F-tests on an essentially perfect fit are unreliable so some adept R developer has taken the time to figure out how to warn you about suc

[R] About classifier in RWeka

2009-06-03 Thread Huihua Lu
Hi everyone, I have trouble to use RWeka, I tried: (w=weather dataset, all preditors are nominal) > m<-J48(play~., data=w) > e<-evaluate_Weka_classifier(m,cost = matrix(c(0,2,1,0), + ncol = 2),numFolds = 10, complexity = TRUE,seed = 123, + class = TRUE) it gives me exactly what I want, but whe

[R] Understanding R Hist() Results...

2009-06-03 Thread Jason Rupert
Think I'm missing something to understand what is going on with hist(...) http://n2.nabble.com/What-is-going-on-with-Histogram-Plots-td3022645.html For my example I count 7 unique years, however, on the histogram there only 6. It looks like the bin to the left of the tic mark on the x-axis rep

Re: [R] classification table in logistic regression

2009-06-03 Thread Frank E Harrell Jr
Carbajal, Armida J wrote: Prof. Harrell, My name is Armida Carbajal, I'm a graduate student intern at Sandia National Laboratories (SNL) and am conducting some research for my thesis project at the University of New Mexico in Statistics for SNL. My project entails a logistic regression and I

Re: [R] Return variable assignments from a function

2009-06-03 Thread Scott Hyde
As a followup to my question yesterday, what if I were to return the argument as a list, and then "unwrap" the list with the function I've written called "objects".  Is there any problems with doing it?  It works to use it inside other functions.  For example: = >

[R] about time

2009-06-03 Thread XinMeng
How to use R to modify the time when the file is created, and the time when the file is modified ? Thanks! My best. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] Finding cointegration relations in a VAR(1)

2009-06-03 Thread Severine . Gaille
Dear R people, I am trying to find the cointegration relations in a VAR(1). The ca.jo function conducts the Johansen procedure, but we have to specify at least 2 lags. How should I do if I want to include only one lag? Thank you very much for your help! Have a nice day, Severine Gaille ___

[R] what value I extract from result to get relationship of my data ?

2009-06-03 Thread yongkook Kwon
> summary(p1) Re-fitting to get Hessian Call: polr(formula = diosin_density.rp ~ intensity[, 1]) Coefficients: Value Std. Errort value intensity[, 1] -5429.317 9.498034e-06 -571625337 Intercepts: Value Std. Errort value 0|1 5.428000e-01 1.484000e-01 3

[R] classification table in logistic regression

2009-06-03 Thread Carbajal, Armida J
Prof. Harrell, My name is Armida Carbajal, I'm a graduate student intern at Sandia National Laboratories (SNL) and am conducting some research for my thesis project at the University of New Mexico in Statistics for SNL. My project entails a logistic regression and I wanted to create a classifi

Re: [R] Getting a column of values from a list - think I'm doing it the hard way

2009-06-03 Thread Marc Schwartz
On Jun 3, 2009, at 9:45 PM, Jason Rupert wrote: Example code it shown below. I think I am doing this the hard way. I'm just trying to get the full year value from an array of dates. An example array is shown below. Right now, I'm using a "for" loop to pull the year out of a list where

Re: [R] Getting a column of values from a list - think I'm doing it the hard way

2009-06-03 Thread Ronggui Huang
2009/6/4 Jason Rupert : > > Example code it shown below. > > I think I am doing this the hard way.  I'm just trying to get the full year > value from an array of dates.  An example array is shown below.  Right now, > I'm using a "for" loop to pull the year out of a list where the dates were > sp

[R] Getting a column of values from a list - think I'm doing it the hard way

2009-06-03 Thread Jason Rupert
Example code it shown below. I think I am doing this the hard way. I'm just trying to get the full year value from an array of dates. An example array is shown below. Right now, I'm using a "for" loop to pull the year out of a list where the dates were split up into their individual compone

Re: [R] R help

2009-06-03 Thread David Winsemius
We can get you a kde2d but you really want a kde5d? What sort of display are you proposing? -- David "Earthling" Winsemius On Jun 3, 2009, at 9:26 PM, arijit kumar debnath wrote: I want to fit a kernel density to a data-set of size 1000 and each data point being of dimension 5. The default de

[R] R help

2009-06-03 Thread arijit kumar debnath
I want to fit a kernel density to a data-set of size 1000 and each data point being of dimension 5. The default density function does'nt work for me. Is there any other function available which can do the job efficiently.? I don't have access to a very fast computer. __

Re: [R] Weighted Correlations

2009-06-03 Thread Mike Cheung
Dear Josu, How about cov.wt? Regards, Mike -- - Mike W.L. Cheung Phone: (65) 6516-3702 Department of Psychology Fax: (65) 6773-1843 National University of Singapore http://courses.nus.edu.sg/course/psycwlm/

Re: [R] Lattice(barchart) related query

2009-06-03 Thread Girish A.R.
Thanks a bunch, Coltrey! That works like a charm as well! In summary, the code that solves both my queries is shown below: --- mdat <- matrix(c (-2.65,-3.7,-0.8,-1.4,-2.39,-1.12,-4.78,-4.9,-0.76,-1.56, 1.77,1.41,1.92,1.78,0.05,0.96,0.29,

Re: [R] Newton method again

2009-06-03 Thread Roslina Zakaria
Hi Ravi, I did ask you some question regarding newton method sometime ago..  Now I have fixed the problem and I also wrote 2 looping code (ff1 and ff2) to evaluate the modified Bessel function of the first kind and call them in the newton code.  But I dont't understand why it gives the error mes

[R] Weighted Correlations

2009-06-03 Thread josue martinez
How can I calculate a weighted correlation between two variables in R? The command "cor" does not have a subcommand or option for weighting observations. Thanks! josu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] pass object to function by reference in R

2009-06-03 Thread Bert Gunter
Google on "R.oo" Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Waverley Sent: Wednesday, June 03, 2009 4:24 PM To: r-help; r-help@r-project.org Subject: [R] pass object to function b

[R] pass object to function by reference in R

2009-06-03 Thread Waverley
How? like that seen in C or C++. -- Waverley @ Palo Alto __ R-help@r-project.org 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

Re: [R] reference of object in R

2009-06-03 Thread Bert Gunter
Yes. Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Waverley Sent: Wednesday, June 03, 2009 4:03 PM To: r-help; r-help@r-project.org Subject: [R] reference of object in R Is there

[R] fitting polynomial, for integration.

2009-06-03 Thread Blaise Standish
Hello, I have a question regarding fitting a polynomial to a data set, then constructing a polynom from the coefficients so that I can integrate it. I first use lm to fit the polynomial setting the coefficients to raw=TRUE - this appears to work fine. I plot the model and it is a true represen

[R] reference of object in R

2009-06-03 Thread Waverley
Is there a way to pass an object by reference, like that seen in C, to a function in R? Thanks in advance! -- Waverley @ Palo Alto __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

Re: [R] Select cases of data.frame based on a long index

2009-06-03 Thread David Winsemius
On Jun 3, 2009, at 6:21 PM, tsunhin wong wrote: Dear R users, I know how to select a subset of a data.frame or a matrix by setting some criteria, but this time, I have a long index of cases not really related to 1 or 2 criteria. And I cannot find a simple way to select cases from another data.

[R] Need help understanding output from aov and from anova

2009-06-03 Thread Suman Sundaresh
Hi all, I noticed something strange when I ran aov and anova. vtot=c(7.29917, 7.29917, 7.29917) #identical values fac=as.factor(c(1,1,2)) #group 1 has first two elements, group 2 has the 3rd element When I run: > anova(lm(vtot~fac)) Analysis of Variance Table Response: vtot Df

Re: [R] Select cases of data.frame based on a long index

2009-06-03 Thread Bert Gunter
?"%in%" Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of tsunhin wong Sent: Wednesday, June 03, 2009 3:21 PM To: r-help@r-project.org Subject: [R] Select cases of data.frame based on a

[R] Select cases of data.frame based on a long index

2009-06-03 Thread tsunhin wong
Dear R users, I know how to select a subset of a data.frame or a matrix by setting some criteria, but this time, I have a long index of cases not really related to 1 or 2 criteria. And I cannot find a simple way to select cases from another data.frame based on this index (sublst in this example).

Re: [R] problem with uniroot

2009-06-03 Thread Ben Bolker
daniele riggi wrote: > > Hi R-users,I'm trying to solve a non linear equation, to find the degrees > of > freedom of a mixture of t student. I'm sure i wrote the minimization > equation in the right way, but when i try to run the EM algorithm to > estimate the parameters of the mixture, the fol

[R] Revolutions blog: May roundup

2009-06-03 Thread David M Smith
I write about R every weekday at http://blog.revolution-computing.com . In case you missed them, here are some articles from last month of particular interest to R users. Some of the best stories this month came from reader tips -- thanks, and please keep the emails coming in! http://bit.ly/19T3Hj

Re: [R] Create a time interval from a single time variable

2009-06-03 Thread David Winsemius
On Jun 3, 2009, at 3:58 PM, David Winsemius wrote: Not sure how to functionalize it either. What seemed promising (assuming it has first been sorted by ID and DaysEnrolled) would be three-step process: sample1$Stop <- c(sample1[2:nrow(sample1),"DaysEnrolled"],NA) # shift the DaysEnroll

Re: [R] Create a time interval from a single time variable

2009-06-03 Thread David Winsemius
Not sure how to functionalize it either. What seemed promising (assuming it has first been sorted by ID and DaysEnrolled) would be three-step process: sample1$Stop <- c(sample1[2:nrow(sample1),"DaysEnrolled"],NA) # shift the DaysEnrolled sample1$next.id <- c(sample1[2:nrow(sample1),"ID"]

Re: [R] How to convert blanks to NA

2009-06-03 Thread Hans-Peter Suter
2009/6/2 Mark Na : > library(xlsReadWrite) > data <- read.xls(data,colClasses=c("character")) > > and this results in all of the empty (blank) cells in the imported > Excel file also being empty (blank) in the resulting dataframe. The pro version has an 'naStrings' argument. But this is something

Re: [R] Function in R for computing correlation matrix and covariancematrix

2009-06-03 Thread Bert Gunter
?ar ?arima help.search("autoregressive") Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of FMH Sent: Wednesday, June 03, 2009 12:31 PM To: r-help@r-project.org Subject: [R] Function in

[R] Function in R for computing correlation matrix and covariance matrix

2009-06-03 Thread FMH
Hi, At present, i have two distinct and real values for the coefficient, which is   required in AR(2) model. Based on my revision, for distinct and real values of the coefficients in AR(2) model, the correlation structure separated by lag h can be computed by p(h) = a*z1^(-h) + b*z2^(h), where p

Re: [R] contrasts

2009-06-03 Thread Ted Harding
On 03-Jun-09 17:50:38, Ricardo Arias Brito wrote: > Hi all, > I want t use a contrasts in adjusted regression (lm()) for a factor > with four levels, compared the coefficients first with second, first > with third, ..., third with fourth. > Someone can help with a contrast matrix to be used. I trie

Re: [R] Lattice(barchart) related query

2009-06-03 Thread Coltrey Mather
No problem. Sorry I ignored your font question, I have no personal experience, but this may help: https://stat.ethz.ch/pipermail/r-help/2009-April/196745.html On Wed, Jun 3, 2009 at 10:17, Girish A.R. wrote: > Thanks, Coltrey! Option 1 is what I was looking for. > > -Girish > > On Jun 3, 8:05 pm

Re: [R] contrasts

2009-06-03 Thread Greg Snow
Here is one way: y <- rnorm(50) x <- cut(rnorm(50, mean=y, sd=0.25),c(-3,-1.5,0,1.5,3)) a <- rbind( int=c(1,0,0,0), ab=c(-1,1,0,0), ac=c(-1,0,1,0), cd=c(0,0,-1,1) ) ai <- zapsmall(solve(a)) contrasts(x) <- ai[,-1] reg <- lm(y ~ x, na.action=na.omit) # check tmp <- tapply( y, x, mean ) (tmp2

[R] Create a time interval from a single time variable

2009-06-03 Thread Katschke, Adrian R
I am trying to set up a data set for a survival analysis with time-varying covariates. The data is already in a long format, but does not have a variable to signify the stopping point for the interval. The variable DaysEnrolled is the variable I would like to use to form this interval. This is w

[R] No CHM file

2009-06-03 Thread Rebecca Sela
I just built a package in R (version 2.1.1 on a Linux machine) and then moved it to my computer (R version 2.8.1 on a Windows machine). When I loaded the package and tried to open help for one of the commands, I got the following warning: Warning message: In print.help_files_with_topic("F:/R/R

[R] contrasts

2009-06-03 Thread Ricardo Arias Brito
Hi all, I want t use a contrasts in adjusted regression (lm()) for a factor with four levels, compared the coefficients first with second, first with third, ..., third with fourth. Someone can help with a contrast matrix to be used. I tried and not yet I obtained. Say: y <- rnorm(50) x <- cu

Re: [R] Multiple active graphic windows

2009-06-03 Thread Barry Rowlingson
On Wed, Jun 3, 2009 at 6:05 PM, Virgil Stokes wrote: > I am rather new to the R-language and have been testing some code using R > vers. 2.8.1 (2008-12-22) on a Windows Vista platform. > This is an impressive language. However, I have not been able to solve what > is probably a rather simple probl

[R] Multiple active graphic windows

2009-06-03 Thread Virgil Stokes
I am rather new to the R-language and have been testing some code using R vers. 2.8.1 (2008-12-22) on a Windows Vista platform. This is an impressive language. However, I have not been able to solve what is probably a rather simple problem with RGui. If I give two or more consecutive plot comma

[R] Using constrOptim() function

2009-06-03 Thread Ali Mahani
I have a function myFunction(beta,x) where beta is a vector of coefficients and x is a data frame (think of it as a matrix). I want to optimize the function myFunction() by ONLY changing beta, i.e. x stays constant, with 4 constraints. I have the following code (with a separate source file for the

[R] Create a time interval from a single time variable

2009-06-03 Thread Katschke, Adrian R
I am trying to set up a data set for a survival analysis with time-varying covariates. The data is already in a long format, but does not have a variable to signify the stopping point for the interval. The variable DaysEnrolled is the variable I would like to use to form this interval. This is w

Re: [R] Return variable assignments from a function

2009-06-03 Thread Greg Snow
For your last question, the function 10 needs to be defined inside of function nine (lexical scoping), something like: nine <- function(a) { ten <- function(d) { b <<- 10 print(paste("(ten) b=",b)) print(paste("(ten) d=",d)) d } b <- 9 ten(a) print(paste("(nine) b=",b)

[R] Treated - KernSmooth pckg - dpik function gives numeric(0) for kernel="epanech"

2009-06-03 Thread Ondrej Vozar
Epanechnikov kernel works if option canonical=TRUE, however it would be good to know why it does not for for canonical=FALSE (default). Sorry for craetaing maybe useless thread. Best regards, Ondra. [[alternative HTML version deleted]] __ R-he

Re: [R] Wiring or Arduino package/scripts

2009-06-03 Thread Warren Young
Jorge Cornejo wrote: Hi, I am looking any way to communicant with Arduino (http://www.arduino.cc/) Wiring (http://www.wiring.org.co) boards and read data generate with sensor on these. On Linux you can simply open the file /dev/ttyS0 in read/write mode to talk on the first serial port on the

[R] R on Windows Server

2009-06-03 Thread Lensing, Shelly Y
We are starting the process for purchasing a server with Windows Server 2008 OS. We are mainly interested in storage for multiple users, but would like to have the capability to run R simulations on the server. Are there any issues we should be aware of for installing R on the server or with hav

Re: [R] big databases

2009-06-03 Thread Pseudo Phobic
Dear Uwe, Sorry for responding so late and thank you for your answer. I solved my problem by using another software. However my OS runs on Windows, with 3.24 GB RAM and my R version is the 2.9 version (but it was the same with 2.8). So if I understand well, it all has to do with RAM. Best 2009/

Re: [R] Abort run

2009-06-03 Thread Ronggui Huang
It depends on the OS you use. For windows user, the ESC key or "stop all computation" in the menu are the options. Ronggui 2009/6/3 Ali Mahani : > > How can I abort running a script if I determine it's taking too long? > Currently, I simply close the R window and re-open it. Thank you! > -- > Vie

Re: [R] problem with uniroot

2009-06-03 Thread Ravi Varadhan
Can you send a minimal, reproducible code so that we can try to help you? Ravi. --- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns

Re: [R] Table of Summaries

2009-06-03 Thread sedm1000
Thanks for all your help guys - turns out it was a very simple request, table1<-table(DF$COLUMN1,DF$COLUMN2) did the trick. I've much to learn... Cheers. sedm1000 wrote: > > Apologies for the novice question, but this is likely beyond my google > searching range.. > > I am trying to creat

Re: [R] Nested variables

2009-06-03 Thread DanielWC
>>What happens if you do something like the following? >>zeroinfl(Visitation ~ Sps*Habitat/Site - Sps:Habitat:Site, data = data1) >>zeroinfl(Visitation ~ Sps*Habitat/Site - Sps - Sps:Habitat:Site, data = data1) It seems to be working. Heres the model: nes3<-zeroinfl(Visitation ~ Sps + TP + R

[R] problem with uniroot

2009-06-03 Thread daniele riggi
Hi R-users,I'm trying to solve a non linear equation, to find the degrees of freedom of a mixture of t student. I'm sure i wrote the minimization equation in the right way, but when i try to run the EM algorithm to estimate the parameters of the mixture, the following error will appear: Error in u

[R] Abort run

2009-06-03 Thread Ali Mahani
How can I abort running a script if I determine it's taking too long? Currently, I simply close the R window and re-open it. Thank you! -- View this message in context: http://www.nabble.com/Abort-run-tp23852410p23852410.html Sent from the R help mailing list archive at Nabble.com.

[R] problem with uniroot

2009-06-03 Thread daniele riggi
Hi R-users,I'm trying to solve a non linear equation, to find the degrees of freedom of a mixture of t student. I'm sure i wrote the minimization equation in the right way, but when i try to run the EM algorithm to estimate the parameters of the mixture, the following error will appear: Error in u

[R] possible overloading of interaction.plot ???

2009-06-03 Thread Thomas Roth (geb. Kaliwe)
Dear Members, i have defined a S4-class and a function for that class wich is to be called interaction.plot. Problem: interaction.plot already exists so setMethod(f = "interaction.plot", signature = "myClass", definition = function(x){ invisible() }) Fehler in conformMethod(signature, mn

Re: [R] Regular expression \ String Extraction help

2009-06-03 Thread Greg Snow
Ted, Try using paste with the collapse argument. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Ted Harding

Re: [R] Lattice(barchart) related query

2009-06-03 Thread Girish A.R.
Thanks, Coltrey! Option 1 is what I was looking for. -Girish On Jun 3, 8:05 pm, Coltrey Mather wrote: > barchart(mdat, >         groups=FALSE, >         layout=c(2,5), >         aspect=0.7, >         reference=FALSE, >         as.table=TRUE, >         main=list("Maintitle",cex=1), >         pane

Re: [R] Lattice(barchart) related query

2009-06-03 Thread Coltrey Mather
barchart(mdat, groups=FALSE, layout=c(2,5), aspect=0.7, reference=FALSE, as.table=TRUE, main=list("Maintitle",cex=1), panel=function(x, y, ...) { colours <- character() colours[x < 0] <- 'red' co

Re: [R] SSOAP failing

2009-06-03 Thread Duncan Temple Lang
Olivier Cailloux wrote: Dear list, I am trying to use the SSOAP package to access a very simple SOAP service, included as a demonstrator in the axis2 Apache package: "Version" (takes no input parameters and should return a string with the version number). The web service itself seems to be

Re: [R] Nested variables

2009-06-03 Thread Mark Difford
Hi Daniel, >> It now only displays Habitat and not Site which it take is because Site >> has been nested within >> Habitat (?). No. Start with a simple model and look at the coefficients. That way you will be able to match the model you want to its symbolic representation. Then built it up (do

Re: [R] Lattice(barchart) related query

2009-06-03 Thread David Winsemius
On Jun 3, 2009, at 9:56 AM, Girish A.R. wrote: Hi, I have been recently experimenting with the lattice package, which I must admit is just great! However, I'm sort of stuck in modifying certain parameters; Would appreciate some pointers on a couple of things: 1) Is it possible to change the f

[R] legend problem

2009-06-03 Thread Felipe Carrillo
Hi: See the attached pdf graphic. The legend overlaps a little bit with the strip. Is there a way to move it over half a cm? Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA Europe.pdf Description: Adobe PDF d

[R] Import ARIMA-GARCH coefficients

2009-06-03 Thread Daniel Mail
Hello, I am modelling a Time Serie with ARIMA-GARCH and i have already determined the coefficients ( ARIMA and GARCH) with other software. Now I am trying to do the forecast in R, but i don't know how i can import the coefficients. I will be very pleased if someone help me. Daniel

Re: [R] Regular expression \ String Extraction help

2009-06-03 Thread Gabor Grothendieck
That should be: > sub("(-..-.. ...)( *)(.*)( *)([^0-9]+)([0-9]+).txt", > "C:test\\3\\4\\5\\1 \\3\\5\\6.txt", txt) [1] "C:\\test\\Foo\\2009-04-10 1400 Fri Foo1.txt" [2] "C:\\test\\Universities\\2009-04-10 1400 Fri Universities2.txt" [3] "C:\\test\\Hitchhikers Guide To The Gala

Re: [R] Regular expression \ String Extraction help

2009-06-03 Thread Gabor Grothendieck
With txt <- c("2009-04-10 1400 Fri Foo1.txt", "2009-04-10 1400 Fri Universities2.txt", "2009-04-10 1400 Fri Hitchhikers Guide To The Galaxy42.txt") # Try this line: > sub("(.*) ([^0-9]+)([0-9]+).txt", "C:test\\2\\1 \\2\\3.txt", txt) [1] "C:\\test\\Foo\\2009-04-10 1400 Fri Foo1.txt" [

[R] Lattice(barchart) related query

2009-06-03 Thread Girish A.R.
Hi, I have been recently experimenting with the lattice package, which I must admit is just great! However, I'm sort of stuck in modifying certain parameters; Would appreciate some pointers on a couple of things: 1) Is it possible to change the font of the labels (say to computer modern) -- eith

[R] KernSmooth pckg - dpik function gives numeric(0) for kernel="epanech"

2009-06-03 Thread Ondrej Vozar
Dear colleagues, I have encountered following problem in R 2.9.0 and KernSmooth pckg v. 22.23-1. If I tried to choose to estimate bandwith for kernel density estimate with Epanechnikov filtr, I got result numeric(0). I used both scalest options with the same results However for the remaing kern

Re: [R] Regular expression \ String Extraction help

2009-06-03 Thread Ted Harding
On 03-Jun-09 11:34:16, Tony Breyal wrote: > Dear all, > Is there a good way of doing the following conversion: > > []-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention] > > to become > > C:\test\[Name]\[]-[MM]-[DD] [Time] [Day]\[]-[MM]-[DD] [Time] > [Day] [Name][Integer].[Extention]

Re: [R] Excel Export in a beauty way

2009-06-03 Thread Gabor Grothendieck
If you are willing to do the work RDCOMClient or rcom packages give you complete control. See example here: https://stat.ethz.ch/pipermail/r-help/2005-July/075877.html This assumes your platform is Windows and that you have R and Excel on the same machine so that R can control Excel. On Wed, Jun

Re: [R] Excel Export in a beauty way

2009-06-03 Thread Marc Schwartz
Hi, I would just add, for myself, not for others who have developed R to Excel export packages, that the efficient export of data from R to a native Excel file is the priority. Formatting (columns, fonts, colors, etc.) in the resultant spreadsheets (for me) was not. There are also some fu

Re: [R] strsplit for multiple columns

2009-06-03 Thread Henrique Dallazuanna
Try this: do.call(cbind, lapply(a[2:ncol(a)], function(x)do.call(rbind, strsplit(as.character(x), '' On Wed, Jun 3, 2009 at 10:39 AM, Duijvesteijn, Naomi < naomi.duijveste...@ipg.nl> wrote: > > Hi, > > > I am trying to split multiple columns. One column works just fine, but I > want to

Re: [R] Arc/Info Ungenerate - shp - Maps

2009-06-03 Thread Barry Rowlingson
On Wed, Jun 3, 2009 at 1:17 PM, Rodrigo Aluizio wrote: > Hi list. > > I would like to know if someone had already successfully loaded and Arc/Info > Ungenerated (.dat – extracted from > http://rimmer.ngdc.noaa.gov/mgg/coast/getcoast.html) file on R. I’m able to > do so with shape files using mapto

[R] strsplit for multiple columns

2009-06-03 Thread Duijvesteijn, Naomi
Hi, I am trying to split multiple columns. One column works just fine, but I want to do it for multiple columns… Example > a ID V2 V3 V4 V5 V6 V7 V8 V9 V10 1 PBBA0644 -- GG AA -- AA -- AA GG GG 2 PBBA1010 -- GG AA -- AA -- AA GG GG 3 0127ATPR -- GG AA -- AA

Re: [R] Table of Summaries

2009-06-03 Thread David Winsemius
On Jun 2, 2009, at 11:01 PM, milton ruser wrote: Hi there, It is not so many ellegant, but can works. df<-read.table(stdin(), head=T, sep=",") Name,Fraction Harry,335/335 Harry,124/506 Harry,124/506 Dick,133 Tom,335/335 Tom,335/335 At this point one could simply used: > table(df) F

Re: [R] bigmemory - extracting submatrix from big.matrix object

2009-06-03 Thread Jay Emerson
Utkarsh, Thanks again for the feedback and suggestions on bigmemory. A follow-up on counting NAs: we have exposed a new function colna() to the user in upcoming release 3.7. Of course mwhich() can still be helpful. As for the last topic -- applying any function to columns of a big.matrix object

Re: [R] Excel Export in a beauty way

2009-06-03 Thread Erich Neuwirth
If you are working on Windows and Excel installed on the same machine as R, the rcom library by Thomas Baier gives you full programmability for Excel From R. You can control all the effect you want. You also could use the RExcel addin for Excel which allows to transfer date from R into Excel

[R] Arc/Info Ungenerate - shp - Maps

2009-06-03 Thread Rodrigo Aluizio
Hi Ruser, I tried that to use the Import71 tool, which is capable of convert e00 to shp, but the only thing I got was an error. Thank you any way for the try. Rodrigo De: milton ruser [mailto:milton.ru...@gmail.com] Enviada em: quarta-feira, 3 de junho de 2009 09:25 Para: Rodrigo Alui

[R] Regular expression \ String Extraction help

2009-06-03 Thread Tony Breyal
Dear all, Is there a good way of doing the following conversion: []-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention] to become C:\test\[Name]\[]-[MM]-[DD] [Time] [Day]\[]-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention] i.e. these 2009-04-10 1400 Fri Foo1.txt 2009-04-10 1400 F

[R] Excel Export in a beauty way

2009-06-03 Thread koj
Hallo all, I`ve read a lot of things in this forum about an Excel export via R. It is no problem to export my data frames via write.table or write.xls (xls or csv), but some things are not very convenient for me: I always have to adjust the column with to see all the numbers or the text and there

[R] Problems with conditional importFrom in NAMESPACE

2009-06-03 Thread Jon Olav Skoien
Hi, I am currently involved in the development of two R-packages, pkg1 and pkg2. They should not be dependent on each other, as most users will only be interested in one of them. Still, I want pkg2 to provide one extra S3 method for three functions (fun1-3) in pkg1 for objects of a class def

[R] Arc/Info Ungenerate - shp - Maps

2009-06-03 Thread Rodrigo Aluizio
Hi list. I would like to know if someone had already successfully loaded and Arc/Info Ungenerated (.dat – extracted from http://rimmer.ngdc.noaa.gov/mgg/coast/getcoast.html) file on R. I’m able to do so with shape files using maptools functions, but these ungenerated data are making me crazy. I d

Re: [R] code for double sum

2009-06-03 Thread Philipp Pagel
On Wed, Jun 03, 2009 at 03:02:26AM -0700, Roslina Zakaria wrote: > Hi R-users, > ? > I wrote a code to evaluate double sum as follows: > ? > ff2 <- function(bb,eta,z,k) > { r <- length(z) > for (i in 1:r) > { sm1 <- > sum((z[i]*bb/2)*(psigamma((0:k)+eta+1,deriv=0)/(factorial(0:k)*gamma((0:k)+eta

Re: [R] code for double sum

2009-06-03 Thread Jim Lemon
Roslina Zakaria wrote: Hi R-users, I wrote a code to evaluate double sum as follows: ff2 <- function(bb,eta,z,k) { r <- length(z) for (i in 1:r) { sm1 <- sum((z[i]*bb/2)*(psigamma((0:k)+eta+1,deriv=0)/(factorial(0:k)*gamma((0:k)+eta+1 sm2 <- sum((besselI(z[i]*bb,eta)*log(z[i]*bb/2) -

[R] SSOAP failing

2009-06-03 Thread Olivier Cailloux
Dear list, I am trying to use the SSOAP package to access a very simple SOAP service, included as a demonstrator in the axis2 Apache package: "Version" (takes no input parameters and should return a string with the version number). The web service itself seems to be working as I could access

[R] code for double sum

2009-06-03 Thread Roslina Zakaria
Hi R-users,   I wrote a code to evaluate double sum as follows:   ff2 <- function(bb,eta,z,k) { r <- length(z) for (i in 1:r) { sm1 <- sum((z[i]*bb/2)*(psigamma((0:k)+eta+1,deriv=0)/(factorial(0:k)*gamma((0:k)+eta+1  sm2 <- sum((besselI(z[i]*bb,eta)*log(z[i]*bb/2) - sm1)/besselI(z[i]*bb,eta)

Re: [R] Most used R editors

2009-06-03 Thread Hans-Peter Suter
>> I am a little lonely as R users in my group. So, I would like to know which >> editor is the most used in the R community. I think Emacs+ESS is most used and the most capable (if you are willing to invest the time to learn it properly). Personally I mostly use TextMate with the R bundle (or R

Re: [R] how can I ordinal regression??

2009-06-03 Thread Gerard M. Keogh
Here's some code to implement the cheese data table using the proportinal odds model given in Generalised Linear Models by McCullagh & Nelder (Ch5). You will have to adapt this to handle your case data - but i'll give you something to go on. cheese library(MASS) options(contrasts =

Re: [R] Validity of Pearson's Chi-Square for Large Tables

2009-06-03 Thread Gerard M. Keogh
Hi, didn't get your name. For large tables (5 X 5) or bigger the dist of the log of the cross product ratios tends to normality. there are (nC2)**2/2 of these (200 in a 5X5 table. The chi-sq test for independence fits a main effects loglinear model to the table and this can be expressed in terms o

Re: [R] Question on implementing RandomForest

2009-06-03 Thread Allan Engelhardt
To get the prediction in the database see help("predict.randomForest"). This will allow you to score the existing data: you then export the scores to the database using "RODBC" or similar package. This is what most people mean when the say they want to get the model into the database. If you

[R] Odp: What do you think about my function?

2009-06-03 Thread Petr PIKAL
Hi without knowing what the function does and without some fake data available it is almost impossible to do evaluation. Few comments you apply some function to all rows of data frame hence think about apply instead for cycle you check NA values, try to look at complete cases your NA check in

Re: [R] how can I ordinal regression??

2009-06-03 Thread Gavin Simpson
On Wed, 2009-06-03 at 16:10 +0900, yongkook Kwon wrote: > What function and package I use to conduct ordinal regression?? library(MASS) # comes with R ?polr G > > My data is composed 2colums and 180rows. > > The first colum indicate level of mass and second colum is intensity. > > So, I want

[R] how can I ordinal regression??

2009-06-03 Thread yongkook Kwon
What function and package I use to conduct ordinal regression?? My data is composed 2colums and 180rows. The first colum indicate level of mass and second colum is intensity. So, I want to calculate how much intensity are related mass. [[alternative HTML version deleted]] _

Re: [R] Most used R editors

2009-06-03 Thread Coen van Hasselt
Here also a Eclipse + StatET user. I like the way you can manage different projects and keep your scripts and auxiliary files organized from within Eclipse, and also functionality such as revisions, tasks etc. On Tue, Jun 2, 2009 at 17:06, Martial Sankar wrote: > > Hi, > > I am a little lonely as

Re: [R] bigmemory - extracting submatrix from big.matrix object

2009-06-03 Thread utkarshsinghal
Thanks for the really valuable inputs, developing the package and updating it regularly. I will be glad if I can contribute in any way. In problem three, however, I am interested in knowing a generic way to apply any function on columns of a big.matrix object (obviously without loading the dat

Re: [R] FW: R.dll Reg.,

2009-06-03 Thread Linlin Yan
What's wrong with the copyright? And how could that trouble your linking? On Wed, Jun 3, 2009 at 2:53 PM, RamaR Guru wrote: > > From: techzone2...@hotmail.com > To: r-h...@stat.math.ethz.ch; r-help-requ...@stat.math.ethz.ch > Subject: R.dll Reg., > Date: Wed, 3 Jun 2009 11:57:52 +0530 > > Sir, >

  1   2   >