Re: [R] R-help Digest, Vol 154, Issue 1

2015-12-01 Thread 13351275265
I have the same question about the following strings: sub("^([0-9]*).*$", "\\1", fields) could you explain them in detail . I would lookforward to yourwonderful reply. 2015-12-01 13351275265 发件人:r-help-requ...@r-project.org 发送时间:2015-12-01 19:00 主题:R-help Digest, Vol 154

Re: [R] R help

2015-10-13 Thread Jeff Newmiller
In general you should read the Posting Guide mentioned at the bottom of every email, which points out that you should post in plain text. Figuring out how to send plain text email in your email client will help you make sure that we see what you see. You should also try to insert reproducible

Re: [R] R help

2015-10-13 Thread Sarah Goslee
Hi, First of all, you almost certainly want to get your data into R with stringsAsFactors=FALSE rather than creating a factor with 345196 levels. mydata <- read.table("whateverfile", stringsAsFactors=FALSE) I'm just guessing, but you probably also don't really want filter(), but subset() instead

[R] R help

2015-10-13 Thread Clayton Samples
Hello R community, I need a bit of direction. I am new to R, so please forgive any mistakes or confusion. Here is an example of the columns and data contained in my data frame. Number: Factor w 345196 levels "1.001", "1.002", "1.003", "2.001", "2.002", "2.003" Name: factor w 2 levels ("X", "Y")

[R] R help - "UCL at different levels"

2015-09-30 Thread Syed Abrar Ahmed
Hello Experts, I need your help to understand the how can we calculate the UCL values at different levels dynamically? Customer No Month Sales UCL 100 201501 500 550.75 100 201502 100 550.75 101 201501 400 425.25 101 201502 50 425.25 In the above scenario i need calculate UCL

Re: [R] R-help, please

2015-09-21 Thread MCGUIRE, Rhydwyn
y, 22 September 2015 12:15 AM To: r-help@R-project.org Subject: Re: [R] R-help, please Good day, My name is Kim Nguyen and please I need your help with: How to calculate the PASS rate of the data in the table below, with PASS in a single subject if value>=50 and PASS will be given if PASS 3

Re: [R] R-help, please

2015-09-21 Thread John Kane
It looks like you sent the e-mail in HTML. It is unreadable. You must sent e-mail to R-help in plain text not HTML John Kane Kingston ON Canada > -Original Message- > From: le4...@mweb.co.za > Sent: Mon, 21 Sep 2015 16:14:41 +0200 > To: r-help@r-project.org > Subject:

Re: [R] R-help, please

2015-09-21 Thread Rolf Turner
Your question looks very much like homework and this list does not do homework for people. Talk to your instructor. cheers, Rolf Turner On 22/09/15 02:14, le4...@mweb.co.za wrote: Good day, My name is Kim Nguyen and please I need your help with: How to calculate the PASS rate of the data

Re: [R] R-help, please

2015-09-21 Thread le4...@mweb.co.za
Good day, My name is Kim Nguyen and please I need your help with: How to calculate the PASS rate of the data in the table below, with PASS in a single subject if value>=50 and PASS will be given if PASS 3 out of 4 subjectsWhich package will I need to use in this analysis ID Literacy Maths

Re: [R] R-help

2015-08-29 Thread Jim Lemon
Hi Aun, It looks like you haven't installed the DBI package, which seems to be required by the hgu133acdf package. Try installing DBI first. Jim On Sun, Aug 30, 2015 at 12:57 PM, aun syed via R-help wrote: > Dear R administration, > i have installed R x64 3.2.2 and i am trying to install annota

[R] R-help

2015-08-29 Thread aun syed via R-help
Dear R administration,  i have installed R x64 3.2.2 and i am trying to install annotation software on it (hgu133a.db and hgu133acdf), but i am getting this error, how can i solve this issue, thanks for your help.Regards,Dr. Syed AunPost-Doctoral Fellow, China * installing *source* package 'hg

Re: [R] R: help with metasens

2015-08-13 Thread Michael Dewey
diagonal bacn is a typo, sorry for that. My brain meant to type diagonal band, ie going in this case from north west to south east but my fingers failed completely. On 13/08/2015 10:25, Mario Petretta wrote: Many thanks for your suggestion. I will try a new database search and the hc metaphor

[R] R: help with metasens

2015-08-13 Thread Mario Petretta
Obviously metafor and not metaphor. Sorry Mario [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] R: help with metasens

2015-08-13 Thread Mario Petretta
Many thanks for your suggestion. I will try a new database search and the hc metaphor function. Mario PS: what is diagonal bacn? -Messaggio originale- Da: Michael Dewey [mailto:li...@dewey.myzen.co.uk] Inviato: mercoledì 12 agosto 2015 18.19 A: petre...@unina.it; r-help@r-project.org O

Re: [R] R-help

2015-05-18 Thread Jeff Newmiller
It is quite clear that you are confused, because your function is full of variables that are not defined in your email. Unfortunately, that also makes helping you quite difficult. Also, your (accidental?) use of HTML format means that your code is garbled on our end (see below). You have to lear

Re: [R] R-help

2015-05-18 Thread Boris Steipe
(Don't post in HTML. Your code is illegible that way.) Something as simple as ... return(ts) ... to conclude your function perhaps? B. On May 18, 2015, at 7:32 AM, Ariadna García Sáenz wrote: > Good afternoon, > I'm working in a disease spread model, and I have to use a function to put >

[R] R-help

2015-05-18 Thread Ariadna García Sáenz
Good afternoon, I'm working in a disease spread model, and I have to use a function to put information on a table. My question is that I don't know how to get the output of this function in a table. Thanks in advance! Here I paste my script: tbmodel <- function(time,S,E,I,De,Di,beta,alpha,phi,rho

Re: [R] "R" help leaves out lines of text

2015-04-16 Thread paul
Duncan Murdoch gmail.com> writes: > The Cygwin release is not supported by us, and is known to be buggy, > because it doesn't handle line endings properly. > > You'll need to talk to the Cygwin folks if you can't reproduce this > in one of our releases available from > cran.r-project.org/bin/windo

Re: [R] "R" help leaves out lines of text

2015-04-16 Thread Duncan Murdoch
On 16/04/2015 12:23 AM, paul wrote: > I am ramping up on the R statistical analysis environment. I find > that the help leaves out entire lines of text. The pager is > /usr/lib/R/bin/pager. I changed it to /bin/less, but I see the same > symptom. The problem shows up both in xterm and mintty.

[R] "R" help leaves out lines of text

2015-04-16 Thread paul
I am ramping up on the R statistical analysis environment. I find that the help leaves out entire lines of text. The pager is /usr/lib/R/bin/pager. I changed it to /bin/less, but I see the same symptom. The problem shows up both in xterm and mintty. The computer is in a locked down environment

Re: [R] r help

2015-03-18 Thread John Kane
anada > -Original Message- > From: thanoon.youni...@gmail.com > Sent: Wed, 18 Mar 2015 20:12:53 +0300 > To: r-help@r-project.org > Subject: [R] r help > > Dear all members > > I have error with the following code > > #Input data set > thd <- as.ma

Re: [R] r help

2015-03-18 Thread jim holtman
Works fine for me. The error message just means that the last line did not end with a 'new line' character: > x <- as.matrix(read.table("/temp/td.txt")) Warning message: In read.table("/temp/td.txt") : incomplete final line found by readTableHeader on '/temp/td.txt' > data<-list(N1=2000,N2=2

[R] r help

2015-03-18 Thread thanoon younis
Dear all members I have error with the following code #Input data set thd <- as.matrix(read.table("C:/Users/hp/Desktop/thd.txt")) #Input data set data<-list(N1=2000,N2=2000,P=9,R=Ro,z1=yo1,z2=yo2,thd) and the the matrix -200.000 -2.517 -1.245 -0.444 0.848 200.000 -200.000 -1.447

Re: [R] R Help Pops um in Webbrowser | how to dissable

2015-03-13 Thread David Winsemius
On Mar 13, 2015, at 4:42 AM, acrodaniel wrote: > R studio writes that it has a problem with > > .rs.httpdPort() > > when startup > RStudio question are best handled on the web forums established to support that product. They are not on-topic for Rhelp. ## R-help@r-project.org maili

[R] R Help Pops um in Webbrowser | how to dissable

2015-03-13 Thread acrodaniel
Hello, i am new in R. When i search for any help in R-Studio. example ?mean a new Webpage opens with the help of mean. I want to see it in R-Studio. It worked until yesterday. I am using Arch bin version. Thanks for you help -- View this message in context: http://r.789695.n4.nabble.com/R

Re: [R] R Help Pops um in Webbrowser | how to dissable

2015-03-13 Thread acrodaniel
R studio writes that it has a problem with .rs.httpdPort() when startup -- View this message in context: http://r.789695.n4.nabble.com/R-Help-Pops-um-in-Webbrowser-how-to-dissable-tp4704603p4704606.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] R Help

2015-03-02 Thread Uwe Ligges
Better ask for local help if you can't reduce your code to some minimal examples so that we can understand easily what you are looking for. On 02.03.2015 10:38, Rami Alzebdieh wrote: Dear Sir, I start using (R) 3 months ago, and I am still learning, Same for me after more than 16 year

[R] R Help

2015-03-02 Thread Rami Alzebdieh
Dear Sir, I start using (R) 3 months ago, and I am still learning, I have a project and I am using R in this project, my friend helped me to build a code for this project and it's working perfect, but I need to make a small change in, it looks very simple but for me it's very complicated. I ins

[R] R help

2015-03-01 Thread javad . zendedel
​How can i plot the "scaled TTT-transform" with R? And how can i plot " Empirical Hazard function plot" ? Thank you in advance [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://sta

Re: [R] R-help Digest, Vol 143, Issue 10

2015-01-11 Thread Ronald Wyllys
This follows up on Duncan Murdock's reply to Boris Steipe's question about possible advantages to using RStudio. I agree with Mr. Murdock's list of advantages of RStudio, but disagree mildly with his comment about feeling that the tiled display provides too little space. When I use RStudio, I

Re: [R] R-help Digest, Vol 141, Issue 29

2014-11-29 Thread Tom Keller
http://www.bioperl.org/wiki/HOWTOs On Nov 29, 2014, at 3:00 AM, r-help-requ...@r-project.org wrote: Subject: Re: [R] perl On Friday, November 28, 2014, Noha Osman mailto:nmo_...@usc.edu>> wrote: Hi Folks Iam a new user in perl and I have two questions .Hopefully I get any help [[

[R] r-help@r-project.org

2014-10-14 Thread Rolf Turner
[I sent this email to Rich and to the list after some private communication with Rich. However it got held up for being too big, presumably because of the pdf attachment. So I am re-sending it to the list *without* the attachment.] I resorted to actually trying the expedient of installing "c

Re: [R] R help

2014-07-08 Thread Uwe Ligges
On 01.07.2014 17:18, Andre Weeks wrote: To whom it may concern: I installed R 3.1 and I get this. In normalizePath(path.expand(path), winslash, mustWork) : path[1]="\\network\users\aweeks\My Documents/R/win-library/3.1": Access is denied Is there any way to change this path? I have looked

[R] R help

2014-07-01 Thread Andre Weeks
To whom it may concern: I installed R 3.1 and I get this. In normalizePath(path.expand(path), winslash, mustWork) : path[1]="\\network\users\aweeks\My Documents/R/win-library/3.1": Access is denied Is there any way to change this path? I have looked it up on the internet but cannot seem to fin

Re: [R] R help

2014-03-20 Thread arun
Hi, It is better to use ?dput() to show the data.dput(dataset) dat <- structure(list(customer_id = c(8L, 33L, 12L), CountryName = c("US", "CA", "UK"), RevenueWeekN00 = c(2.28, 0, 30.18), RevenueWeekN01 = c(9.57, 14.69, 43.9), RevenueWeekN02 = c(7.54, 3.31, 90.4), RevenueWeekN03 = c(8.99, 5.21

Re: [R] R help

2014-03-20 Thread arun
Hi, Another way would be: dat11 <-  transform(dat[rep(1:nrow(dat),each=12),1:2], weekdatesunday=rep(0:11,3), RevenueWeekN00=as.vector(t(dat[,-c(1:2)]))) row.names(dat11) <- 1:nrow(dat11)   dat22 <- unsplit(lapply(split(dat11, with(dat11,list(customer_id,CountryName)),drop=TRUE),function(x) {m1 <-

[R] R help

2014-03-16 Thread Gautham .Madhusoodhanan
Hi guys, I ran the below R code: > department <- c(rep("B", 2), rep("C", 2), rep("D", 2), rep("E", 2), rep("F", 2)) > gender <- rep(c("Male", "Female"), 5) > admitted <- c(353, 17, 120, 202, 138, 131, 53, 94, 22, 24) > not.admitted <- c(207, 8, 205, 391, 279, 244, 138, 299, 351, 317) > cbind(depa

Re: [R] R Help

2014-03-11 Thread David McPearson
un...@r-project.org> > > [mailto:r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org>] On > > Behalf Of Jon Nash > > Sent: Monday, March 10, 2014 1:59 AM > > To: r-help@r-project.org<mailto:r-help@r-project.org> > > Subject: [R] R Help > > &g

Re: [R] R Help

2014-03-10 Thread Rui Barradas
Hello, It's better to keep this on the list, the odds of getting more and better answers are greater. You need to type getwd() with the parenthesis and no arguments. It always returns something (the current wd). Rui Barradas Em 10-03-2014 18:00, Jon Nash escreveu: Hi Rui, Nothing of value i

Re: [R] R Help

2014-03-10 Thread William Dunlap
t; z() [1] "" Bill Dunlap TIBCO Software wdunlap tibco.com From: Jon Nash [mailto:jon.n...@hvhs.school.nz] Sent: Monday, March 10, 2014 11:14 AM To: William Dunlap Subject: Re: [R] R Help Hi Bill, I start with a > prompt I type the command in the syntax that appears to be correct I im

Re: [R] R Help

2014-03-10 Thread William Dunlap
at does typing 5:2 cause R to do? Bill Dunlap TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Jon Nash > Sent: Monday, March 10, 2014 1:59 AM > To: r-help@r-project.org &g

Re: [R] R Help

2014-03-10 Thread Rui Barradas
Hello, The function setwd returns the previous working directory invisibly so "nothing happens" might mean that there is no apparent feedback. You can see if it changed the wd with getwd(). Hope this helps, Rui Barradas Em 10-03-2014 10:58, Pascal Oettli escreveu: Hello, And what are you

Re: [R] R Help

2014-03-10 Thread Pascal Oettli
Hello, And what are you expecting the command "setwd" to do? Regards, Pascal On Mon, Mar 10, 2014 at 5:59 PM, Jon Nash wrote: > I have just installed R 3.0.3 on Windows 7. > > I open up the GUI and type setwd("c:/users/jon") and press return. Nothing > happens, Ive tried manuals, forums etc ...

[R] R Help

2014-03-10 Thread Jon Nash
I have just installed R 3.0.3 on Windows 7. I open up the GUI and type setwd("c:/users/jon") and press return. Nothing happens, Ive tried manuals, forums etc ... An ex-student needs help using this program. I spent 7 years as an IT consultant before becoming a maths teacher so Im better than ave

Re: [R] R help

2014-03-06 Thread arun
Hi, If there are multiple max values, you will get only the first value with ?which.max(). Using dataset `a` as an example: a <- structure(list(`1` = c("Mal", "Mahesh", "Tarak", "Pawan", "Charan", "Prabhas", "Arjun", "Naresh", "Nithin", "Puri"), `2` = 1:10,     `3` = c("Layer", "Actor", "Actor

Re: [R] R help table from HTML

2014-02-26 Thread arun
Hi, Check the ?str() of my.table. library(XML) u='http://www.ininternet.org/calorie.htm' tables1 = readHTMLTable(u) my.table1=tables1[[9]]  with(my.table1,mean(PROTEINE)) #[1] NA #Warning message: #In mean.default(PROTEINE) : #  argument is not numeric or logical: returning NA  str(my.table1) '

Re: [R] R-Help. Error in file(file, ifelse(append, "a", "w")). No connection.

2014-02-17 Thread David Winsemius
On Feb 16, 2014, at 11:54 PM, Michał Wajszczuk wrote: > Hi, > > I just download R and R-studio. I have one problem and i can't make through > it. I'm trying to use help function in R-studio but after typing something, > error appears. I already searched in web and asked my friends but no > one c

[R] R-Help. Error in file(file, ifelse(append, "a", "w")). No connection.

2014-02-17 Thread Michał Wajszczuk
Hi, I just download R and R-studio. I have one problem and i can't make through it. I'm trying to use help function in R-studio but after typing something, error appears. I already searched in web and asked my friends but no one can help me. Could you please help me or give any advise? I have Win

Re: [R] R help

2014-02-11 Thread arun
Hi, My solution was based on the input dataset you showed.  If xy@12_g.com is "xy1...@gmail.com" (or both of them exist in the dataset??  Not clear!)., then try: dat <- read.table(text="Emails  mal...@gmail.com mah...@gmail.com x...@gmail.com ravi_...@yahoo.com lavk@rediff.com xy1...@g

Re: [R] R help

2014-02-07 Thread arun
Hi, The pattern is not very clear.  Try: dat <- read.table(text="Emails mal...@gmail.com mah...@gmail.com x...@gmail.com ravi_...@yahoo.com lavk@rediff.com xy@12_g.com",sep="",header=TRUE,stringsAsFactors=FALSE)  vec1 <- gsub("\\.[[:alnum:]]+$","",gsub("^([[:alpha:]]+)(\\d+.*)","\\1_\\2",dat$

Re: [R] R help

2014-02-07 Thread arun
Hi, YOu could use ?cut().  dat2 <- read.table(text="1    2   Mal    1 Ram    1000 Ramesh  12344",sep="",header=TRUE,stringsAsFactors=FALSE,check.names=FALSE) res <- setNames(as.data.frame(table(cut(dat2[,2],breaks=c(0,1000,10),labels=c("0-1000","1000-10",c("Bins","count"))

Re: [R] R help

2014-02-07 Thread arun
Hi, If there are multiple max values, you will get only the first value with ?which.max(). Using dataset `a` as an example: a <- structure(list(`1` = c("Mal", "Mahesh", "Tarak", "Pawan", "Charan", "Prabhas", "Arjun", "Naresh", "Nithin", "Puri"), `2` = 1:10,     `3` = c("Layer", "Actor", "Acto

Re: [R] R help

2014-02-06 Thread arun
Hi, Try: dat <- read.table(text="Emails mal...@gmail.com mah...@gmail.com x...@gmail.com ravi_...@yahoo.com lavk@rediff.com xy@12_g.com",sep="",header=TRUE,stringsAsFactors=FALSE)  vec1 <- gsub("\\.[[:alnum:]]+$","",gsub("^([[:alpha:]]+)(\\d+.*)","\\1_\\2",dat$Emails)) indx1 <- grep("[[:punct

Re: [R] R help

2014-02-06 Thread arun
HI, I am not sure this is what you meant. a <- read.table(text="1  2    3    4  5  6 1    Mal  1  Layer  22  M    10 2  Mahesh  2  Actor  45  M 15000 3  Tarak  3  Actor  30  M 15000 4  Pawan  4  Actor  47 

Re: [R] R help

2014-02-05 Thread arun
Hi, If you have .edu, .gov etc. dat <- structure(list(Emails = c("mal...@gmail.com", "mah...@gmail.com", "ravi_...@yahoo.com", "lavk@ufl.edu")), .Names = "Emails", class = "data.frame", row.names = c(NA, -4L)) res <- setNames(cbind(dat,do.call(rbind,strsplit(gsub("\\.[[:alnum:]]+$","",gsu

Re: [R] R help

2014-02-05 Thread arun
Hi, May be this helps: dat <- read.table(text="Emails mal...@gmail.com mah...@gmail.com ravi_...@yahoo.com lavk@rediff.com",sep="",header=TRUE,stringsAsFactors=FALSE)   setNames(cbind(dat,do.call(rbind,strsplit(gsub(".com","",gsub("^([[:alpha:]]+)(\\d+.*)","\\1_\\2",dat$Emails)),"[_@.]"))),c

[R] R help

2014-02-05 Thread Malyadri Putchakayala
Hi, Emails mal...@gmail.com mah...@gmail.com ravi_...@yahoo.com lavk@rediff.com I need split firstname,lastname,domail(only gmail,not gmail.com),also 123 in last name,so please give me help Output is Emails f.name l.namedomain mal...@gmail.com

Re: [R] R-help Digest, Vol 131, Issue 15

2014-01-14 Thread David Winsemius
On Jan 14, 2014, at 10:29 AM, Vasco Cadavez wrote: > Dear R Users, > > I'm searching for a Self Start function for Weibull function (3 parameters). Have you looked at: ?selfStart # be sure to look at the links in the See Also section -- David > > Somebody can help? > > > Cheers, >

Re: [R] R-help Digest, Vol 131, Issue 15

2014-01-14 Thread Rui Barradas
Hello, Maybe function ?SSweibull in package stats. Hope this helps, Rui Barradas Em 14-01-2014 18:29, Vasco Cadavez escreveu: Dear R Users, I'm searching for a Self Start function for Weibull function (3 parameters). Somebody can help? Cheers, Vasco Cadavez On 14/01/14 11:00, r-help-

Re: [R] R-help Digest, Vol 131, Issue 15

2014-01-14 Thread Vasco Cadavez
Dear R Users, I'm searching for a Self Start function for Weibull function (3 parameters). Somebody can help? Cheers, Vasco Cadavez On 14/01/14 11:00, r-help-requ...@r-project.org wrote: Send R-help mailing list submissions to r-help@r-project.org To subscribe or unsubscribe via

Re: [R] R-help Digest, Vol 129, Issue 15

2013-11-15 Thread Kamil Bartoń
works ok with mock-up data. Can you give some code to reproduce this error? kamil On 2013-11-15 11:00, r-help-requ...@r-project.org wrote: Message: 56 Date: Thu, 14 Nov 2013 18:01:27 -0800 From: Lilly Dethier To:r-help@r-project.org Subject: [R] Error in MuMIn "models are not all fitted to th

Re: [R] R help-classification accuracy of DFA and RF using caret

2013-11-06 Thread Bert Gunter
Second (perhaps with the slight addition indicated) -- Bert ... And **amen!** to the sentiment expressed. On Wed, Nov 6, 2013 at 2:08 PM, Rolf Turner wrote: > On 11/07/13 10:57, David Winsemius wrote: > > >> >> I think you need to add a statistician to your [PhD] committee. The >> diffic

Re: [R] R help-classification accuracy of DFA and RF using caret

2013-11-06 Thread Rolf Turner
On 11/07/13 10:57, David Winsemius wrote: I think you need to add a statistician to your committee. The difficulties you are facing (of which you appear to be unaware) are not just related to being new to R. Fortune? cheers, Rolf __

Re: [R] R help-classification accuracy of DFA and RF using caret

2013-11-06 Thread David Winsemius
On Nov 6, 2013, at 10:07 AM, Henderson, Robin Michelle wrote: > Hi, > > I am a graduate student applying published R scripts to compare the > classification accuracy of 2 predictive models, one built using discriminant > function analysis and one using random forests (webpage link for these >

[R] R help-classification accuracy of DFA and RF using caret

2013-11-06 Thread Henderson, Robin Michelle
Hi, I am a graduate student applying published R scripts to compare the classification accuracy of 2 predictive models, one built using discriminant function analysis and one using random forests (webpage link for these scripts is provided below). The purpose of these models is to predict the

Re: [R] R-help Digest, Vol 128, Issue 30

2013-10-28 Thread Lorenz, David
Pavlos, There are several ways to evaluate how well new data fit an old regression.Part of the answer depends on what you are concerned about. For example, if you are concerned about bias, you can test whether the mean of the new data is within the expected range of the mean of that many new valu

Re: [R] R-help Digest, Vol 128, Issue 29

2013-10-27 Thread Robert Rigby
Re: Heteroscedasticity and mgcv. (Collin Lynch) The GAMLSS package can model heterogeneity in the scale parameter (e.g. standard deviastion) [and also heterogeity in skewness and kurtosis parameters].of the response variable distribution. For parametric models a generalized likelihood ratio test

Re: [R] R-help Digest, Vol 128, Issue 22

2013-10-21 Thread Mark Leeds
hi john. I knew it wasn't that simple and was thinking of asking you to comment. so thanks for commenting. any good references are appreciated also. In the various texts I have, this issue is seldom talked about. On Mon, Oct 21, 2013 at 8:43 AM, Prof J C Nash (U30A) wrote: > This is one ar

Re: [R] R Help-how to use sapply w/tapply

2013-10-14 Thread arun
Hi, Try: Gene[,-1] <- lapply(Gene[,-1],function(x) {x[sample(length(x),1)] <- NA;x}) A.K. I got it guys MeanofGenotype <-sapply(2:8, function(k) tapply(Gene[,k] , Gene$Genotype, mean)) I was wondering if now you guys can help me on how to insert a random NA to each column. The question i

Re: [R] R Help-how to use sapply w/tapply

2013-10-14 Thread arun
Hi, (Please use ?dput() to share the example dataset. Avoid using images to show dataset. Also, please read the posting guide esp. regarding home work, assignments etc.) res <- sapply(Gene[,-1],function(x) tapply(x,list(Gene$Genotype),mean)) #or res2 <-  aggregate(.~Genotype, data=Gene,mean)

Re: [R] R Help-Implicit loop-lapply

2013-10-14 Thread arun
Hi,The conditions are not very clear. set.seed(285)  RN <- sample(1:100,20,replace=FALSE) aList <- lapply(1:10,function(i) sample(RN,i,replace=FALSE))  sapply(aList,tail,1) # [1] 87 60 96 87 60 67 42 96 73 24 A.K. I was wondering if I could obtain some help on how to do this. I feel as if

Re: [R] R help

2013-10-13 Thread Jeff Newmiller
Why? I assume you posted because you want help with something, but it is going to be very difficult to help if you don't know the most basic things about R or this mailing list. Spreadsheet: R can import data from a spreadsheet, but the corresponding native terminology in R is "data.frame" or "m

[R] R help

2013-10-13 Thread Shameem Akhtar
Dear, I want to use for loop and if..else condition together for finding such value from a two column in a spreadsheet. Thanks & Regards Shameem Akhtar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] R-help Digest, Vol 128, Issue 5

2013-10-04 Thread TAPO (Thomas Agersten Poulsen)
Hi Peter, The ssconvert tool (part of gnumeric) is very good at converting spreadsheets to csv-files. There is a wrapper in the "gnumeric" package on cran. Cheers, Thomas > Date: Fri, 4 Oct 2013 09:08:50 +0100 > From: Barry Rowlingson > To: Peter Maclean > Cc: "r-help@r-project.org" > Subjec

Re: [R] R Help

2013-09-05 Thread Pascal Oettli
Hello, Please stop to use "R help" for the subject of your mail. You already used it several times. You have been asked to stop to send e-mail in HTML. You also have been asked to use dput() when you want to submit data to this list. For the current problem, there is no reproducible code, as it

[R] R Help

2013-09-05 Thread Mª Teresa Martinez Soriano
Hi everone and thanks for this service, I have a dataset which look like: X. IE.2003 IE.2004 IE.2005 IE.2006 IE.2007 IE.2008 IE.2009 IE.2010 14560 118958 187 475 571 76410471203 715 807 12737 105571 935 942 917 948 991 861 NA 541

Re: [R] R help again..SORRY!

2013-08-31 Thread arun
HI, May be this helps: library(Ckmeans.1d.dp)  set.seed(24)  RanNum1<-runif(20,9,12) Ck1<-Ckmeans.1d.dp(RanNum1,4)  plot(RanNum1,col=Ck1$cluster)  abline(h=Ck1$centers,col=1:4,pch=8,cex=2)  Ck1$cluster # [1] 2 2 3 3 3 4 2 4 4 2 3 2 3 3 2 4 2 1 3 1 which(Ck1$cluster==2,arr.ind=T) #[1]  1  2  7

Re: [R] R-help Digest, Vol 126, Issue 34

2013-08-31 Thread Sudheer Joseph
Hi, I was using R arima and the results are stored. If I need to print , is there a way to print the coeficient names spd.ar2ma1=arima(spd_a,order=c(2,0,1)) write.table(sprintf("%s,%6.3f",spd.ar2ma1$coef),file='arma_results.txt',eol ="\n",append=FALSE,quote=FALSE,col.names=FALSE,row

Re: [R] R HELP! How to create a matrix consisting of several matrices in R?

2013-08-20 Thread arun
Hi, May be this helps:  A<- matrix(list(),3,3)  A[[1]]<- matrix(1,4,4)  A[[2]]<- matrix(1:15,3,5)  A[[3]]<- matrix(1:10,5,2) --- str(A) #List of 9 # $ : num [1:4, 1:4] 1 1 1 1 1 1 1 1 1 1 ... # $ : int [1:3, 1:5] 1 2 3 4 5 6 7 8 9 10 ... # $ : int [1:5, 1:2] 1 2 3 4 5 6 7

[R] R help

2013-08-06 Thread Mª Teresa Martinez Soriano
Hi everyone, I'm sorry for my questions, I'm sure they are totally stupig, but I am completely new in this program and I am facing this "danger" alone I have done imputation for one part of my data set, however I am not able for doing in general. this is part of my data set (cast2) cast2[1:30

Re: [R] R help: My calculation is different than the one in R with ARIMA(2, 3, 0) model

2013-08-05 Thread Paul Bernal
Dear Salaam, In your ARIMA (2,3,0), you are telling R you are saying that the order of differencing is 3. Have you chequed that you actually differenced the series with d = 3? Regards, 2013/8/5 Salaam Batur > Dear R users, > > I picked up ARIMA(2,3,0) model for my time series analysis using

[R] R help: My calculation is different than the one in R with ARIMA(2, 3, 0) model

2013-08-05 Thread Salaam Batur
Dear R users, I picked up ARIMA(2,3,0) model for my time series analysis using auto.arima() function. >From my understanding, the model should be in this shape: [Y(hat)(t)-Y(t-1)]-2[Y(t-1)-Y(t-2)]+[Y(t-2)-Y(t-3)]=Theta(1){[(Y(t-1)-Y(t-2)]-2[(Y(t-2)-Y(t-3)]+[Y(t-3)-Y(t-4)]}+Theta(2){[Y(t-2)-Y(t-3

Re: [R] R-help Digest, Vol 126, Issue 6

2013-08-04 Thread Aziz, Muhammad Fayez
Hi, My question is how to make panel sizes variable in box plots. I mean if a panel has 10 box plots and another has only two, I need to make the later panel thinner than the first. Regards, Fayez Grad Student UIUC, USA __ R-help@r-project.org mailing

[R] R-Help

2013-08-01 Thread wanjiku gichohi
Greetings. I am conducting a meta analyses that has Beta and SE values. I am wondering how to place the command to split the analyses. Could you assist me to develop the command within the syntax? I would also like to add the N and Year values in the plot. I would like my plot to look like the on

Re: [R] R Help.

2013-08-01 Thread Ista Zahn
Hi Darren, Take a look at the effects package. The documentation is good and these articles will help you get oriented: http://www.jstatsoft.org/v08/i15 http://www.jstatsoft.org/v32/i01 Best, Ista On Thu, Aug 1, 2013 at 1:56 AM, Darren Andrew Whitehead wrote: > Hello R Project, > I am having a

[R] R Help.

2013-08-01 Thread Darren Andrew Whitehead
Hello R Project, I am having a little trouble with interpreting my GLM results and I wonder if you may be able to help. I am doing a generalised linear model in R studio by outcome variable is binary either effected or not effected. I have my final model structure which has been validated and fi

Re: [R] R help

2013-07-31 Thread Jim Lemon
On 07/31/2013 10:03 PM, Mª Teresa Martinez Soriano wrote: Hi First of all, thanks for this service, it is being very useful for me. I am new in R so I have a lot of doubts. I have to do imputation in a data set, this is a sample of my data set which looks like: NUMERO Data1 Data

[R] R help

2013-07-31 Thread Mª Teresa Martinez Soriano
Hi First of all, thanks for this service, it is being very useful for me. I am new in R so I have a lot of doubts. I have to do imputation in a data set, this is a sample of my data set which looks like: NUMERO Data1 Data2 IE.2003 IE.2004 IE.2005 IE.2006 IE.2007 IE.2008 IE.2009 IE

[R] R help

2013-07-24 Thread Amy Henry
Dear R experts, I know this is not the appropriate place to post but I already tried eco (has not used ME) and geo (not available unit Aug 5), so please forgive me. I fitted my spatial data to a glm.nb model. I decided to detect and correct for spatial autocorrelation using ME{spdep}. I received

Re: [R] R Help

2013-07-19 Thread PIKAL Petr
2 2 $ c: Factor w/ 2 levels "","xx": 1 2 2 The only real NA value which can be used for imputation is in first column. Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Ma Teresa

[R] R Help

2013-07-19 Thread Mª Teresa Martinez Soriano
Hi everyone, I have a dataset which I am handling with R . Unfortunately I have two kinds of empty cells, one corresponds to missing values and the other one is empty because it has to. I ‘m going to put an example (just a part of my dataset ) to try to clarify my question: missing values are r

Re: [R] R-help Digest, Vol 124, Issue 22

2013-06-21 Thread David Duffy
"Vallejo, Roger" asked: I would like to know if we can estimate Rg between two binary traits (disease status: alive vs. dead) with the R package. My data: we have 100 full-sib (FS) families, and two random samples (each with n= 200 FS fish) from each FS family were evaluated for disease resis

Re: [R] R-help Digest, Vol 124, Issue 21

2013-06-20 Thread Prof J C Nash (U30A)
And it could be that you should try nlmrt or minpack.lm. I don't think you were at my talk in Jena May 23 -- might have been very helpful to you. JN On 13-06-20 06:00 AM, r-help-requ...@r-project.org wrote: Message: 47 Date: Wed, 19 Jun 2013 13:17:29 -0500 From: "Adams, Jean" To: pakoun Cc:

Re: [R] R-help Digest, Vol 124, Issue 12

2013-06-11 Thread Abdul Rahman bin Kassim (Dr.)
Dear R-User, Appreciate any helps. Given that I have a dataframe of tree population with three variable: sp=species , d0=initial_size grow=growth increment from initial size per year How can I calculate the future growth of each tree for the next 10 years. The following Rscript was written,

Re: [R] R-help Digest, Vol 124, Issue 12

2013-06-11 Thread Keith S Weintraub
Folks, Sorry for butting in here. I ran the code from John Kane below and it worked fine. I did however get a deprecation message suggesting the use of ggpairs from the GGally package to make this chart. Unfortunately I haven't found the correct incantation to get the diagonal to display th

[R] R-help: insufficient space problem occurred during inversion of sparse matrix

2013-06-08 Thread luyongfa
Hi everyone, I have one problem with sparse matrix(package "SparseM"). I tried to inverse a sparse matrix with solve function in SparseM package. But I got warning:Error in .local(x, ...) : insufficient space. p=solve(coeff,tmpmax=120*nrow(coeff)) Error in .local(x, ...) : insufficient s

Re: [R] R help on loops

2013-06-07 Thread Berend Hasselman
Please, please do not use html formatted mail. It is clearly requested by the mailing list The code of your last mail is a mess and when replying it becomes even more of a mess. I told you to do siml[g,] <- optm(perm=20) See the comma after g. and not what you are now doing with siml[g]<-op

Re: [R] R help on loops

2013-06-07 Thread Berend Hasselman
On 07-06-2013, at 11:57, Laz wrote: > Dear Berend, > > I have made some changes but I still get errors: > > For reproducibility, > Rspatswap() is a function which originally returns a single value. For > example Rspatswap(...) and you get 0.8 > > So, run Rspatswap() 20 times and store all

Re: [R] R help on loops

2013-06-07 Thread Laz
Hi, I am almost getting there, but still have errors. Thanks for your help. I have tried improving but I get the following errors below: >itn<-function(it){ +siml<-matrix(NA,ncol=5,nrow=it) +for(g in 1:it){ +siml[g]<-optm(perm=20)[g] +} +siml +} >itn(3) [,1] [,2] [,3] [,4] [,5] [1,

Re: [R] R help on loops

2013-06-07 Thread Laz
Dear Berend, For reproducibility, Rspatswap() is a function which originally returns a single value. For example Rspatswap(...) and you get 0.8 So, run Rspatswap() 20 times and store all the values. Then from these 20 values, calculate the calculate average, sd,se,min,max to get something si

<    1   2   3   4   5   6   7   >