Re: [R] Comparing Latin characters with and without accents?

2014-11-30 Thread Milan Bouchet-Valat
Le dimanche 30 novembre 2014 à 02:14 -0800, Spencer Graves a écrit : > Hello: > > >How can one convert Latin characters with to the corresponding > characters without? For example, I want to convert "ú" to "u", similar > to how tolower('U') returns "u". > > >This can be done

Re: [R] No speed up using the parallel package and ncpus > 1 with boot() on linux machines

2015-10-17 Thread Milan Bouchet-Valat
Le samedi 17 octobre 2015 à 17:18 +0100, Chris Evans a écrit : > I think I am failing to understand how boot() uses the parallel > package on linux machines, using R 3.2.2 on three different machines > with 2, 4 and 8 cores all results in a slow down if I use "multicore" > and "ncpus". Here's the

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
Le lundi 28 mars 2016 à 19:16 +0530, Sunny Singha a écrit : > Hi, > I think I'm experiencing an issue regarding system Locale. I have > exported '.csv' formatted data frames gathered from various social > media platforms like facebook/twitter/G+, etc. > > I observe many variable/columns consists o

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
the text as UTF-8? > Above was for demonstration, I'm infact reading social media data > extracted, which ultimately is somewhere using httr package and > returning data frames. > I'm not sure how should I get it handled in Windows as I don't observe > this behavior in

Re: [R] problem about mean function in ffbase package

2013-08-02 Thread Milan Bouchet-Valat
Le jeudi 01 août 2013 à 00:10 +0800, Chaos Chen a écrit : > Hi all, > > I experienced some unmatched result using mean function in ffbase package > and cannot figure out what's wrong. > > I have a simulated ff vector with 10 numbers inside and want to > calculate its mean. But the results

Re: [R] problem about mean function in ffbase package

2013-08-02 Thread Milan Bouchet-Valat
Le jeudi 01 août 2013 à 00:10 +0800, Chaos Chen a écrit : > Hi all, > > I experienced some unmatched result using mean function in ffbase package > and cannot figure out what's wrong. > > I have a simulated ff vector with 10 numbers inside and want to > calculate its mean. But the result

Re: [R] Error in Corpus() in tm package

2013-08-17 Thread Milan Bouchet-Valat
Le vendredi 16 août 2013 à 19:35 -0700, Ajinkya Kale a écrit : > I am trying to use the text mining package ... I keep getting this error : > > rm(list=ls()) > library(tm) > sourceDir <- "Z:\\projectk_viz\\docs_to_index" > ovid <- Corpus(DirSource(sourceDir),readerControl = list(language = "lat"))

Re: [R] Error in Corpus() in tm package

2013-08-18 Thread Milan Bouchet-Valat
If it always fails, try with examples provided by tm, and then with parts of your documents. I don't think it makes sense to try to use VectorSource() as it would imply reimplementing DirSource(). Regards > On Sat, Aug 17, 2013 at 9:55 AM, Milan Bouchet-Valat > wrote: >

Re: [R] Error in Corpus() in tm package

2013-08-18 Thread Milan Bouchet-Valat
ould be nice to get a more explicit error message from tm if possible. Regards > > On Aug 18, 2013 9:01 AM, "Milan Bouchet-Valat" > wrote: > Le samedi 17 août 2013 à 11:16 -0700, Ajinkya Kale a écrit : > > It contains all text files which were conver

Re: [R] Non-ACSII characters in R on Windows

2013-09-16 Thread Milan Bouchet-Valat
Le vendredi 13 septembre 2013 à 23:38 +0400, Maxim Linchits a écrit : > This is a condensed version of the same question on stackexchange here: > http://stackoverflow.com/questions/18789330/r-on-windows-character-encoding-hell > If you've already stumbled upon it feel free to ignore. > > My proble

Re: [R] Non-ACSII characters in R on Windows

2013-09-16 Thread Milan Bouchet-Valat
Le lundi 16 septembre 2013 à 10:40 +0200, Milan Bouchet-Valat a écrit : > Le vendredi 13 septembre 2013 à 23:38 +0400, Maxim Linchits a écrit : > > This is a condensed version of the same question on stackexchange here: > > http://stackoverflow.com/questions/18789330/r-on-wi

Re: [R] Memory filling up while looping

2012-12-21 Thread Milan Bouchet-Valat
Le vendredi 21 décembre 2012 à 18:41 +0100, Peter Meißner a écrit : > Yeah, thanks, > I know: !DO NOT USE RBIND! ! > > But it does not help, although using a predefined list to store results > as suggested there, it does not help. > > The problems seems to stem from the XML-package and not from

Re: [R] tm: custom reader for readPlain

2013-01-08 Thread Milan Bouchet-Valat
Le mardi 08 janvier 2013 à 15:56 -0500, Simon Kiss a écrit : > Hello: > I have a series of newspaper articles from a Canadian newspaper > database (Canadian Newsstand) that look just like below. > > I've read through this vignette > (http://cran.r-project.org/web/packages/tm/vignettes/extensions.p

Re: [R] Problem with inconsolata font (again) --- on Fedora 17 this time.

2013-01-11 Thread Milan Bouchet-Valat
Le vendredi 11 janvier 2013 à 14:50 +1300, Rolf Turner a écrit : > Some while ago I posted a problem on this list concerning a failure of > R CMD check on one of my packages that resulted from LaTeX being > unable to find the "inconsolata" font. This was under the Ubuntu OS. > > This was solved,

Re: [R] A problem with X11 "headers/libs".

2013-01-11 Thread Milan Bouchet-Valat
Le vendredi 11 janvier 2013 à 22:45 +1300, Rolf Turner a écrit : > I am trying to build R-patched from source on a (newly installed) > Fedora 17 system on a new laptop. > > When I do the usual ./configure the procedure comes to a halt > with the error message: > > > configure: error: --with-x=yes

Re: [R] X11 plot window doesn't show graphic immediately

2013-01-13 Thread Milan Bouchet-Valat
Le samedi 12 janvier 2013 à 19:04 +0100, Alexander Engelhardt a écrit : > Hi r-help, > > I have a weird problem. When I plot anything, say plot(1:10), a plot > window opens but it's empty. It looks just like this: > > http://i.imgur.com/9uqO6.png > > I have to resize the window, either by click

Re: [R] dendrogram stops!

2013-01-16 Thread Milan Bouchet-Valat
Le mercredi 16 janvier 2013 à 07:29 +0200, Ibrahim Sobh a écrit : > Dear I am using the 'as.dendrogram' function from the 'stats' library > to convert from an hclust object to a dendrogram with a dataset of > size > ~3 (an example code is below). I need the dendrogram structure to > use the

Re: [R] Can not load Rcmdr

2013-01-16 Thread Milan Bouchet-Valat
Le mardi 15 janvier 2013 à 22:49 +, Esformes, Carley M. a écrit : > I am getting the error message: > > > > library(Rcmdr) > > Loading required package: car > > Loading required package: MASS > > Loading required package: nnet > > Error : .onAttach failed in attachNamespace() for 'Rcmdr',

Re: [R] R Tcl/Tk: How to put widgets in text widget?

2013-01-21 Thread Milan Bouchet-Valat
Le lundi 21 janvier 2013 à 10:32 +0100, Christoph Lange a écrit : > Dear all, > > please excuse the somewhat special question: > > >From within R I create a Tk windows with a list of checkboxes, which can > bekome too long for the screen. The obvious solution would be to put all > checkboxes into

[R] Meaning of .noemail extension for CRAN uploads?

2013-02-04 Thread Milan Bouchet-Valat
Hi all! I've uploaded two packages to CRAN via FTP [1] about a week ago, and while one was promptly processed by Brian Ripley (thanks for that!), the second got the .noemail extension added, and nothing else happened. So I wonder whether CRAN maintainers are waiting for some action on my side or w

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Milan Bouchet-Valat
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit : > On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote: > > > On 2/3/2013 11:21 PM, Pascal Oettli wrote: > >> Hello, > >> > >> Do you have a 64-bit version of Java? > >> > >> rJava says to you: > >> call: stop("No CurrentVersion entry i

Re: [R] Meaning of .noemail extension for CRAN uploads?

2013-02-04 Thread Milan Bouchet-Valat
Le lundi 04 février 2013 à 18:58 +0100, Uwe Ligges a écrit : > > On 04.02.2013 14:17, Milan Bouchet-Valat wrote: > > Hi all! > > > > I've uploaded two packages to CRAN via FTP [1] about a week ago, and > > while one was promptly processed by Brian Ripley (thanks

Re: [R] Simple frequencies using svy design

2013-02-11 Thread Milan Bouchet-Valat
Le lundi 11 février 2013 à 10:37 +0100, Virgile Capo-Chichi a écrit : > Hello, > excuse me if this is trivial. I have some survey data with the following > design > > MyDesign<-(id=ident, weights=~fwgt, fcp=~nval1+nval2, data=hh_data1) > > I would like to run simple frequency tables such as those

Re: [R] recovering from errors with lapply()

2013-02-13 Thread Milan Bouchet-Valat
Le mardi 12 février 2013 à 15:41 -0600, Andrew Barr a écrit : > Hi all, > > I am searching for a way to recover results from lapply() when one or more > values returns an error. I have a written a function that uses tryCatch() > to recover from errors. Here is a very simple example of such a func

Re: [R] odd behavior within R2HTML

2013-02-16 Thread Milan Bouchet-Valat
Le vendredi 15 février 2013 à 20:52 -0600, Erin Hodgess a écrit : > Dear R People: > > I'm using R2HTML but having a strange result. > > Here is the original data: > > resp trt block > 90.3 A I > 89.2 A II > 98.2 A III > 93.9 A IV > 87.4 A V > 97.9 A VI > 92.5 B I > 89.5 B II > 90.6 B III > 94.7

Re: [R] foreach loop, stata equivalent

2013-02-18 Thread Milan Bouchet-Valat
Le lundi 18 février 2013 à 13:48 +0100, Jamora, Nelissa a écrit : > Hi! I'm a recent convert from Stata, so forgive my ignorance. > > > > In Stata, I can write foreach loops (example below) > > > > foreach var of varlist p1-p14 { > > foreach y of varlist p15-p269 { > > reg `var' `y' >

Re: [R] foreach loop, stata equivalent

2013-02-18 Thread Milan Bouchet-Valat
an 14 cores. Regards > Hope this clears things. > Nelissa > > > > > > > > > -Original Message- > From: Milan Bouchet-Valat [mailto:nalimi...@club.fr] > Sent: Monday, February 18, 2013 3:44 PM > To: Jamora, Nelissa > Cc: r-help@r-project.org

Re: [R] Getting htmlParse to work with Hebrew? (on windows)

2013-02-21 Thread Milan Bouchet-Valat
Le jeudi 21 février 2013 à 13:16 +0400, Lawr Eskin a écrit : > Hello dear R-help mailing list. > > > Looks like the same issue in Russian: > > > > library(RCurl) > > library(XML) > > u = " http://www.cian.ru/cat.php?deal_type=2&obl_id=1&room1=1"; > > a = getURL(u) > > a # Here - the Russia

Re: [R] Getting htmlParse to work with Hebrew? (on windows)

2013-02-21 Thread Milan Bouchet-Valat
###again same encoding issue And what if you try this: a2 <- htmlParse(sub("windows-1251", "UTF-8", a)) or this: a2 <- htmlParse(iconv(a, "windows-1251", "UTF-8")) Cheers > >>why didn't getURL() detect and set a's encoding correctly?

Re: [R] Getting htmlParse to work with Hebrew? (on windows)

2013-02-22 Thread Milan Bouchet-Valat
8")); close(con) x2 <- readLines(con <- file(foo, "r", encoding="UTF-8")); close(con) Encoding(x2) # unknown x2 # [1] "..." I know the problem happens on write because the file cannot be read correctly on Linux either. This Windows machine uses W

Re: [R] Issue attaching a dataset

2013-02-26 Thread Milan Bouchet-Valat
Le lundi 25 février 2013 à 20:26 -0300, Pablo Menese a écrit : > I use to work whit stata dataframe, so, when I use R I type read.dta > Until today I do that without any problem, after type: > > mydata<-read.dta("C:/dropbox/dataframe.dta") > attach(mydata) > > Everything works great... but today,

Re: [R] print method like print.anova()

2013-03-02 Thread Milan Bouchet-Valat
Le samedi 02 mars 2013 à 12:37 -0500, Michael Friendly a écrit : > I have a print method for a set of statistical tests, vcdExtra::CMHtest, > for which I'd like to > have more sensible printing of pvalues, as in print.anova(). > [Testing this requires the latest version of vcdExtra, from R-Forge >

Re: [R] distribution functions and lists

2013-03-03 Thread Milan Bouchet-Valat
Le dimanche 03 mars 2013 à 19:49 +0100, Oleguer Plana Ripoll a écrit : > Hello everyone, > > I have a quick question but I am stuck with it and I do not know how > to solve it. > > Imagine I need the distribution function of a Weibull(1,1) at t=3, > then I will write pweibull(3,1,1). > > I want

Re: [R] package ‘contingency.tables’ is not available (for R version 2.15.2)

2013-03-04 Thread Milan Bouchet-Valat
Le lundi 04 mars 2013 à 12:37 -0600, Joanna Papakonstantinou a écrit : > I am trying to create contingency tables (to evaluate prior to performing > Pearson's Chi-Squared test for independence). I would like to see column > and row totals as well as expected and observed values and cell counts. > I

Re: [R] SAS and R complement each other

2013-03-04 Thread Milan Bouchet-Valat
Le mardi 05 mars 2013 à 08:57 +1300, Rolf Turner a écrit : > I never saw the "original note" nor its resubmission. Nor could I find it > in the R-help archives. > > Is it just me? > > Not that it really matters a damn --- I don't use SAS either --- I'm just > curious, and find the situation myst

Re: [R] What package can I use to help me categorize comment responses?

2013-03-05 Thread Milan Bouchet-Valat
Le lundi 04 mars 2013 à 20:28 +, Lopez, Dan a écrit : > Hi, > > We have comment questions from a survey that we need to categorize. > What package and functions can I use in R to help do this? If you are asking for some kind of clustering based on vocabulary, then have a look at the tm package

Re: [R] Function completely locks up my computer if the input is too big

2013-03-06 Thread Milan Bouchet-Valat
Le mardi 05 mars 2013 à 15:19 -0800, Benjamin Caldwell a écrit : > Hi all, > > Thanks for the suggestions. Updating the function as below to break the > problem into chunks seemed to do the trick - perhaps there is a relatively > small limit to the size of a vector that R can work with? On the con

Re: [R] lm Regression takes 24+ GB RAM - Error message

2013-03-06 Thread Milan Bouchet-Valat
Le mercredi 06 mars 2013 à 08:31 -0800, Jonas125 a écrit : > The datatable (and the split obviously) only contain characters and numeric > data. > > I found that 4 regression in a row work if I don't use the calculated > columns as variables but 2 of the original columns. > RAM usage stays below

Re: [R] lm Regression takes 24+ GB RAM - Error message

2013-03-06 Thread Milan Bouchet-Valat
Le mercredi 06 mars 2013 à 09:18 -0800, Jonas125 a écrit : > Length(Datasplit) = 7100 > > I did a regression for Datasplit[[1]] and the calculated columns --> the > object size is 70 MB. Quite large 7100*70/1024 = 485 (GB) No wonder why you run out of memory quite fast. You probably do not n

Re: [R] chi square exact test

2013-03-06 Thread Milan Bouchet-Valat
Le mercredi 06 mars 2013 à 18:03 +0100, Knut Krueger a écrit : > Am 06.03.2013 14:27, schrieb Nicole Ford: > Dear Nicole, > my be you are wondering about, but I know Google an I am using google > before I am asking here. > > If you are more familiar with googl,e please help me to find the search

Re: [R] chi square exact test

2013-03-06 Thread Milan Bouchet-Valat
Le mercredi 06 mars 2013 à 18:38 +0100, Knut Krueger a écrit : > Am 06.03.2013 18:29, schrieb Milan Bouchet-Valat: > > Le mercredi 06 mars 2013 à 18:03 +0100, Knut Krueger a écrit : > >> Am 06.03.2013 14:27, schrieb Nicole Ford: > >> Dear Nicole, > >> my be

Re: [R] Unexpected behaviour of apply()

2013-03-08 Thread Milan Bouchet-Valat
Le vendredi 08 mars 2013 à 09:29 +0100, Pierrick Bruneau a écrit : > Hello everyone, > > Considering the following code sample : > > > indexes <- function(vec) { > vec <- which(vec==TRUE) > return(vec) > } This is essentially which(), what did you write such a convoluted function to

Re: [R] package ‘contingency.tables’ is not available (for R version 2.15.2)

2013-03-08 Thread Milan Bouchet-Valat
5 0.5 0.75 > G 0.75 0.5 0.75 > H 0.75 0.5 0.75 > W 0.75 0.5 0.75 > > > to get the info I needed. > Actually, CrossTable(..., expected=TRUE) should give you the same result. Regards > Regards, > Joanna > > > On Mon, Mar 4, 2013 at

Re: [R] Pattern match

2013-03-20 Thread Milan Bouchet-Valat
Le mercredi 20 mars 2013 à 21:58 +0530, Christofer Bogaso a écrit : > Hello again, in the help page of grep() function, it is written that > > pattern: > > character string containing a regular expression (or character string > for fixed = TRUE) to be matched in the given character vector. Coerc

Re: [R] Weighted Kaplan-Meier estimates with R (with confidenceintervals)?

2013-03-25 Thread Milan Bouchet-Valat
Le lundi 25 mars 2013 à 05:55 -0700, rm a écrit : > Say, that I have two observations, one from time 0 to time 50, and a second > from time 0 to time 100, both of which are known to have failed, i.e. no > censoring. I would like to give double the weight to the second observation. > > This is what

Re: [R] Text Encoding

2013-04-06 Thread Milan Bouchet-Valat
Le vendredi 05 avril 2013 à 14:30 -0400, Emily Ottensmeyer a écrit : > Dear R-Help, > > I am using the RDF package/ R 2.14 with the RDF package to download data > from a website, and then use R to manipulate it. > > Text on the website is UTF-8. The RDF package's rdf_load command is > converting

Re: [R] Question on Stopword Removal from a Cyrillic (Bulgarian)Text

2013-04-09 Thread Milan Bouchet-Valat
Le mardi 09 avril 2013 à 10:10 +0300, Ventseslav Kozarev, MPP a écrit : > Hi, > > I bumped into a serious issue while trying to analyse some texts in > Bulgarian language (with the tm package). I import a tab-separated csv > file, which holds a total of 22 variables, most of which are text cells

Re: [R] Question on Stopword Removal from a Cyrillic (Bulgarian)Text

2013-04-10 Thread Milan Bouchet-Valat
нес\\b", "", "днес е хубав") # [1] " е хубав" gsub("\\bднес\\b", "", "днес е хубав", perl=TRUE) # [1] "днес е хубав" It looks like some non-ASCII characters like é or € are supported, but not others like œ or the Cyrillic charac

Re: [R] Question on Stopword Removal from a Cyrillic (Bulgarian)Text

2013-04-10 Thread Milan Bouchet-Valat
Le mercredi 10 avril 2013 à 13:17 +0200, Ingo Feinerer a écrit : > On Wed, Apr 10, 2013 at 10:29:27AM +0200, Milan Bouchet-Valat wrote: > > Thanks for the reproducible example. Indeed, it does not work here > > either (Linux with UTF-8 locale). The problem seems to be in the call t

Re: [R] odfWeave: Some questions about potential formatting options

2013-04-12 Thread Milan Bouchet-Valat
Le jeudi 11 avril 2013 à 13:40 -0700, Paul Miller a écrit : Hello All, > > Learning to use the odfWeave package. I really like the package. It has good > documentation, makes some very nice looking tables, and seems to have lots of > options for customizing output. > > There are a few things I'

Re: [R] odfWeave: Some questions about potential formatting options

2013-04-17 Thread Milan Bouchet-Valat
Le mardi 16 avril 2013 à 10:15 -0700, Paul Miller a écrit : > Hi Milan and Max, > > Thanks to each of you for your reply to my post. Thus far, I've > managed to find answers to some of the questions I asked initially. > > I am now able to control the justification of the leftmost column in > my t

Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-18 Thread Milan Bouchet-Valat
Le mercredi 17 avril 2013 à 23:17 -0400, Christian Brechbühler a écrit : > In help(gc) I read, "...the primary purpose of calling 'gc' is for the > report on memory usage". > What memory usage does gc() report?  And more importantly, which memory > uses does it NOT report?  Because I see one answer

[R] Assigning factor to character vector

2013-04-20 Thread Milan Bouchet-Valat
Hi! Yesterday I accidentally discovered this: > a <- LETTERS[1:5] > a [1] "A" "B" "C" "D" "E" > > a[1] <- factor(a[1]) > a [1] "1" "B" "C" "D" "E" BUT: > b <- factor(LETTERS[1:5]) > b [1] A B C D E Levels: A B C D E > b[1] <- factor(b[1]) > b [1] A B C D E Levels: A B C D E > b[1] <- as.characte

Re: [R] Assigning factor to character vector

2013-04-20 Thread Milan Bouchet-Valat
not find it. For example, the R Language Definition does not mention coercion in the Subset Assignment section [1]. > > Inline comments below. > > > > Cheers, > > Bert > > > > On Sat, Apr 20, 2013 at 5:49 AM, Milan Bouchet-Valat > > wrote: > >

Re: [R] R installation error

2013-05-09 Thread Milan Bouchet-Valat
Le jeudi 09 mai 2013 à 14:06 +0100, Meenu Chopra a écrit : > Hiii > > I am trying to install R-2.15.2 > after doing ./configure its showing error: --with-x=yes (default) and X11 > headers/libs are not available > > and when i am running make its showing > make: *** No targets specified and no mak

[R] Lattice, ggplot, and pointsize

2013-05-21 Thread Milan Bouchet-Valat
Hi! When inserting R plots into a document using odfWeave, I fought for a while to get Lattice plots use the same text size as base plots. I eventually discovered that specifying a point size via e.g. svg(pointsize=10) has no effect on Lattice plots. One needs to adjust the size manually via: trel

Re: [R] Lattice, ggplot, and pointsize

2013-05-21 Thread Milan Bouchet-Valat
Le mardi 21 mai 2013 à 23:30 +1000, Duncan Mackay a écrit : > Hi > > See par.settings in xyplot > > Things are also controlled by > trellis.par.get() > to see values > trellis.par.set() > > eg > xyplot(~Freq|Year, data = sheep2, > groups = farm, > par.settings = list(st

Re: [R] Lattice, ggplot, and pointsize

2013-05-21 Thread Milan Bouchet-Valat
Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/BatteriesO.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --- > Sent from my p

Re: [R] Lattice, ggplot, and pointsize

2013-05-25 Thread Milan Bouchet-Valat
Le mardi 21 mai 2013 à 21:39 +0100, Prof Brian Ripley a écrit : > On 21/05/2013 21:24, Bert Gunter wrote: > > At the risk of misunderstanding... (inline) > > > > On Tue, May 21, 2013 at 12:17 PM, Milan Bouchet-Valat > > wrote: > >> Le mardi 21 mai 2013 à

Re: [R] load ff object in a different computer

2013-05-26 Thread Milan Bouchet-Valat
Le dimanche 26 mai 2013 à 13:53 +0200, Djordje Bajic a écrit : > Hi all, > > I am having trouble loading a ff object previously saved in a different > computer. I have both files .ffData and .RData, and the first of them is > 13Mb large from which I know the data is therein. But when I try to fflo

Re: [R] merge without NA last

2013-05-31 Thread Milan Bouchet-Valat
Le vendredi 31 mai 2013 à 18:07 +1000, nevil amos a écrit : > I am trying to create a merge where the first value contains NA values. I > wish to retain these in order. however when I use all.x=T and sort=F they > are retained but na values are placed last: > > > X<-data.frame(k1=c("A",NA,"C","B

Re: [R] GLMM in R

2013-06-01 Thread Milan Bouchet-Valat
Le vendredi 31 mai 2013 à 22:27 -0300, Luis Fernando García Hernández a écrit : > Dear Friends, > > I am new on R so I ask you to excuse me if this question sounds fool. I > want to see if there is a significativa relationship between the mating > (response variable) and several explanatory variab

Re: [R] Windows Vista computer will not use changes I made to R console file

2013-06-02 Thread Milan Bouchet-Valat
Le samedi 01 juin 2013 à 15:28 -0400, Julie Royster a écrit : > My newer laptop died so I installed R on an older Vista laptop. > I did follow the online instructions about giving myself full control under > the R properties security tab. > I made changes in the R console file under the etc folder

Re: [R] Lattice, ggplot, and pointsize

2013-06-05 Thread Milan Bouchet-Valat
Le mercredi 05 juin 2013 à 19:37 +0530, Deepayan Sarkar a écrit : > On Sun, May 26, 2013 at 12:47 AM, Milan Bouchet-Valat > wrote: > > Le mardi 21 mai 2013 à 21:39 +0100, Prof Brian Ripley a écrit : > >> On 21/05/2013 21:24, Bert Gunter wrote: > >> > At the ri

Re: [R] [R-SIG-Mac] problem with the installation of r commander on a mac

2013-06-12 Thread Milan Bouchet-Valat
Le mercredi 12 juin 2013 à 16:52 -0400, John Fox a écrit : > Dear Susanne, > > You started this thread on r-help (though R-SIG-Mac would have been more > appropriate), and so I'm copying my response to the r-help list. People will > find it confusing if the messages are simply kept private. > > I

Re: [R] Problems using log() in a plm() regression.

2013-06-16 Thread Milan Bouchet-Valat
Le dimanche 16 juin 2013 à 09:05 +0200, Guylaine NOUWOUE a écrit : > Hello, > > I am performing a panel model and I have an error. In fact, I would like to > set up the pooling model and I have an error message. Any help > > >pool jt+langueij+histoireij+infrasij+frontiereij+simijt+enclaviit,data=

Re: [R] use of formula in survey analysis with replicated weights

2013-06-28 Thread Milan Bouchet-Valat
Le vendredi 28 juin 2013 à 17:44 +0200, LE TERTRE Alain a écrit : > Hi there, > I would like to use a formula inside a call to withReplicates in a survey > analysis. > If the initial call with formula expressed inside the function works as > expected, defining the formula outside gives an error m

[R] boot() with glm/gnm on a contingency table

2012-09-11 Thread Milan Bouchet-Valat
Hi everyone! In a package I'm developing, I have created a custom function to get jackknife standard errors for the parameters of a gnm model (which is essentially the same as a glm model for this issue). I'd like to add support for bootstrap using package boot, but I couldn't find how to proceed.

Re: [R] problem while installing packages in r

2012-09-11 Thread Milan Bouchet-Valat
Le mardi 11 septembre 2012 à 15:36 +0200, Ravichandra MONDRETI a écrit : > > Dear R users, > > > > Hope someone can help me to solve the problem. I have a problem > installing packages in to r . The following message was being displayed > in the console when I was trying to install 'rgdal' pa

Re: [R] boot() with glm/gnm on a contingency table

2012-09-12 Thread Milan Bouchet-Valat
Le mercredi 12 septembre 2012 à 07:08 -0700, Tim Hesterberg a écrit : > One approach is to bootstrap the vector 1:n, where n is the number > of individuals, with a function that does: > f <- function(vectorOfIndices, theTable) { > (1) create a new table with the same dimensions, but with the coun

Re: [R] create new variable with ifelse? (reproducible example)

2012-09-15 Thread Milan Bouchet-Valat
Le samedi 15 septembre 2012 à 23:36 +0300, Niklas Fischer a écrit : > Dear R users, > > I have a reproducible data and try to create new variable "clo" is 1 if > know variable is equal to "very well" or "fairly well" and getalong is 4 or > 5 > otherwise it is 0. > > rep_data<- read.table(header=

Re: [R] boot() with glm/gnm on a contingency table

2012-09-16 Thread Milan Bouchet-Valat
Le mercredi 12 septembre 2012 à 07:08 -0700, Tim Hesterberg a écrit : > One approach is to bootstrap the vector 1:n, where n is the number > of individuals, with a function that does: > f <- function(vectorOfIndices, theTable) { > (1) create a new table with the same dimensions, but with the coun

Re: [R] effective way to return only the first argument of "which()"

2012-09-19 Thread Milan Bouchet-Valat
Le mercredi 19 septembre 2012 à 15:23 +, William Dunlap a écrit : > The original method is faster than which.max for longish numeric vectors > (in R-2.15.1), but you should check time and memory usage on your > own machine: > > > x <- runif(18e6) > > system.time(for(i in 1:100)which(x>0.99)[1]

Re: [R] Rows not common in dataframes

2012-09-24 Thread Milan Bouchet-Valat
Le lundi 24 septembre 2012 à 13:22 +1000, Chintanu a écrit : > Hi, > > I have two dataframes (Dataframe_A, Dataframe_B) with the same no. of > columns. The first column of both the dataframes contains unique names. > I wish to have Dataframe_A with the rows that are NOT common to > Dataframe_B. So

Re: [R] Regression Problem

2012-09-24 Thread Milan Bouchet-Valat
Le lundi 24 septembre 2012 à 11:25 +0530, Vignesh Prajapati a écrit : > Hello all, > > I am new to R, I am learning regression and logistic modeling > with categorical predictor variables, when there is only one predictor > categorical variable i can use as.numeric() but when more than t

Re: [R] Memory usage in R grows considerably while calculating word frequencies

2012-09-25 Thread Milan Bouchet-Valat
Le lundi 24 septembre 2012 à 16:29 -0700, mcelis a écrit : > I am working with some large text files (up to 16 GBytes). I am interested > in extracting the words and counting each time each word appears in the > text. I have written a very simple R program by following some suggestions > and examp

Re: [R] Help needed on parallel processing

2012-09-26 Thread Milan Bouchet-Valat
Le mercredi 26 septembre 2012 à 13:04 +0530, Anindya Sankar Dey a écrit : > Hi All, > > If i have a vector say x<-1:10 and then use > > parLapply(cl,x,function(k){k=k*2; return(k);} > > it works and will also parallel process depending on the number of cores > and the number of clusters I've bu

[R] [R-pkgs] New package: logmult (log-multiplicative models)

2012-10-03 Thread Milan Bouchet-Valat
ls of the RC(M) and RC(M)-L families resp. for two- and three-way tables with one or several dimensions; two skew-symmetric association models proposed by Yamaguchi and by van der Heijden & Mooijaart. Thanks for your attention. As usual, comments and bug reports are welcome! -- Milan Bouch

Re: [R] Up key is not the previous command

2012-10-09 Thread Milan Bouchet-Valat
Le lundi 08 octobre 2012 à 20:33 -0700, Peter Langfelder a écrit : > run > > capabilities(what="cledit") > > in your R terminal session. If you get FALSE, your R was compiled > without command line editing support which you need for the "up arrow" > action. FWIW, it works with the R version packa

Re: [R] extracting groups from hclust() for a very large matrix

2012-10-12 Thread Milan Bouchet-Valat
Le jeudi 11 octobre 2012 à 15:50 -0700, Christopher R. Dolanc a écrit : > Hello, > > I'm having trouble figuring out how to see resulting groups (clusters) > from my hclust() output. I have a very large matrix of 4371 plots and 29 > species, so simply looking at the graph is impossible. There mu

Re: [R] extracting groups from hclust() for a very large matrix

2012-10-12 Thread Milan Bouchet-Valat
Le vendredi 12 octobre 2012 à 11:33 -0700, Christopher R. Dolanc a écrit : > That command gives me the same result. Do you see that R is not listing > the plot numbers? Just all the numbers between 1 and 137, 138 and 310, > etc. It's like it has reordered the dendrogram, so that everything > occ

Re: [R] How to use internationalization of R on Linux?

2012-10-15 Thread Milan Bouchet-Valat
Le lundi 15 octobre 2012 à 05:37 -0700, Manish Gupta a écrit : > HI, > > i need to use simplified chineese. But when i read XML > > > > 表 > 3 > 2.9 > > > 笔 > 3.3 >

Re: [R] unique

2012-10-16 Thread Milan Bouchet-Valat
Le mardi 16 octobre 2012 à 14:45 +0200, paladini a écrit : > Hello everybody, > I've got a problem concerning the function unique. I have got a > data.frame "shopdata" with 1000 shop which were evaluated at different > points in time. > > With function subset I chose those shops with more then 1

Re: [R] can't find the error in if function... maybe i'm blind?

2012-10-20 Thread Milan Bouchet-Valat
Le samedi 20 octobre 2012 à 03:27 -0700, Janosch a écrit : > Hi everybody, > > the following alway gives me the error > "Fehler in if (File$X.Frame.Number[a] + 1 == File$X.Frame.Number[a + 1]) > (File$FishNr[a] <- File$FishNr[a - : Fehlender Wert, wo TRUE/FALSE nötig > ist". Maybe its stupid,

Re: [R] Error: not 'a real'?

2012-10-20 Thread Milan Bouchet-Valat
Le samedi 20 octobre 2012 à 14:25 +0200, Brian a écrit : > Hi Jim, > > On 10/20/12 13:36, Jim Holtman wrote: > > how about supplying the context of the error. Show the lines in the file > > where the error occurred. > > > > Sent from my iPad > > > > On Oct 20, 2012, at 7:21, Brian wrote: >

Re: [R] incomplete final line found by readTableHeader

2012-10-24 Thread Milan Bouchet-Valat
Le mardi 23 octobre 2012 à 20:36 -0700, Shane2012 a écrit : > Thanks, Jeff > This is from a course, but the course is just needed to take some > slides for presentation. I just learn R by myself, and want this skill > more practical. So I try to use the innovative way to perform a more > profession

Re: [R] Regarding the memory allocation problem

2012-10-26 Thread Milan Bouchet-Valat
Le jeudi 25 octobre 2012 à 15:02 +0530, Purna chander a écrit : > Dear All, > > > My main objective was to compute the distance of 10 vectors from a > set having 900 other vectors. I've a file named "seq_vec" containing > 10 records and 256 columns. > While computing, the memory was not s

Re: [R] Regarding the memory allocation problem

2012-10-29 Thread Milan Bouchet-Valat
t; optimize my goal. Well, I gave you one idea, but for us to tell you more you need to give us the code you are using. A better solution would be to spend some money to buy more RAM, given it's quite cheap these days, and to install a 64-bit version of Linux and R, if your computer supports

[R] Purpose of readLines(..., encoding=)?

2014-04-05 Thread Milan Bouchet-Valat
Hi! I'm wondering what's the use of the 'encoding' argument to readLines(x), as opposed to readLines(file(x, encoding=)). The same question applies to read.table()'s 'encoding' vs 'fileEncoding' arguments. AFAIK only the latter is able to re-encode the read text into the internal representation us

Re: [R] Purpose of readLines(..., encoding=)?

2014-04-05 Thread Milan Bouchet-Valat
Le samedi 05 avril 2014 à 14:16 +0100, Prof Brian Ripley a écrit : > UTF-8 is treated specially by readLines(), originally to allow for UTF-8 > strings on Windows. See the NEWS for 2.12.0. > > That is not the case for encoding = "latin1". > > If you have a Latin-1 file in a UTF-8 locale, then >

Re: [R] weights error in svyglm

2014-04-11 Thread Milan Bouchet-Valat
Le vendredi 11 avril 2014 à 13:38 +, Lee, Laura a écrit : > Hi! > > I am just learning the 'svyglm' package and have run into an error for > which I have not found a solution. My data have been collected from a > stratified random survey. Here is the code: > > NB3<-glm.nb(COLNUM~Year+Depth+ME

[R] sink() and UTF-8 on non-UTF-8 systems

2014-04-11 Thread Milan Bouchet-Valat
Hi! In the series "dealing with encoding madness on hostile systems", I'm looking for help as regards capturing R UTF-8 output on a system where the locale is not using UTF-8, and where some characters cannot even be represented using the locale encoding. The case I have in mind is printing a char

Re: [R] weights error in svyglm

2014-04-11 Thread Milan Bouchet-Valat
Le vendredi 11 avril 2014 à 15:54 +, Lee, Laura a écrit : > Thanks! That worked. However, what error distribution is assumed? I > was hoping to use a negative binomial. Since svyglm() computes designed-based standard errors, you should be able to simply pass family=poisson instead. See books.go

Re: [R] invalid multibyte string at 'C'

2014-04-12 Thread Milan Bouchet-Valat
Le vendredi 11 avril 2014 à 16:02 -0700, Fisher Dennis a écrit : > R 3.0.2 > OS X Mavericks > > Colleagues > > I have a file that I converted from SAS (sas7bdat) to CSV (filename: > ORIGINAL.csv). I try to read it with read.csv and I receive the error > message: > Error in type.convert(dat

Re: [R] Read.table mucks up headers

2014-04-14 Thread Milan Bouchet-Valat
Le lundi 14 avril 2014 à 08:50 -0700, Jeff Newmiller a écrit : > You have not posted the input to your code so it is not reproducible. > Also, you have posted in HTML, which is notorious for corrupting R > code and data in emails. > > If I were to guess, though, it looks to me like you are workin

Re: [R] problem on package "survey" , function svyglm,

2014-04-14 Thread Milan Bouchet-Valat
Le lundi 14 avril 2014 à 13:59 -0400, Hanze Zhang a écrit : > Hi, > > I want to do logistic regression based on a complex sample design. I used > package survey, but when I ran svyglm, an error message came out: > Error in onestrat(x[index, , drop = FALSE], clusters[index], > nPSU[index][1], : >

Re: [R] Error using the package tm.plugin.webmining "object '.Source' not found"

2014-04-14 Thread Milan Bouchet-Valat
Le dimanche 13 avril 2014 à 20:50 -0400, brian arb a écrit : > I recently had an issue while trying to use the package tm.plugin.webmining. > > I was able to get a hack to work for me and I wanted to share the diff and > bring this to someones attention. > Or what is the proper way to report a bug

Re: [R] sink() and UTF-8 on non-UTF-8 systems

2014-04-14 Thread Milan Bouchet-Valat
Suggestions, anyone? Le vendredi 11 avril 2014 à 17:49 +0200, Milan Bouchet-Valat a écrit : > Hi! > > In the series "dealing with encoding madness on hostile systems", I'm > looking for help as regards capturing R UTF-8 output on a system where > the locale is n

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-21 Thread Milan Bouchet-Valat
Le lundi 21 avril 2014 à 11:38 +0200, Frede Aakmann Tøgersen a écrit : > Hi > > Couldn't find a zip file in the archives. > > Why didn't 'R CMD build' (in a command shell on Windows) not make a > zip file? I did try to build from the climatol library that holds the > typical files as DESCRIPTION,

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-21 Thread Milan Bouchet-Valat
Le lundi 21 avril 2014 à 11:38 +0200, Frede Aakmann Tøgersen a écrit : > Hi > > Couldn't find a zip file in the archives. > > Why didn't 'R CMD build' (in a command shell on Windows) not make a > zip file? I did try to build from the climatol library that holds the > typical files as DESCRIPTION,

  1   2   3   >