[R] R Server Sizing Guidelines

2016-03-07 Thread Manish MAHESHWARI
Hi All, Are there any best practices on R Server Sizing Guidelines? Especially around CPU to Memory Ratio and SDD Disks on the Server? Thanks, Manish CONFIDENTIAL NOTE: The information contained in this email is intended only...{{dropped:11}} __ R-hel

Re: [R] Help in R code

2016-03-07 Thread PIKAL Petr
Hi Keep your reply to the list. Hm. There is natural language processing section in Task View. Maybe you could use already developed instruments for processing text. I vaguely remember there was also some article in R journal about text mining. And searching internet by R text mining gave me

[R] merging data frame with world map

2016-03-07 Thread hoda rahmati via R-help
Hi all,I have a data frame which have a column named COUNTRY, I want to merge my data frame with world map from ggmap to plot it on world map, but when I merge my data frame with world map I get 0 observations! Here is my main data frame (mydata):     'data.frame':   269265 obs. of  470 variabl

Re: [R] merging data frame with world map

2016-03-07 Thread Michael Dewey
Inline On 07/03/2016 12:21, hoda rahmati via R-help wrote: Hi all,I have a data frame which have a column named COUNTRY, I want to merge my data frame with world map from ggmap to plot it on world map, but when I merge my data frame with world map I get 0 observations! Here is my main data fr

Re: [R] merging data frame with world map

2016-03-07 Thread Boris Steipe
And more! :-) On Mar 7, 2016, at 8:15 AM, Michael Dewey wrote: > Inline > > On 07/03/2016 12:21, hoda rahmati via R-help wrote: >> Hi all,I have a data frame which have a column named COUNTRY, I want to >> merge my data frame with world map from ggmap to plot it on world map, but >> when I mer

[R] Rfacebook -- searchPages() -- help

2016-03-07 Thread Sandeep Rana
Hi, I’m using searchPages() function in ‘Rfacebook' package. I want to know why I receive 400 pages when i command only 300 pages in the function. sample code: searchPages(‘youtube’, n=300, token=fb_oauth) output printed: 200 pages 400 Also, the result differs whenever I specify n>200 in the

[R] [R-pkgs] lavaan.shiny "latent variable analysis with shiny"

2016-03-07 Thread Kyle Hamilton
Dear R users, I'm pleased to announce that the first release of lavaan.shiny has been released to CRAN. lavaan.shiny "latent variable analysis with shiny" has built in examples from the lavaan package and currently supports latent growth curve models, confirmatory factor analysis, and structural

[R] Lexical scoping for step and add1 functions

2016-03-07 Thread Louisell, Paul T PW
Hi, I've run into a problem calling the step function from within a function; I sent this to the R development list first, but the moderator said it was better suited to R help. My OS is Windows 7 and I'm using R version 3.2.3. Here's a simple function to help reproduce the error: > test.

[R] using factor variable in the "DO" function

2016-03-07 Thread Veerappa Chetty
Hi, The following call does not work: dfhosp=dat.2.wide.sub %>% group_by(HOSP_NRD)%>% do(fitHosp=lm(log(y)~ log(x)+I(log(x)^2)+NCHRONIC+AGE+sex ,data=.)) Error in `$<-.data.frame`(`*tmp*`, "sex", value = integer(0)) : replacement has 0 rows, data has 25174 When I use "sex" as a binary varia

[R] Problem installing ggplot2 in R 3.2.3

2016-03-07 Thread jessy
Hi, I am trying to install ggplot2 in R software but Im getting the following error message: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘Rcpp’ Error: package or namespace load failed for ‘ggplot2’ Please help me with this is

Re: [R] Problem installing ggplot2 in R 3.2.3

2016-03-07 Thread Sarah Goslee
You should install the Rcpp package, as the error message is telling you. You could also use the dependencies=TRUE argument to install.packages(). Sarah On Mon, Mar 7, 2016 at 2:23 PM, jessy wrote: > Hi, > I am trying to install ggplot2 in R software but Im getting the following > error message

Re: [R] Problem installing ggplot2 in R 3.2.3

2016-03-07 Thread Jeff Newmiller
Apparently you do not have a required package installed that ggplot2 depends on. How you arrived at that condition is not clear because you have not told us the minimum information mentioned in the Posting Guide. Since the typical way to install ggplot2 is to use the install.packages( "ggplot2"

[R] Error loading object in stats package

2016-03-07 Thread a.sanders
I am trying to use a package that uses the package car which uses sigma in the stats package, but apparently my version of the stats package doesn't contain the function sigma. How can I go about fixing this? Thanks Error : object 'sigma' is not exported by 'namespace:stats' In addition: Warn

[R] stats:sigma doesnt exist in 3.2.3

2016-03-07 Thread Adam Sanders
I am trying to use a package that uses the package car which uses sigma in the stats package, but apparently my version of the stats package doesn’t contain the function sigma. How can I go about fixing this? Thanks Error : object ‘sigma’ is not exported by 'namespace:stats' In addition: War

Re: [R] stats:sigma doesnt exist in 3.2.3

2016-03-07 Thread Uwe Ligges
On 07.03.2016 21:46, Adam Sanders wrote: I am trying to use a package that uses the package car which uses sigma in the stats package, but apparently my version of the stats package doesn’t contain the function sigma. How can I go about fixing this? Thanks Error : object ‘sigma’ is not ex

Re: [R] Error loading object in stats package

2016-03-07 Thread Uwe Ligges
See my answer to your other message. Best, Uwe Ligges On 07.03.2016 21:34, a.sand...@navitaire.com wrote: I am trying to use a package that uses the package car which uses sigma in the stats package, but apparently my version of the stats package doesn't contain the function sigma. How can I

Re: [R] Error loading object in stats package

2016-03-07 Thread David Winsemius
> On Mar 7, 2016, at 12:34 PM, > wrote: > > I am trying to use a package that uses the package car which uses sigma in > the stats package, but apparently my version of the stats package doesn't > contain the function sigma. How can I go about fixing this? > > Thanks > > > Error : object

[R] mice package

2016-03-07 Thread Giuseppe Biondi Zoccai
I am using the mice package to impute some missing values, and it work nicely. I am facing a tricky strategic question though. Basically, I am working on predictors of myocardial infarction, with all patients having baseline features (eg age, gender), despite a few missing values. Some patients hav

Re: [R] mice package

2016-03-07 Thread Bert Gunter
While your queries certainly intersect R , they are mostly about statistical methodology for this special kind of missing data. This list is mostly about R programming. I think you would do better posting to a statistics list, like stats.stackexchange.com . Advice there might bring you back here to

[R] Extract every 2 element for a list which are not equal in length

2016-03-07 Thread Mohammad Tanvir Ahamed via R-help
Hi, a <- c(1:5)b <- c(1:3) c <- 1 d <- 5 e <- list(a,b,c,d) # To extract every 1st element lapply(e,"[[",1) ## Out-put [[1]] [1] 1 [[2]] [1] 1 [[3]] [1] 1 [[4]] [1] 5 #To extract every 2nd element (Need help in this case) lapply(e,"[[",2) ## Expected outcome [[1]] [1] 2 [[2]]

Re: [R] Extract every 2 element for a list which are not equal in length

2016-03-07 Thread Jim Lemon
Hi Tanvir, I think what you want is: lapply(e,"[",1) lapply(e,"[",2) Jim On Tue, Mar 8, 2016 at 11:47 AM, Mohammad Tanvir Ahamed via R-help wrote: > Hi, > > a <- c(1:5)b <- c(1:3) > c <- 1 > d <- 5 > e <- list(a,b,c,d) > > # To extract every 1st element > lapply(e,"[[",1) > > ## Out-put > [[1]

Re: [R] Extract every 2 element for a list which are not equal in length

2016-03-07 Thread Jorge I Velez
Dear Mohammad, What's wrong with the result? Best, Jorge.- On Monday, March 7, 2016, Mohammad Tanvir Ahamed via R-help < r-help@r-project.org> wrote: > Hi, > > a <- c(1:5)b <- c(1:3) > c <- 1 > d <- 5 > e <- list(a,b,c,d) > > # To extract every 1st element > lapply(e,"[[",1) > > ## Out-put > [[1]

Re: [R] Extract every 2 element for a list which are not equal in length

2016-03-07 Thread Mohammad Tanvir Ahamed via R-help
Hi Jim, Thanks . Some how i have messed up mu lapply function. Worked upon restart. Tanvir Ahamed Göteborg, Sweden | mashra...@yahoo.com - Original Message - From: Jim Lemon To: Mohammad Tanvir Ahamed Cc: R-help Mailing List Sent: Tuesday, 8 March 2016, 3:00 Subject: Re: [R]

Re: [R] Extract every 2 element for a list which are not equal in length

2016-03-07 Thread Mohammad Tanvir Ahamed via R-help
Hi Jorge,  Thanks . Some how i have messed up mu lapply function.Worked upon restart.   Tanvir Ahamed Göteborg, Sweden | mashra...@yahoo.com From: Jorge I Velez To: Mohammad Tanvir Ahamed Cc: R-help Mailing List Sent: Tuesday, 8 March 2016, 3:04 Subject: Re: [R] Extract ever