Re: [R] GUI

2012-01-18 Thread Milan Bouchet-Valat
Le mercredi 18 janvier 2012 à 06:11 -0800, Scott Raynaud a écrit : > I'm setting up a Linux box to run R. I ususally run in a Windows > envrionment but after > reading the docs I'm not sure what to expect in terms of the front end > appearance in > Linux. Does it resemble Windows or will I need

Re: [R] Error in variable ' _' converted to a factor AND *tmp*

2012-01-18 Thread Milan Bouchet-Valat
Le mardi 17 janvier 2012 à 23:56 -0800, Jhope a écrit : > I am wondering if anyone can tell me what the error I'm receiving means > below. I thought it said that Aeventexhumed should be converted to a factor, > so I tried to do so and received the following error. > > Please advise. J > -

Re: [R] dbWriteTable(con, access_log, overwrite = F).....

2012-01-16 Thread Milan Bouchet-Valat
Le lundi 16 janvier 2012 à 14:14 +0100, Poul Kristensen a écrit : > I am new to R. > > My goal is to make a crosstable from a Apache access.log, which I want > to load into PostgreSQL database at first to > learn more abour R and DBI and datatypes. When the I have got the > access.log in the datab

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le lundi 16 janvier 2012 à 13:07 +0100, Julien Velcin a écrit : > Ok but unfortunately JGR doesn't work when run as root! I think this > is because the packages needed (e.g., rWeka) are installed locally > (for the user). The installation "at system level (in R framework)" > fails: > > "Curr

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le lundi 16 janvier 2012 à 11:27 +0100, Julien Velcin a écrit : > I had already seen this post. If I'm logged as root (it is possible > under macosx), here is the result: > > * First run: > > > reuters <- tm_map(reuters, stemDocument) > Error in .jnew(name) : >java.lang.InternalError: Can'

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le dimanche 15 janvier 2012 à 23:06 +0100, Julien Velcin a écrit : > I use the version 1.6: > > $ java -version > java version "1.6.0_26" OK, so nothing wrong on that side. FWIW, I've found another person with the same problem: https://list.scms.waikato.ac.nz/pipermail/wekalist/2010-June/048895.h

Re: [R] ggExtra package installation fails

2012-01-15 Thread Milan Bouchet-Valat
Le dimanche 15 janvier 2012 à 15:43 -0600, Tengfei Yin a écrit : > Hi dear all, > > I cannot find ggExtra source code or install it by > > install.packages("ggExtra", repos="http://R-Forge.R-project.org";) This package has been removed, it's been marked as deprecated by its author: http://groups.

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-15 Thread Milan Bouchet-Valat
Le vendredi 13 janvier 2012 à 15:49 +0100, Julien Velcin a écrit : > Dear all, > > I have some troubles using the stemming algorithm provided by the tm > (text mining) + Snowball packages. > Here is my config: > > MacOS 10.5 > R 2.12.0 / R 2.13.1 / R 2.14.1 (I have tried several versions) > >

Re: [R] tm package, custom reader

2012-01-14 Thread Milan Bouchet-Valat
Le vendredi 13 janvier 2012 à 09:00 -0800, pl.r...@gmail.com a écrit : > I need help with creating custom xml reader for use with the tm package. The > objective is to crate a corpus for analysis. Files that I'm working with > come from solr and are in a funky XML format never the less I'm able t

Re: [R] how to remove an element from list or character

2012-01-06 Thread Milan Bouchet-Valat
Le jeudi 05 janvier 2012 à 23:52 -0800, arunkumar a écrit : > HI > > I want to remove an element from a list or character. i can any of the class > type > > like > > cat= [1] "mac" "med" > > if my input is 2 i need to remove med and if my input is one i need to > remove mac from cat This

Re: [R] selection part of "subset"

2012-01-05 Thread Milan Bouchet-Valat
Le jeudi 05 janvier 2012 à 16:51 +0100, Christof Kluß a écrit : > Hi > > I want to do something like > > a <- c(10,20,15,43,76,41,25,46) > tab <- data.frame(a) > > name <- "a" > > for (v in unique(tab[[name]])) { > r <- subset(tab, name==v) # this does not work > ... > } > > i.e. a "stri

Re: [R] RODBC installation: error message

2012-01-04 Thread Milan Bouchet-Valat
Le mardi 03 janvier 2012 à 11:39 -0800, gregory benison a écrit : > If one attempts to install RODBC (via install.packages('RODBC')) > without having an ODBC driver installed, this error message results: > > checking sqlext.h presence... no > checking for sqlext.h... no > configure: error: "ODBC h

Re: [R] Using a mathematical expression in sapply() XXXX

2012-01-04 Thread Milan Bouchet-Valat
Le mercredi 04 janvier 2012 à 08:41 -0500, Dan Abner a écrit : > Hello everyone, > > I have the following call to sapply() and error message. Is the most > efficient way to deal with this to make sum(!is.na(x)) a function in a > separate line prior to this call? If not, please advise. > > N.Valid

Re: [R] Extract concordance from coxph.object

2012-01-04 Thread Milan Bouchet-Valat
Le mercredi 04 janvier 2012 à 09:27 +, Bonnett, Laura a écrit : > Dear all, > > As I said in my previous email I have just upgraded to R 2.14.0 on Windows 7. > I have just run the 'coxph' function and notice that a Concordance statistic > is produced. Is there any way to extract this infor

Re: [R] R 2.14.0 Design library

2012-01-04 Thread Milan Bouchet-Valat
Le mercredi 04 janvier 2012 à 09:04 +, Bonnett, Laura a écrit : > Dear all, > > I have recently upgraded to R 2.14.0 with Windows 7. I wish to use > the command 'cph' but the Design library is no longer on the list of > installable packages. How can I install Design so that I may use the > '

Re: [R] Calculate survival function for AFT model

2011-12-30 Thread Milan Bouchet-Valat
Le vendredi 30 décembre 2011 à 12:46 -0800, thebennjammin a écrit : > I have fit an accelerated failure time model using coxph, and have what seems > to be a simple question that I can't figure out. Please specify the exact package, functions and actual code you use. coxph(), as the name says, ru

Re: [R] Extract BIC for coxph

2011-12-20 Thread Milan Bouchet-Valat
Le mardi 20 décembre 2011 à 11:11 +0100, Michael Haenlein a écrit : > Dear all, > > is there a function similar to extractAIC based on which I can extract the > BIC (Bayesian Information Criterion) of a coxph model? > I found some functions that provide BIC in other packages, but none of them > se

Re: [R] MAximum location

2011-12-15 Thread Milan Bouchet-Valat
Le jeudi 15 décembre 2011 à 21:15 +0100, Trying To learn again a écrit : > Hi all, > > I have a matrix > a<-c(2,3,4,Inf) > > > b<-as.matrix(a) > [,1] > [1,]2 > [2,]3 > [3,]4 > [4,] Inf > > > range(b, finite=TRUE)[2] (this is the maximum) > [1] 4 > > There is a pre-def function

Re: [R] how to view/edit large matrix/array in R?

2011-12-06 Thread Milan Bouchet-Valat
Le lundi 05 décembre 2011 à 19:01 -0600, Michael a écrit : > head, tail and fix commands don't really work well if I have large > matrix/array for which I would like to be able to scroll up and dow, left > and right ... > > Could anybody please help me? RKWard has a good data editor, and you can o

Re: [R] "Non-finite finite-difference value" error in eha's aftreg

2011-12-01 Thread Milan Bouchet-Valat
Le mercredi 30 novembre 2011 à 18:41 +0100, Göran Broström a écrit : > On Wed, Nov 16, 2011 at 3:06 PM, Milan Bouchet-Valat > wrote: > Hi list! > > > I'm getting an error message when trying to fit an accelerated > failure >

Re: [R] window manager interface commands for linux

2011-11-29 Thread Milan Bouchet-Valat
Le lundi 28 novembre 2011 à 12:07 +0100, Ana a écrit : > How can i replicate this in Linux: > source(file.choose()) > > > I've tried source(tkgetOpenFile()) but with no luck Try this instead (it works here): source(tclvalue(tkgetOpenFile())) Cheers __

Re: [R] Error: invalid type(list) for variable when using lm()

2011-11-25 Thread Milan Bouchet-Valat
Le vendredi 25 novembre 2011 à 00:02 -0800, Dhaynes a écrit : > Hello, > > I am new to R. > I have multidimensional array (379,2,3) and I need to create a series of > linear regressions (379 to be exact) > I have the array stored properly I believe, but I can not use the > lm(myarray[1,1,1:3]~myar

Re: [R] Filling a variable with unmentioned categories

2011-11-18 Thread Milan Bouchet-Valat
Le vendredi 18 novembre 2011 à 15:06 +, Mario Giesel a écrit : > Hello, list, > > I've been struggling with this task for a while looking for an efficient way > to solve it: > There are two variables 'price' and 'mentioned'. > I want to 'enlarge' data so that missing price points within the p

Re: [R] length of empty string

2011-11-18 Thread Milan Bouchet-Valat
Le vendredi 18 novembre 2011 à 16:09 +0100, Jaensch, Steffen [TIBBE] a écrit : > Hi all, > > Can somebody explain why length("") returns 1 and not 0? Probably because it contains one element, "". > How do I test if a given string is the empty string? a <- "" a == "" [1] TRUE Seems to be enough to

Re: [R] number of items to replace is not a multiple of replacement length

2011-11-18 Thread Milan Bouchet-Valat
Le vendredi 18 novembre 2011 à 04:45 -0800, Gyanendra Pokharel a écrit : > Hi all, following is my R -code and shows the error given below > > n <- 100 > > k<-2 > > x1 <-c(1, 3);x2 <- c(2,5) > > X <- matrix(c(0,0), nrow = 2, ncol = n) > > for(i in 1:k) > + X[i, ] <- mh1.epidemic(n,x1[i],x2[i]) > Er

Re: [R] merging corpora and metadata

2011-11-18 Thread Milan Bouchet-Valat
Le jeudi 17 novembre 2011 à 21:34 -0500, R. Michael Weylandt a écrit : > Hi Josh, > > You're absolutely right. I suppose one could set up some sort of S3 > thing for Henri's problem: > > c <- function(..., recursive = FALSE) UseMethod("c") > c.default <- base::c > c.corpus <- function(..., recurs

Re: [R] Getting unique colours

2011-11-17 Thread Milan Bouchet-Valat
Le mercredi 16 novembre 2011 à 20:02 -0800, Quercus a écrit : > Hey everyone, > > I am new to R, and I'm making a scatter plot graph where i have a bunch of > plots/points that fall into 9 unique categories. I want each category to > have a unique colour, however, with the coding I have (below),

Re: [R] changing date format in a dataframe

2011-11-16 Thread Milan Bouchet-Valat
Le mercredi 16 novembre 2011 à 06:12 -0800, arunkumar a écrit : > Hi > > I have a data frame and i need to change the date format in it. > my dataframe > > X Date > 1 1/1/2009 > 2 2/1/2009 > 3 3/1/2009 > > I need to change it to 2009-01-01 See ?as.Date. In your case, I think you should use

[R] "Non-finite finite-difference value" error in eha's aftreg

2011-11-16 Thread Milan Bouchet-Valat
Hi list! I'm getting an error message when trying to fit an accelerated failure time parametric model using the aftreg() function from package eha: > Error in optim(beta, Fmin, method = "BFGS", control = list(trace = > as.integer(printlevel)), : > non-finite finite-difference value [2] This

<    1   2   3