Re: [R] Power of t test for unequal variances?

2016-12-19 Thread Gerrit Eichner
Hello, Mauricio, maybe pwr.t2n.test() in package pwr or/and n.ttest() in package samplesize do what you need/want. Hth -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212 gerrit.eich...@math.uni

Re: [R] Why Does R Print out strange record?

2016-12-19 Thread Richard M. Heiberger
You have read your Date variable in as a character variable, which was coerced to a factor. You probably wanted the values to be interpreted as dates. example of what to do is below. Note that the date-factor levels are sorted alphabetically, which is almost certainly not what you want. In additi

[R] Exploratory Factor Analysis with Multiply Imputed Data

2016-12-19 Thread Heather Kettrey
Hello, I am trying to conduct exploratory factor analysis (EFA) with multiply imputed data. I used Amelia II to create 40 imputed datasets and have saved the imputed data in .csv format (I saved the imputations both as a single file with all imputations and as 40 separate files - each containing o

[R] Why Does R Print out strange record?

2016-12-19 Thread arthur brogard via R-help
I have this bit of code: rates=read.csv("Rates2.csv") attach(rates) mysize <- nrow(rates) count <- 0 for(i in 1:(mysize - 3)) { #print(i) thisday <- Date[i] thisone <- Int[i+1] - Int[i] nextone <- Int[i+2] - Int[i] lastone <- thisone + nextone lastone <- lastone/6.5 lastone <- lastone * 1000 #prin

Re: [R] Power of t test for unequal variances?

2016-12-19 Thread David Winsemius
> On Dec 19, 2016, at 3:31 PM, David Winsemius wrote: > > >> On Dec 19, 2016, at 1:47 PM, Mauricio Cornejo via R-help >> wrote: >> >> Is there a function similar to stats::power.t.test that can handle unequal >> variances from two samples? >> I noticed that stats::t.test has an argument for

Re: [R] Power of t test for unequal variances?

2016-12-19 Thread David Winsemius
> On Dec 19, 2016, at 1:47 PM, Mauricio Cornejo via R-help > wrote: > > Is there a function similar to stats::power.t.test that can handle unequal > variances from two samples? > I noticed that stats::t.test has an argument for indicating whether or not to > treat the two sample variances as

Re: [R] data manipulation

2016-12-19 Thread Duncan Mackay
Hi David Thank you for the information I accidentally deleted my reply coming in from Rhelp and I have not had a look at at the list to see what happened. I thought that I had set everything up correctly when I had to switch to my new ISP and use MS Outlook for my email. Below is a dput of t

Re: [R] modify the imported version of a function

2016-12-19 Thread Benjamin Tyner
Figured it out...in case it is useful to others: > library(lint) > lint.enclos <- parent.env(asNamespace("lint")) > stopifnot(all(c("perl", "regex") %in% ls(lint.enclos))) > lint.enclos$perl function (pattern) { message("perl is deprecated. Please use regexp instead")

Re: [R] Regex to stop at first capital letter after sequence

2016-12-19 Thread Bert Gunter
You don't need a regex. ?strsplit Something like: > y <-c("PPA 06 - Promo Vasito", "PPA 05 - Cuentos") > sapply(strsplit(y, "-"),"[",2) [1] " Promo Vasito" " Cuentos" You may have to add spaces around your "-" , as you failed to supply data so I cannot be sure what you have. -- Bert Bert G

Re: [R] Regex to stop at first capital letter after sequence

2016-12-19 Thread Sarah Goslee
Hi, If your actual data are of the same form as your sample data, why not just: x <- c("PPA 06 - Promo Vasito", "PPA 05 - Cuentos", "PPA 04 - Promo vasito", "PPA 03 - Promoción escolar", "PPA - Saluda a tu pediatra", "PPL - Dia del Pediatra") sub("^.* - ", "", x) [1] "Promo Vasito" "Cuent

Re: [R] Regex to stop at first capital letter after sequence

2016-12-19 Thread David Winsemius
> On Dec 19, 2016, at 1:25 PM, Omar André Gonzáles Díaz > wrote: > > I have the following strings: > > [1] "PPA 06 - Promo Vasito" [2] "PPA 05 - Cuentos" > [3] "PPA 04 - Promo vasito" [4] "PPA 03 - Promoción escolar" > [5] "PPA - Saluda a tu pediatra" [6] "PPL - Dia del Pediatra" >

[R] Power of t test for unequal variances?

2016-12-19 Thread Mauricio Cornejo via R-help
Is there a function similar to stats::power.t.test that can handle unequal variances from two samples? I noticed that stats::t.test has an argument for indicating whether or not to treat the two sample variances as equal.  Wondering why stats::power.t.test doesn’t have that option. Thanks,Mauric

[R] Regex to stop at first capital letter after sequence

2016-12-19 Thread Omar André Gonzáles Díaz
I have the following strings: [1] "PPA 06 - Promo Vasito" [2] "PPA 05 - Cuentos" [3] "PPA 04 - Promo vasito" [4] "PPA 03 - Promoción escolar" [5] "PPA - Saluda a tu pediatra" [6] "PPL - Dia del Pediatra" *Desired result*: [1] "Promo Vasito" "Cuentos""Pro

Re: [R] Bugzilla account request

2016-12-19 Thread David Winsemius
> On Dec 19, 2016, at 12:25 AM, Florent Angly wrote: > > Hi, > > I have identified a couple of bugs that I would like to file on > https://bugs.r-project.org/ . > > Reading the archives, I found that the bugzilla account creation is not > automated anymore and must be mannually requested on th

Re: [R] getting data from a webpage

2016-12-19 Thread Bos, Roger
Glenn, R Studio did a webinar on Web Scraping using the rvest package that made it look really easy. I haven't gotten around to using it yet, but the video should be on their website somewhere. The link below is the PDF of the slides. It should be education and will probably give you what yo

[R] getting data from a webpage

2016-12-19 Thread Glenn Schultz
All, I was getting data swap rate data from the St. Louis Fed FRED database via the FRED API.  ICE stopped reporting to FRED and now I must get the data from the ICE website.  I would like to use httr to get the data but I really don't know much about website design.  I think the form redirect

[R] Bugzilla account request

2016-12-19 Thread Florent Angly
Hi, I have identified a couple of bugs that I would like to file on https://bugs.r-project.org/ . Reading the archives, I found that the bugzilla account creation is not automated anymore and must be mannually requested on this mailing list. Can an administrator please create an account for me?

Re: [R] qqplot: bar outline colour?

2016-12-19 Thread Ulrik Stervbo
Hi Dagmar, I hope this code below does what you want. I use two data.frames. One is for the tiles and one is for the lines to show changes in state. The 'reduce_entries' function is the heart of things and can probably be improved. Ulrik library(ggplot2) library(lubridate) library(dplyr) librar

[R] qqplot: bar outline colour?

2016-12-19 Thread Dagmar
Dear all, Apearantly noone in this great mailing list could help me with my problem a couple of days ago. As I still struggle with part of the problem I try to explain my problem differently: # This is my example data: exdatframe <- data.frame(Name=c("Ernie","Ernie","Ernie", "Leon","Leon