[R] 3 variables - GLM -- Warning Message ?

2012-01-24 Thread Jhope
Hi , I am trying to do a 3 variable interaction and received this warning message. Can someone please interpret? Model31.glm - glm(cbind(Shells, TotalEggs-Shells) ~ Aeventexhumed:HTL:Sector, data=data.to.analyze, family = binomial) Warning message: glm.fit: fitted probabilities numerically 0 or

[R] PCA for assets based household income analysis ( hetcor and princomp)

2012-01-24 Thread Mohd masood
I am doing Principal Component Analysis (PCA) on assets data for household income prediction. The problem is that the assets data are rank ordered (usually binary ... possess car/don't possess car), so the normal correlation is inappropriate for the calculation of the PCA. Instead one has to

[R] warning massage longer object length is not a multiple of shorter object length

2012-01-24 Thread uday
Dear All, I have data set which includes details of locations e.g latitude, longitude , time. I would like to compare two different data sets ( sampling in space and time). the e.g data sets are as follows t_lat [1] -90.00 -86.17 -82.34 -78.51 -74.68 -70.85 -67.02 -63.19 -59.36 -55.53

[R] sampling weights in package lme4

2012-01-24 Thread Mohd masood
Dear All I am trying to include sampling weights in multilavel regression analysis using packege lme4 using following codes print(fm1 lt;- lmer(DC~sex+age+smoker+alcohol+fruits(1|setting), dataset,REML = FALSE), corr = FALSE) print(fm2 lt;-

Re: [R] warning massage longer object length is not a multiple of shorter object length

2012-01-24 Thread uday
sorry there is typing error in codes the correct ones are nobs-length(s_lat) for (i in 1:length(nobs)){lat_match- which(abs(t_lat - s_lat == min(abs(t_lat - s_lat)))} -- View this message in context:

Re: [R] warning massage longer object length is not a multiple of shorter object length

2012-01-24 Thread Petr PIKAL
Hi Dear All, I have data set which includes details of locations e.g latitude, longitude , time. I would like to compare two different data sets ( sampling in space and time). the e.g data sets are as follows t_lat [1] -90.00 -86.17 -82.34 -78.51 -74.68 -70.85 -67.02 -63.19

[R] Column name containing -

2012-01-24 Thread Mark Seeto
I'm trying to create a data frame in which some of the column names contain a dash -. A simple example: d - data.frame(x = c(0, 1)) d - data.frame(d, y = c(0,1)) names(d)[2] - a.-5 d x a.-5 1 00 2 11 d - data.frame(d, y = c(0,1)) d x a..5 y 1 00 0 2 11 1 names(d)[2] - a.-5 d

Re: [R] Column name containing -

2012-01-24 Thread Ivan Calandra
Hi Mark, I cannot tell you why (maybe someone else can), but the check.names argument to data.frame() interpret a.-5 as an unvalid name and convert to to a valid one. What I don't understand is why it isn't valid since it works anyway. You can set up the check.names argument to FALSE when

Re: [R] What package is used for the following graph?

2012-01-24 Thread Jim Lemon
On 01/24/2012 06:23 AM, Debs Majumdar wrote: Hi All, I am trying to figure out what package was used to create the following graph? http://f.imgtmp.com/MZjwy.png Why stackpoly in plotrix, of course. Jim powerplot.pdf Description: Adobe PDF document

[R] lattice_wireframe_shade

2012-01-24 Thread Branimir Hackenberger
I am using wireframe function from lattice package, and I would like to use shade option in a manner that can decide which color palette I want to use. If I am using drape=TRUE option and I have no shade effect, but if I am using shade=TRUE than I loose drape palette I wished. For instance, I

Re: [R] 3 variables - GLM -- Warning Message ?

2012-01-24 Thread ONKELINX, Thierry
J, For at least one combination of Aeventexhumed:HTL:Sector Shell is either 0 or equal to TotalEggs. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie Kwaliteitszorg / team Biometrics Quality Assurance

Re: [R] What package is used for the following graph?

2012-01-24 Thread Petr PIKAL
Or maybe ?filled.contour. Regards Petr On 01/24/2012 06:23 AM, Debs Majumdar wrote: Hi All, I am trying to figure out what package was used to create the following graph? http://f.imgtmp.com/MZjwy.png Why stackpoly in plotrix, of course. Jim [příloha powerplot.pdf

Re: [R] What package is used for the following graph?

2012-01-24 Thread Jim Lemon
On 01/24/2012 09:13 PM, Petr PIKAL wrote: Or maybe ?filled.contour. Regards Petr On 01/24/2012 06:23 AM, Debs Majumdar wrote: Hi All, I am trying to figure out what package was used to create the following graph? http://f.imgtmp.com/MZjwy.png Why stackpoly in plotrix, of course.

[R] Splitting up large set of survey data into categories

2012-01-24 Thread ak13
Hi, I am a total newbie to R so I apologize if the answer to my question is too obvious. I a data set of the following form: Date V1 V... VN Region Industry 22/03/1995 23:01:12 1 3 2 15 A

Re: [R] warning massage longer object length is not a multiple of shorter object length

2012-01-24 Thread uday
Hi Thanks for reply, there was some mistakes in typo. I have already corrected it. this function gives us closest point ( R book reference). So I would like to find all observations on another grid spatially and temporally. the function is just for finding all closest observations. uday --

Re: [R] read in Stata and SPSS with value labels/formats

2012-01-24 Thread Georgie
This site can help you with SPSS stuff, http://www.ivoryresearch.com/custom-statistical-services-spss.php its really good -- View this message in context: http://r.789695.n4.nabble.com/read-in-Stata-and-SPSS-with-value-labels-formats-tp4311210p4323359.html Sent from the R help mailing list

[R] gsub semicolon with double quotation mark

2012-01-24 Thread Assa Yeroslaviz
Hi, I would like to substitute a semicolon with two double quotation marks and a comma inbetween. It suppose to look like that: I have: FBpp0070086;FBpp0099643;FBpp0112915 I would like to have: FBpp0070086,FBpp0099643,FBpp0112915 I tried with various numbers of backslashes, but noe have worked.

Re: [R] problems with rollapply {zoo}

2012-01-24 Thread Gabor Grothendieck
On Tue, Jan 24, 2012 at 12:20 AM, Ted Byers r.ted.by...@gmail.com wrote: Here is a relatively simple script (with comments as to the logic interspersed): # Some of these libraries are probably not needed here, but leaving them in place harms nothing: library(tseries) library(xts)

[R] debug package: mtrace fails

2012-01-24 Thread deivit
Hi all, Since three month ago I started working with R professionally, I never did it before, so I am such a newbie. I am having some problems using the 'debug' package. I love this package, but most of the times I wanna use it it just fails :P When typing at prompt 'mtrace(myfunct)' most of

[R] Calling function in DLL using .C

2012-01-24 Thread Alex van der Spek
I cannot understand why a function appears to be available to R (is.loaded('planckwR') returns TRUE) but the call with .C results in an error message: C symbol name 'planckwR' not in DLL for package path to DLL file here This is what I do: Loading a homebrewed DLL, compiled with MS VS97.

[R] how to remove library source from sweave

2012-01-24 Thread arunkumar1111
Hi I need to remove source of the library from sweave. Please help me cat(\nlibrary(caret),file = abc.Rnw, append = TRUE) cat(\nlibrary(xtable),file = abc.Rnw, append = TRUE) i'm getting the source of the library also. can any one help - Thanks in Advance Arun -- View this

Re: [R] gsub semicolon with double quotation mark

2012-01-24 Thread Ista Zahn
Hi Assa, On Tue, Jan 24, 2012 at 6:30 AM, Assa Yeroslaviz fry...@gmail.com wrote: Hi, I would like to substitute a semicolon with two double quotation marks and a comma inbetween. It suppose to look like that: I have: FBpp0070086;FBpp0099643;FBpp0112915 I would like to have:

[R] Error is coming as NULL

2012-01-24 Thread Sri krishna Devarayalu Balanagu
Hi All, This is the file which I want to import into R After importing and querying the data, error is coming as null. read.csv(Noname3.csv, header=T) - FD FD$SUBJECT NULL Can please help? Regards Devarayalu __ R-help@r-project.org mailing list

Re: [R] problems with FEAR

2012-01-24 Thread Uwe Ligges
On 23.01.2012 19:43, Ben Bolker wrote: Uwe Liggesliggesat statistik.tu-dortmund.de writes: On 23.01.2012 15:12, Gilda Mazzarelli wrote: Hi all! I'va tried to install the routine FEAR in R, to compute DEA estimates for an academic work. I've downloaded and installed R (the last version

Re: [R] Rmpi loading error

2012-01-24 Thread Uwe Ligges
On 23.01.2012 20:05, Tom Porteus wrote: I am running R 2.14.1 on a Windows XP (32 bit) system, and am trying to install the package 'Rmpi' to allow me to parallel process on all cores of a quad-core PC (and if that works well, I want to add extra slaves from a dual-core laptop). Rmpi appears

Re: [R] Error is coming as NULL

2012-01-24 Thread Petr Savicky
On Tue, Jan 24, 2012 at 12:07:26PM +, Sri krishna Devarayalu Balanagu wrote: Hi All, This is the file which I want to import into R After importing and querying the data, error is coming as null. read.csv(Noname3.csv, header=T) - FD FD$SUBJECT NULL Hi. Names of the columns are

Re: [R] gsub semicolon with double quotation mark

2012-01-24 Thread Assa Yeroslaviz
Hi Ista, This is hat I thought I am doing I forgot to mention, but I am working with a table which look like that: head(data) id protein_ids 45FBpp0070037 46FBpp0070039;FBpp0070040 47FBpp0070041;FBpp0070042;FBpp0070043 48FBpp0070044;FBpp0110571 ... For one line your solution

[R] Writing a function to return column position XXXX

2012-01-24 Thread Dan Abner
Hello everyone, I am writing my own function to return the column index of all variables (these are currently character vectors) in a data frame that contain a dollar sign($). A small piece of the data look like this: can_sta can_zip ind_ite_con ind_uni_con AL 36106 $251,895.80 $22,874.43 AL

[R] Adding text to multiple plots

2012-01-24 Thread ksaw
Dear R-helpers, I am trying to add an information about the mean value for each variable within each plot by adding text to the multiple plots in this way: par(mfrow=c(2,2)) df$Date - as.Date(df$Date, format=%d/%m/%Y) for (i in 2:5){ plot(df$Date, df[[i]]) Mean -

Re: [R] Writing a function to return column position XXXX

2012-01-24 Thread R. Michael Weylandt
Either any(grepl($,x, fixed = TRUE)) # You probably want grepl not grep any(grepl(\\$,x) ) ? regexpr # $ has a special value Michael PS -- Stop with HTML postings (seriously, it actually does mess up what the rest of us see and I think it causes trouble for the archives as well) On Tue, Jan

Re: [R] Writing a function to return column position XXXX

2012-01-24 Thread Mikko Korpela
On 01/24/2012 03:49 PM, Dan Abner wrote: Hello everyone, I am writing my own function to return the column index of all variables (these are currently character vectors) in a data frame that contain a dollar sign($). A small piece of the data look like this: can_sta can_zip

[R] interval estimates of bivariate means

2012-01-24 Thread Ondřej Mikula
Dear R-helpers, I have a bivariate phenotype to be compared between several groups. Using 'manova' function I can get point estimates of group means. I would like to plot these estimates together with their confidence ellipses, but I do not know, how to get interval estimates of group means as

Re: [R] Column name containing -

2012-01-24 Thread David Winsemius
On Jan 24, 2012, at 4:44 AM, Ivan Calandra wrote: Hi Mark, I cannot tell you why (maybe someone else can), but the check.names argument to data.frame() interpret a.-5 as an unvalid name and convert to to a valid one. What I don't understand is why it isn't valid since it works anyway.

Re: [R] Jags problem

2012-01-24 Thread Xavier Fernández i Marín
Yuanyuan Tang vas escriure el dia dl, 23 gen 2012: Hi, all: I met Non-conforming parameters for function %*% problem, when I run the Jags model in R. Please, try the JAGS forum: http://sourceforge.net/projects/mcmc-jags/forums/forum/610037 And start trying to find the problem as is

Re: [R] HoltWinters problem

2012-01-24 Thread mooooore
It seems that using Beta=NULL causes the routine to function the way beta=TRUE used to function, i.e., the value is computed and reported. I think, IMHO, that this new functionality should this be documented on the help page. I did not test out how the gamma parameter behaves. Thanks. -- View

[R] data extraction in R

2012-01-24 Thread crimsonengineer87
All, I currently have a dataset with a variety of different columns, let's say, A,B,C, and D. I'd like to run an R script that graphs only certain rows of the dataset based on what's in column A. In awk, it'd be something like: awk ' { if(A==5 B ==6) print $0 } ' datafile | command or file

Re: [R] Column name containing -

2012-01-24 Thread Ivan Calandra
By it works anyway, I mean that you can have a dash in a column name, there is no error or even warning. I guess that some functions would throw an error or warning, depending on the requirements, but data.frame() doesn't. Ivan Le 24/01/12 15:35, David Winsemius a écrit : On Jan 24, 2012,

[R] empirical copula, copula package gof Test

2012-01-24 Thread Kellner
Hi everybody, I know that a similiar topic has been posted, but as my question differs I am opening a new topic. I am trying to follow how the godness of fit test for copulas in the copula package works. Therefore I wrote a function to caculate the empirical copula, whose results are necessary to

[R] Select elements from text

2012-01-24 Thread mdvaan
Hi, I have a series of MS word files and each file contains plain text. From these texts I would like to extract only those elements (read: words) that are between square brackets. Example of a text: Most fundamentally, it has led to an effort to clarify the organizational form concept.

Re: [R] Calling function in DLL using .C

2012-01-24 Thread Duncan Murdoch
On 24/01/2012 6:49 AM, Alex van der Spek wrote: I cannot understand why a function appears to be available to R (is.loaded('planckwR') returns TRUE) but the call with .C results in an error message: C symbol name 'planckwR' not in DLL for packagepath to DLL file here You posted this question

Re: [R] Select elements from text

2012-01-24 Thread Justin Haynes
how bout using read.table(... , sep= ). That would give you a vector of single words. then grepl(\\[[9-z]+\\],x) will return a boolean vector x-c('test','[bracket]','hi]','[blah','foo','[bar]') grepl('\\[[9-z]+\\]',x) [1] FALSE TRUE FALSE FALSE FALSE TRUE x[grepl('\\[[9-z]+\\]',x)] [1]

Re: [R] Adding text to multiple plots

2012-01-24 Thread David Winsemius
On Jan 24, 2012, at 8:12 AM, ksaw wrote: Dear R-helpers, I am trying to add an information about the mean value for each variable within each plot by adding text to the multiple plots in this way: par(mfrow=c(2,2)) df$Date - as.Date(df$Date, format=%d/%m/%Y) for (i in 2:5){

[R] lattice wireframe_box around picture

2012-01-24 Thread Branimir Hackenberger
I am using the wireframe function from lattice package. The problem that I have is very interesting. Namely, this is my code: x= seq(-pi, pi, len = 20) y=seq(-pi, pi, len = 20) xyz= expand.grid(x = x, y = y) xyz$z=sin(sqrt(xyz$x^2 +xyz$y^2))

[R] Moving-Tiles Bootstrap

2012-01-24 Thread Kim Elmore
I wish to perform moving tiles bootstrap resampling on some gridded data meteorological data. I've many years experience with S-Plus, but it has no way to perform a moving-tiles bootstrap. Within R I've learned how to use quadratresample() with the spatstats package and would be happy to

Re: [R] Column name containing -

2012-01-24 Thread Bert Gunter
Ivan: On Tue, Jan 24, 2012 at 6:47 AM, Ivan Calandra ivan.calan...@u-bourgogne.fr wrote: By it works anyway, I mean that you can have a dash in a column name, there is no error or even warning. I guess that some functions would throw an error or warning, depending on the requirements, but

Re: [R] debug package: mtrace fails

2012-01-24 Thread Tal Galili
Hi Deivit, Can you offer a self contained example of r code when the function fails for you? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

Re: [R] Splitting up large set of survey data into categories

2012-01-24 Thread Tal Galili
Hi andreas, Please give a sample of your data, and how you want it to be after the manipulation. Consider using ?dput Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] Writing a function to return column position XXXX

2012-01-24 Thread Dan Abner
Hi everyone, I am using Michael's approach (grepl()) to identify which columns containing $ signs. I was hoping to incorporate this into a line of code that would automatically 1) find which columns contain $ signs, 2) strip the $ and commas, and 3) convert the result to a numeric vector. I have

Re: [R] Normalization in R

2012-01-24 Thread Juliet Hannah
For quantile normalization check out normalize.quantiles in the Biocondcutor preProcess package. Also, there is a Bioconductor mailing list for future where these topics are discussed. http://svitsrv25.epfl.ch/R-doc/library/preprocessCore/html/normalize.quantiles.html On Sat, Jan 21, 2012 at

Re: [R] Help: read a proportion of high through-put data

2012-01-24 Thread Chee Chen
Hi, Michael, Got it, thank you so much! Chee From: R. Michael Weylandt Sent: Monday, January 23, 2012 11:33 PM To: r-help ; Chee Chen Subject: Re: [R] Help: read a proportion of high through-put data Ok, it seems to have worked on my machine as well, but for some levels you didn't mention

[R] reshape dataframe to array (pivot table)

2012-01-24 Thread Johannes Radinger
Hello, I would like to reshape a dataframe into an array. This is kind a similar task as Excel performs with a Pivot table. To illustrate it: LOC - factor(c(1,2,2,3,1,1)) SPEC1 - c(0,0,23,0,12,11) SPEC2 - c(1,2,0,0,0,4) df - data.frame(LOC,SPEC1,SPEC2) # original dataframe a -

[R] Looping and actual variable names

2012-01-24 Thread Gordon, Alan
Dear R users, I'm a new user to R and have a data set consisting of a number of variables (in a data frame). I wish to carry out a regression analysis of the first variable against all the rest in turn. I have used the following code to do this dd-read.table(for loop.txt,header=T) for (j in

Re: [R] debug package: mtrace fails

2012-01-24 Thread deivit
I'll try, Here is a piece of code it fails for me, the error I get is always the same, and it happens in most of my functions. The problem is always the same trying to execute 'mtrace'. Thanks! --- execution -- mtrace(index_remap) Error in x[[i]] : subscript out of

[R] drop columns whose rows are all 0

2012-01-24 Thread Francisco
Hello, I have a dataset with 40 variables, some of them are always 0 (each row). I would like to make a subset containing only the columns which values are not all 0, but I don't know how to do it. I tried: for(cut_column in 1:40) { if(sum(dataset[,cut_column])!=0) {

Re: [R] Column name containing -

2012-01-24 Thread Ivan Calandra
Bert, Thank you for correcting my inaccuracy. A quick look at the original question might help you understand what I meant: d- data.frame(x = c(0, 1)) d- data.frame(d, y = c(0,1)) names(d)[2]- a.-5 d x a.-5 1 00 2 11 d1- data.frame(d, y = c(0,1)) d1 x a..5 y 1 00 0 2 11 1

Re: [R] Writing a function to return column position XXXX

2012-01-24 Thread David Winsemius
On Jan 24, 2012, at 11:07 AM, Dan Abner wrote: Hi everyone, I am using Michael's approach (grepl()) to identify which columns containing $ signs. I was hoping to incorporate this into a line of code that would automatically 1) find which columns contain $ signs, 2) strip the $ and commas, and

Re: [R] Adding text to multiple plots

2012-01-24 Thread Katarzyna Sawicka
Dear David, Thanks for your reply. However, I can't see how this is a case. The table is read into R from .csv file. The column Date has a factor format then. If I don't change it to as.Date format and use the same code, the 'text' function print the mean by the maximum on y ax regardless to

Re: [R] Column name containing -

2012-01-24 Thread R. Michael Weylandt
I've usually understand the restrictions on syntactic names as being tied to the parser. E.g., how could R tell the difference between d - data.frame(a = 3, `a-2` = 3, check.names = TRUE) d$a-2 ## Equal to 1 or 3 ? One of those strange eval things that makes alot of sense for an interactive

Re: [R] Column name containing -

2012-01-24 Thread R. Michael Weylandt
Sorry, I meant check.names = FALSE (d'oh!) Michael On Tue, Jan 24, 2012 at 11:33 AM, R. Michael Weylandt michael.weyla...@gmail.com wrote: I've usually understand the restrictions on syntactic names as being tied to the parser. E.g., how could R tell the difference between d - data.frame(a

Re: [R] drop columns whose rows are all 0

2012-01-24 Thread Justin Haynes
dataset-data.frame(a=1:10,b=c(0,0,0,1,0,0,0,0,1,0),c=rep(0,10)) apply(dataset,2,function(x) all(x==0)) a b c FALSE FALSE TRUE dataset[,!apply(dataset,2,function(x) all(x==0))] a b 1 1 0 2 2 0 3 3 0 4 4 1 5 5 0 6 6 0 7 7 0 8 8 0 9 9 1 10 10 0 On Tue, Jan

Re: [R] Adding text to multiple plots

2012-01-24 Thread David Winsemius
On Jan 24, 2012, at 11:20 AM, Katarzyna Sawicka wrote: Dear David, Thanks for your reply. However, I can't see how this is a case. The table is read into R from .csv file. The column Date has a factor format then. If I don't change it to as.Date format and use the same code, the 'text'

Re: [R] drop columns whose rows are all 0

2012-01-24 Thread Jorge I Velez
Try also dataset[, colSums(dataset == 0) != nrow(dataset)] HTH, Jorge.- On Tue, Jan 24, 2012 at 11:14 AM, Francisco wrote: Hello, I have a dataset with 40 variables, some of them are always 0 (each row). I would like to make a subset containing only the columns which values are not all

Re: [R] Column name containing -

2012-01-24 Thread Bert Gunter
Ivan: AFAICS you did not read my post carefully enough. Unquoted improper identifiers trigger an error because the input cannot be parsed. It has nothing to do with data.frame() .(**R EXPERTS, PLEASE CORRECT IF WRONG**). Unquoted LEGAL names are accepted because that's how R works -- they can be

[R] Checking for invalid dates: Code works but needs improvement

2012-01-24 Thread Paul Miller
Hello Everyone, Still new to R. Wrote some code that finds and prints invalid dates (see below). This code works but I suspect it's not very good. If someone could show me a better way, I'd greatly appreciate it. Here is some information about what I'm trying to accomplish. My sense is that

Re: [R] Splitting up large set of survey data into categories

2012-01-24 Thread ak13
Hi Tal, thank you very much for your reply. The xts-dataframe I am using is like: example - as.data.frame(structure(c( 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 3, 1, 1, 2, 2, 3, 1, 2, 2, 1, 2, 1, 1, 2, NA, 2, NA, NA, 1, 3, 1, 3, 3, 2, 3, 3, 3, 2, 2, 2, 3, 3,

Re: [R] Calling function in DLL using .C

2012-01-24 Thread Alex van der Spek
Uploaded the DLL here: http://www.filefactory.com/file/c2c56ad/n/Planck.dll Appreciate if you can check to see if anything is wrong with this DLL. I use dumpbin to look at what is in the exports table of the DLL. No reason for concerns there. I can work with this DLL from both VBA and Python.

[R] function for grouping

2012-01-24 Thread yan jiao
Dear All, I'm wondering if there is a R function could give me all the combinations of the grouping/cluster result, given the number of the groups. e.g. 3 objects: x1 x2 x3, number of groups is 2 so the result will be group1:x1,x2; group2: x3 group1: x1;group2: x2,x3 group1: x1,x3;group2: x2

Re: [R] Moving-Tiles Bootstrap

2012-01-24 Thread Jeff Newmiller
A) Reposting the same message as a separate thread is bad netiquette. B) Posting HTML email on this list is strongly discouraged. C) You probably ought to read the posting guide. D) This is a list about using R. Posting theoretical questions without corresponding R code that illustrates what

Re: [R] Moving-Tiles Bootstrap

2012-01-24 Thread Kim Elmore
I wish to proffer my sincere apologies to both you and the list. I had not seen my posting appear -- it was initially held for moderator approval, but I never saw that it was released. During the subscription process, I had used an incorrect e-mail address and so withdrew the post. Within my

[R] Interactive map graphics.

2012-01-24 Thread Kevin Burton
I just watched http://www.youtube.com/watch?v=iSXNfZESR5I and there is a section where Hadley Wickham showed demonstrated a county map of the US that was interactive. This is exactly what I would like. I have downloaded ggplot2 but still failed to find out how to even read in and plot

Re: [R] Calling function in DLL using .C

2012-01-24 Thread Duncan Murdoch
On 24/01/2012 11:55 AM, Alex van der Spek wrote: Uploaded the DLL here: http://www.filefactory.com/file/c2c56ad/n/Planck.dll I get: 403 Forbidden Request forbidden by administrative rules. Duncan Murdoch Appreciate if you can check to see if anything is wrong with this DLL. I use

Re: [R] reshape dataframe to array (pivot table)

2012-01-24 Thread Rainer Schuermann
Hi, I wouldn't know how to fill the data into the array form you want, but you can get the aggregated data with dfm - melt( df ) dfc - cast( dfm, LOC ~ variable, sum ) dfc LOC SPEC1 SPEC2 1 123 5 2 223 2 3 3 0 0 Hope this helps as a first step! Rgds, Rainer

Re: [R] function for grouping

2012-01-24 Thread Petr Savicky
On Tue, Jan 24, 2012 at 05:19:42PM +, yan jiao wrote: Dear All, I'm wondering if there is a R function could give me all the combinations of the grouping/cluster result, given the number of the groups. e.g. 3 objects: x1 x2 x3, number of groups is 2 so the result will be

Re: [R] Interactive map graphics.

2012-01-24 Thread David Winsemius
On Jan 24, 2012, at 1:15 PM, Kevin Burton wrote: I just watched http://www.youtube.com/watch?v=iSXNfZESR5I and there is a section where Hadley Wickham showed demonstrated a county map of the US that was interactive. This is exactly what I would like. I have downloaded ggplot2 but

Re: [R] Interactive map graphics.

2012-01-24 Thread Tengfei Yin
Hi Kevin, I haven't watched through the video yet, but I guess It's not ggplot2, just like David pointed out, it's actually using a different graphic engine, implemented in packages qtbase/qtpaint, which are hosted on Biocondcutor, to install them, please run

Re: [R] Checking for invalid dates: Code works but needs improvement

2012-01-24 Thread Rui Barradas
Hello, Point 3 is very simple, instead of 'print' use 'cat'. Unlike 'print' it allows for several arguments and (very) simple formating. { cat(Error: Invalid date values in, DateNames[[i]], \n, TestDates[DateNames][[i]][TestDates$Invalid==1], \n) } Rui Barradas -- View this

Re: [R] Transparent color ramp problem

2012-01-24 Thread david99
I think you can do this in hexadecimal. To see this, compare the HEX output from rgb(1,0,0) and rgb(1,0,0,0.5): #FF #FF80 They differ only by the addition of the alpha digits hex 80 which are (almost) half way between 00 and FF. Making a non-transparent scale transparent is thus just a

[R] Question

2012-01-24 Thread Taylor, Brian
We were looking at conducting a pilot program with Dell to virtualize our lab environments. We are specifically looking at Dell/Citrix provisioning servers. The OS in this setup is streamed from the server on every boot. I was curious if the R Project had any licensing stipulations in this

Re: [R] sampling weights in package lme4

2012-01-24 Thread Thomas Lumley
On Tue, Jan 24, 2012 at 6:19 PM, Mohd masood masood0...@rediffmail.com wrote: Dear All I am trying to include sampling weights in multilavel regression analysis using packege lme4 using following codes print(fm1 lt;- lmer(DC~sex+age+smoker+alcohol+fruits(1|setting), dataset,REML = FALSE),

Re: [R] R not giving significance tests for coefficients/estimates?

2012-01-24 Thread Thomas Lumley
On Tue, Jan 24, 2012 at 9:36 AM, Bert Gunter gunter.ber...@gene.com wrote: 1. It's an interaction in a formula not a multiplication. 2. Read the Help file. It says to use ltsreg not lmsreg. 3. But no P values will be given anyway. The reason is that exact distributions and therefore

Re: [R] Question

2012-01-24 Thread Marc Schwartz
On Jan 24, 2012, at 11:17 AM, Taylor, Brian wrote: We were looking at conducting a pilot program with Dell to virtualize our lab environments. We are specifically looking at Dell/Citrix provisioning servers. The OS in this setup is streamed from the server on every boot. I was curious

[R] Error from Brugs 'r for windows gui front-end has stopped working''

2012-01-24 Thread Jin Minming
Dear all, I just try to run the example in R brugs packages, but not only once. Loop is added in this example. After several times (7, 11, or other random number), there is an error message r for windows gui front-end has stopped working. This happened in two laptops with windows 7 and vista.

Re: [R] function for grouping

2012-01-24 Thread Petr Savicky
On Tue, Jan 24, 2012 at 07:05:37PM +0100, Petr Savicky wrote: On Tue, Jan 24, 2012 at 05:19:42PM +, yan jiao wrote: Dear All, I'm wondering if there is a R function could give me all the combinations of the grouping/cluster result, given the number of the groups. e.g. 3 objects:

[R] read.table: how to ignore errors?

2012-01-24 Thread Sam Steingold
I get this error from read.table(): Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 234 did not have 8 elements The error is genuine (an extra field separator between 1st and 2nd element). 1. is there a way to see this bad line 234 from R without diving into

Re: [R] drop columns whose rows are all 0

2012-01-24 Thread Gregorio R. Serrano
dataset.1 - dataset[, apply(dataset, 2, sum)0] Gregorio R. Serrano 2012/1/24 Francisco franciscororol...@google.com Hello, I have a dataset with 40 variables, some of them are always 0 (each row). I would like to make a subset containing only the columns which values are not all 0, but I

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread Duncan Murdoch
On 24/01/2012 3:45 PM, Sam Steingold wrote: I get this error from read.table(): Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 234 did not have 8 elements The error is genuine (an extra field separator between 1st and 2nd element). 1. is there a way to see

Re: [R] drop columns whose rows are all 0

2012-01-24 Thread Rolf Turner
On 25/01/12 05:14, Francisco wrote: Hello, I have a dataset with 40 variables, some of them are always 0 (each row). I would like to make a subset containing only the columns which values are not all 0, but I don't know how to do it. I tried: for(cut_column in 1:40) {

Re: [R] Solving Equations

2012-01-24 Thread Carl Witthoft
Like the t-shirt says, There's no place like 127.0.0.1 quote Though I wasn't familiar with this I check the repositories list and CRAN (extras) is selected in my installation (R-2.14.1). By the way, when trying Ryacas after what seemed to be a successful install, for a simple example of

Re: [R] sampling weights in package lme4

2012-01-24 Thread peter dalgaard
On Jan 24, 2012, at 20:41 , Thomas Lumley wrote: It's not meant for sampling weights. It's meant for precision weights. How best to include sampling weights in mixed models is a research problem at the moment, but you can rely on getting the wrong answer if you just use the weights=

Re: [R] Solving Equations

2012-01-24 Thread Gabor Grothendieck
On Tue, Jan 24, 2012 at 4:07 PM, Carl Witthoft c...@witthoft.com wrote: Like the t-shirt says,  There's no place like 127.0.0.1 quote Though I wasn't familiar with this I check the repositories list and CRAN (extras) is selected in my installation (R-2.14.1). By the way, when trying

Re: [R] POSIXct value display incorrect for some values

2012-01-24 Thread Curt Seeliger
Yes, you're right about this being a floating point issue. I guess I wasn't clear enough that this was already understood. I'd have responded earlier the response somehow missed my mailbox. My question is rather whether there is a work around for correctly displaying POSIXct values as

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread R. Michael Weylandt
Given your domain name, you might also get some use out of the system() and system2() commands which allow the passing of strings to the OS command line (and thus the use of tools like grep/sed/awk within R) E.g., an idiom I use pretty frequently for interactive data analysis: (not really

Re: [R] Looping and actual variable names

2012-01-24 Thread Jean V Adams
Gordon, Alan wrote on 01/24/2012 09:15:31 AM: Dear R users, I'm a new user to R and have a data set consisting of a number of variables (in a data frame). I wish to carry out a regression analysis of the first variable against all the rest in turn. I have used the following code to do

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread Rolf Turner
On 25/01/12 09:45, Sam Steingold wrote: I get this error from read.table(): Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 234 did not have 8 elements The error is genuine (an extra field separator between 1st and 2nd element). 1. is there a way to see

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread Sam Steingold
* Duncan Murdoch zheqbpu.qha...@tznvy.pbz [2012-01-24 16:00:14 -0500]: On 24/01/2012 3:45 PM, Sam Steingold wrote: I get this error from read.table(): Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 234 did not have 8 elements The error is genuine (an

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread William Dunlap
Oh, yeah, a reproducible example: read.csv from = a,b 1,2 3,4 5,,6 7,8 = I want to be able to extract the data frame a b 1 1 1 The previous line should be '1 1 2', right? 2 3 4 3 7 8 Have you tried using count.fields to remove the lines in the file with

Re: [R] Solving Equations

2012-01-24 Thread Carl Witthoft
It was supposed to be a joke :-( On 1/24/12 4:15 PM, Gabor Grothendieck wrote: On Tue, Jan 24, 2012 at 4:07 PM, Carl Witthoftc...@witthoft.com wrote: Like the t-shirt says, There's no place like 127.0.0.1 quote Though I wasn't familiar with this I check the repositories list and CRAN

Re: [R] reshape dataframe to array (pivot table)

2012-01-24 Thread Jean V Adams
Johannes Radinger wrote on 01/24/2012 10:15:29 AM: Hello, I would like to reshape a dataframe into an array. This is kind a similar task as Excel performs with a Pivot table. To illustrate it: LOC - factor(c(1,2,2,3,1,1)) SPEC1 - c(0,0,23,0,12,11) SPEC2 - c(1,2,0,0,0,4) df -

Re: [R] read.table: how to ignore errors?

2012-01-24 Thread Sam Steingold
* William Dunlap jqha...@gvopb.pbz [2012-01-24 21:47:39 +]: Oh, yeah, a reproducible example: read.csv from = a,b 1,2 3,4 5,,6 7,8 = I want to be able to extract the data frame a b 1 1 1 The previous line should be '1 1 2', right? of course, thanks!

Re: [R] Calling function in DLL using .C

2012-01-24 Thread Alex van der Spek
Sorry, this works www.zdoor.home.xs4all.nl Thank you, Alex van der Spek On 01/24/2012 07:21 PM, Duncan Murdoch wrote: On 24/01/2012 11:55 AM, Alex van der Spek wrote: Uploaded the DLL here: http://www.filefactory.com/file/c2c56ad/n/Planck.dll I get: 403 Forbidden Request forbidden by

  1   2   >