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

2016-03-28 Thread Milan Bouchet-Valat
ng 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 Mac where system locase is set to 'en_US.UTF-8' > > Regards, > Sunny >

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

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] 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 using

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,

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

2014-04-21 Thread Milan Bouchet-Valat
Le lundi 21 avril 2014 à 07:21 -0400, Duncan Murdoch a écrit : On 21/04/2014, 7:10 AM, Milan Bouchet-Valat wrote: 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

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 working

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 for

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 not using UTF-8, and where some characters

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

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(data[[i]],

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:

[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

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

[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

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] GLM weights for the Poisson family

2014-02-06 Thread Milan Bouchet-Valat
I think you should have a look at svyglm() from the survey package. My two cents Le mercredi 05 février 2014 à 14:41 +1300, Rolf Turner a écrit : You should direct your inquiry to R-help, not to me personally. I am taking the liberty of cc-ing my reply back to the list. I really haven't

Re: [R] Handling large SAS file in R

2014-01-29 Thread Milan Bouchet-Valat
Le mardi 28 janvier 2014 à 11:51 -0800, Fisher Dennis a écrit : Marc I understand that R is staffed entirely by volunteers and I appreciate the massive efforts that have created this awesome software. My suggestion was aiming to encourage the Core team that one weakness of the present

Re: [R] R crashes with memory errors on a 256GB machine (and system shoes only 60GB usage)

2014-01-04 Thread Milan Bouchet-Valat
Le vendredi 03 janvier 2014 à 22:40 +0200, Xebar Saram a écrit : Hi again and thank you all for the answers i need to add that im a relatively R neewb so i apologize in advance i started R with the --vanilla option and ran gc() this is the output i get: gc() used (Mb) gc

Re: [R] R crashes with memory errors on a 256GB machine (and system shoes only 60GB usage)

2014-01-02 Thread Milan Bouchet-Valat
Le jeudi 02 janvier 2014 à 09:07 +0200, Xebar Saram a écrit : Hi All, I have a terrible issue i cant seem to debug which is halting my work completely. I have R 3.02 installed on a linux machine (arch linux-latest) which I built specifically for running high memory use models. the system is

Re: [R] 'yum install R' failing with tcl/tk issue

2013-10-25 Thread Milan Bouchet-Valat
Le jeudi 24 octobre 2013 à 21:33 -0400, Michael Stauffer a écrit : Hi, I'm trying to install R on CentOS 6.4. Following some instructions online, I've done this: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm yum install R But yum fails,

Re: [R] saveXML() prefix argument

2013-10-19 Thread Milan Bouchet-Valat
Le vendredi 18 octobre 2013 à 13:27 -0400, Earl Brown a écrit : Thanks Duncan. However, now I can't get the Spanish and Portuguese accented vowels to come out correctly and still keep the indents in the saved document, even when I set encoding = UTF-8: library(XML) concepts - c(español,

Re: [R] saveXML() prefix argument

2013-10-17 Thread Milan Bouchet-Valat
Le mercredi 16 octobre 2013 à 23:45 -0400, Earl Brown a écrit : I'm using the XML package and specifically the saveXML() function but I can't get the prefix argument of saveXML() to work: library(XML) concepts - c(one, two, three) info - c(info one, info two, info three) root -

Re: [R] Updating RSQLite fails

2013-10-12 Thread Milan Bouchet-Valat
Le vendredi 11 octobre 2013 à 18:49 +0200, Thibault Helleputte a écrit : Hello, Working on an ubuntu 13.04 with a sessionInfo() specified below, I try to update my packages, and RSQLite update consistently fails like this: update.packages(checkBuilt=TRUE, ask=FALSE) Warning: package

Re: [R] iconv question: SQL Server 2005 to R

2013-10-11 Thread Milan Bouchet-Valat
' argument to read.table(). Please do that. Regards On 10/9/2013 11:33 PM, Prof Brian Ripley wrote: On 09/10/2013 10:37, Milan Bouchet-Valat wrote: Le mardi 08 octobre 2013 à 16:02 -0700, Ira Sharenow a écrit : A colleague is sending me quite a few files that have been saved with MS

Re: [R] iconv question: SQL Server 2005 to R

2013-10-09 Thread Milan Bouchet-Valat
Le mardi 08 octobre 2013 à 16:02 -0700, Ira Sharenow a écrit : A colleague is sending me quite a few files that have been saved with MS SQL Server 2005. I am using R 2.15.1 on Windows 7. I am trying to read in the files using standard techniques. Although the file has a csv extension when

Re: [R] Status of installing XML package on widows

2013-10-03 Thread Milan Bouchet-Valat
Le jeudi 03 octobre 2013 à 10:35 +0200, rolf.kem...@renesas.com a écrit : Hello Experts, I would like to utilize the XML package which is obviously quite new. There are tons of messages in the web dealing with issues on that. But I did not see any clear up to date solution. On top my R

Re: [R] Status of installing XML package on widows

2013-10-03 Thread Milan Bouchet-Valat
Le jeudi 03 octobre 2013 à 10:35 +0200, rolf.kem...@renesas.com a écrit : Hello Experts, I would like to utilize the XML package which is obviously quite new. There are tons of messages in the web dealing with issues on that. But I did not see any clear up to date solution. On top my R

Re: [R] Status of installing XML package on widows

2013-10-03 Thread Milan Bouchet-Valat
Le jeudi 03 octobre 2013 à 10:35 +0200, rolf.kem...@renesas.com a écrit : Hello Experts, I would like to utilize the XML package which is obviously quite new. There are tons of messages in the web dealing with issues on that. But I did not see any clear up to date solution. On top my R

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

2013-09-17 Thread Milan Bouchet-Valat
. Regards On Mon, Sep 16, 2013 at 6:38 PM, Milan Bouchet-Valat nalimi...@club.fr wrote: 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

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 problem is

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-windows-character-encoding

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

2013-09-16 Thread Milan Bouchet-Valat
2.12.2 works without any issues. (...) On Mon, Sep 16, 2013 at 6:38 PM, Milan Bouchet-Valat nalimi...@club.fr wrote: 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

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

2013-08-18 Thread Milan Bouchet-Valat
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 nalimi...@club.fr wrote: Le vendredi 16 août 2013 à 19:35

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

2013-08-18 Thread Milan Bouchet-Valat
explicit error message from tm if possible. Regards On Aug 18, 2013 9:01 AM, Milan Bouchet-Valat nalimi...@club.fr wrote: Le samedi 17 août 2013 à 11:16 -0700, Ajinkya Kale a écrit : It contains all text files which were converted from doc, docx, ppt etc

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)) Error

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 are

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 are

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

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 poolplm(panel$lexportijt~ldistit+lpopit+lpopjt+lpibit+lpibjt+lpibcit+lpibc

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. It's

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 nalimi...@club.fr 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 risk of misunderstanding

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 to

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 variables

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)) print

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 ffload

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 nalimi...@club.fr wrote: Le mardi 21 mai 2013 à 08:17 -0700, Jeff Newmiller a écrit

[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:

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 =

Re: [R] Lattice, ggplot, and pointsize

2013-05-21 Thread Milan Bouchet-Valat
#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. Milan Bouchet

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 makefile

[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.character(b[1]) b [1] A B C D E Levels: A

Re: [R] Assigning factor to character vector

2013-04-20 Thread Milan Bouchet-Valat
]. Inline comments below. Cheers, Bert On Sat, Apr 20, 2013 at 5:49 AM, Milan Bouchet-Valat nalimi...@club.fr wrote: Hi! Yesterday I accidentally discovered this: a - LETTERS[1:5] a [1] A B C D E a is a character vector. a[1] - factor(a[1]) The RHS is an vector

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 from

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 tables,

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'd

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

2013-04-10 Thread Milan Bouchet-Valat
(or in perl regexps). Regards On 9.4.2013 г. 22:55 ч., Milan Bouchet-Valat wrote: 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

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 to gsub

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] 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 it

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] 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. Coerced

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 get the

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

2013-03-08 Thread Milan Bouchet-Valat
Bouchet-Valat nalimi...@club.fr wrote: 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

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

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 3GB!

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 need

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 you are wondering about, but I know Google an I am

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] 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 mysterious.

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 to keep

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] 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, when I

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

2013-02-22 Thread Milan Bouchet-Valat
the file cannot be read correctly on Linux either. This Windows machine uses Windows Server 2008 with French_France.1252 locale. 2013/2/21 Milan Bouchet-Valat nalimi...@club.fr Le jeudi 21 février 2013 à 18:31 +0400, Lawr Eskin a écrit : Hi Milan

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=2obl_id=1room1=1; a = getURL(u) a # Here - the Russian is fine. a2 -

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

2013-02-21 Thread Milan Bouchet-Valat
-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? I think there are page issue because another sites works fine 2013/2/21 Milan Bouchet-Valat nalimi...@club.fr Le jeudi 21 février 2013 à 16:04

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
(paste0(p, 15:269), function(y) { lm(yourData[[var]] ~ yourData[[y]]) }) } This will only be optimal if you have less than 14 cores. Regards Hope this clears things. Nelissa -Original Message- From: Milan Bouchet-Valat [mailto:nalimi...@club.fr] Sent

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 B IV 87.0 B V

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

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

[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

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 in ', key, '! Try

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 for that!), the second got the .noemail

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 a

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', details:

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 clicking the

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, thanks

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] 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.pdf)

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 the

Re: [R] questions on French characters in plot

2012-12-12 Thread Milan Bouchet-Valat
Le mardi 11 décembre 2012 à 23:39 +0100, Richard Zijdeman a écrit : Dear Milan, please see my results inline On 11 Dec 2012, at 16:58, Milan Bouchet-Valat nalimi...@club.fr wrote: Le mardi 11 décembre 2012 à 16:41 +0100, Richard Zijdeman a écrit : Dear Milan, thank you for kind

Re: [R] questions on French characters in plot

2012-12-11 Thread Milan Bouchet-Valat
Le mardi 11 décembre 2012 à 01:10 +0100, Richard Zijdeman a écrit : Dear all, I have imported a dataset from Stata using the foreign package. The original data contain French characters such as and . After importing, string variables containing names of French departments have changed.

Re: [R] questions on French characters in plot

2012-12-11 Thread Milan Bouchet-Valat
? Regards Best and thank you for your help, Richard On 11 Dec 2012, at 12:11, Milan Bouchet-Valat nalimi...@club.fr wrote: Le mardi 11 décembre 2012 à 01:10 +0100, Richard Zijdeman a écrit : Dear all, I have imported a dataset from Stata using the foreign package. The original

Re: [R] Troubles with subset()

2012-12-11 Thread Milan Bouchet-Valat
Le mardi 11 décembre 2012 à 15:09 +0100, Virgile Capo-Chichi a écrit : All, I have the attached dataset which I read from SPSS and transformed a little bit using the attached script. I am trying to run a logistic regression using glm() on a subset of my data. When I run the logistic regression

Re: [R] Troubles with subset()

2012-12-11 Thread Milan Bouchet-Valat
(MC0911_S$CCU2) attach(MC0911_S) glm(CCU2~age+a3+a6+a8+a9, family=binomial) detach() MC0911_2-subset(MC0911, year2009) attach(MC0911_2) glm(CCU2~age+a3+a6+a8+a9, family=binomial) detach() 2012/12/11 Milan Bouchet-Valat nalimi...@club.fr Le mardi 11 décembre 2012 à 15:09 +0100, Virgile

  1   2   3   >