[R] Counting non-empty levels of a factor

2009-11-08 Thread sylvain willart
with MyData) any idea for doing that in R ? Thanks in advance, King Regards, Sylvain Willart, PhD Marketing, IAE Lille, France __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Counting non-empty levels of a factor

2009-11-08 Thread sylvain willart
, 2009, at 9:11 AM, David Winsemius wrote: On Nov 8, 2009, at 8:38 AM, sylvain willart wrote: Hi everyone,h I'm struggling with a little problem for a while, and I'm wondering if anyone could help... I have a dataset (from retailing industry) that indicates which brands are present in a panel

[R] length of a density curve (or any curve)

2009-12-04 Thread sylvain willart
Hello R users, When I type d - density(MyData$x) I obtain a density object I can plot, But I wonder if there is a way to easily compute the length of the density curve ? ( I imagine I could compute the distances between the 512 equally spaced points using their x and y, but does it exist a

Re: [R] length of a density curve (or any curve)

2009-12-04 Thread sylvain willart
Yes, sure (and I just did it again) but I can't see an answer... did I miss sthg ? regards, SW 2009/12/4 milton ruser milton.ru...@gmail.com: hi Sylvain, did you try ?density regards milton On Fri, Dec 4, 2009 at 7:19 AM, sylvain willart sylvain.will...@gmail.com wrote: Hello R

Re: [R] length of a density curve (or any curve)

2009-12-04 Thread sylvain willart
-Dec-09 12:41:22, sylvain willart wrote: Yes, sure (and I just did it again) but I can't see an answer... did I miss sthg ? regards, SW 2009/12/4 milton ruser milton.ru...@gmail.com: hi Sylvain, did you try ?density regards milton On Fri, Dec 4, 2009 at 7:19 AM, sylvain willart

[R] how to import map data (maptools?) from a html set of 'coords'

2010-03-02 Thread sylvain willart
Dear R users, I would like to draw map and import it in maptools/spatstat packages. The 'raw data' I have come from a web page (map.../map) and are basically a list of coordinates of a polygon. I would like to know how to import them in R; I checked the maptools packages, but all the examples

Re: [R] how to import map data (maptools?) from a html set of 'coords'

2010-03-03 Thread sylvain willart
to be extremely precise...) sylvain 2010/3/3 Michael Denslow michael.dens...@gmail.com: Hi Sylvian, On Tue, Mar 2, 2010 at 1:15 PM, sylvain willart sylvain.will...@gmail.com wrote: Dear R users, I would like to draw map and import it in maptools/spatstat packages. The 'raw data' I have

Re: [R] how to import map data (maptools?) from a html set of 'coords'

2010-03-03 Thread sylvain willart
that map for distance or area calculus (which do not need to be extremely precise...) sylvain 2010/3/3 Michael Denslow michael.dens...@gmail.com: Hi Sylvian, On Tue, Mar 2, 2010 at 1:15 PM, sylvain willart sylvain.will...@gmail.com wrote: Dear R users, I would like to draw map and import

[R] import contingency table

2012-05-28 Thread sylvain willart
hello everyone, i often work on contingency table that I create from data.frame (with table() function) but a friend sent me an excel sheet wich *already is* a contingency table (just a simple 2 way table !...) any clue on how to import it in R (keeping row names and col names) ? any tuto I

Re: [R] import contingency table

2012-05-28 Thread sylvain willart
is library(sos) findFn('xls') It returns read.xls as the first line. Hope this helps, Rui Barradas Em 28-05-2012 11:32, sylvain willart escreveu: hello everyone, i often work on contingency table that I create from data.frame (with table() function) but a friend sent me an excel

Re: [R] import contingency table

2012-05-28 Thread sylvain willart
names for example and put them into the matrix with rownames() Am 28.05.2012 um 13:49 schrieb sylvain willart: there are no indication in ?table on how to read in a contingency table (only on how to transform a dataframe or matrix into a contingency table), when I read my file

[R] Extract part of a list based on the value of one of the subsubscript (weird, but with a reproducible example for clarity sake)

2014-03-17 Thread sylvain willart
26 svn rev61015 language R version.string R version 2.15.2 (2012-10-26) nickname Trick or Treat thanks Sylvain Willart [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Extract part of a list based on the value of one of the subsubscript (weird, but with a reproducible example for clarity sake)

2014-03-17 Thread sylvain willart
It works like a charm, Plus, this method (logical vector for list extraction) opens a wide range a possibilities for me, thanks a million Duncan 2014-03-17 12:55 GMT+01:00 Duncan Murdoch murdoch.dun...@gmail.com: On 14-03-17 7:27 AM, sylvain willart wrote: Dear R (list)-users I'm trying

[R] Reshaping Data for bi-partite Network Analysis

2013-04-13 Thread sylvain willart
Hello I have a dataset of people spending time in places. But most people don't hang out in all the places. it looks like: Input-data.frame(people=c(Marc,Marc,Joe,Joe,Joe,Mary), + place=c(school,home,home,sport,beach,school), + time=c(2,4,3,1,5,4)) Input people

Re: [R] Reshaping Data for bi-partite Network Analysis [SOLVED]

2013-04-13 Thread sylvain willart
04 2 0 #3 Mary 00 4 0 #or xtabs(time~.,Input) # place #people beach home school sport # Joe 53 0 1 # Marc 04 2 0 # Mary 00 4 0 A.K. From: sylvain willart

[R] Breusch-Pagan heterosckedasticity test for mixed models - does it exist ?

2014-08-06 Thread sylvain willart
Hi everyone, I'm asked to perform a heteroskedasticity test for a model, Usually, I use lmtest:bptest and it works fine, But this model I have to test was estimated using nlme:lme, and the bptest function seems to complain about it (no R-Squared I guess?), So I wonder: Does it exist a bptest for