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

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()

[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

Re: [R] R-help, please

2015-09-21 Thread MCGUIRE, Rhydwyn
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 out o

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

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

[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

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 r-help@r-project.org wrote: Dear R administration, i have installed R x64 3.2.2 and i am

[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

[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

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

[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 -

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 qui...@msn.com wrote: Good afternoon, I'm working in a disease spread model, and I have to use a

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

[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

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. The

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

2015-04-16 Thread paul
Duncan Murdoch murdoch.duncan at 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

[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

2015-03-18 Thread John Kane
-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.matrix(read.table(C:/Users/hp/Desktop/thd.txt

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'

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 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 mailing

[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:

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

[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

[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

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,

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 nmo_...@usc.edumailto: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

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 find

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 -

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, 45),

[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(department, gender,

Re: [R] R Help

2014-03-11 Thread David McPearson
-project.orgmailto:r-help-boun...@r-project.org] On Behalf Of Jon Nash Sent: Monday, March 10, 2014 1:59 AM To: r-help@r-project.orgmailto:r-help@r-project.org Subject: [R] R Help 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

[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

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 jon.n...@hvhs.school.nz 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

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 William Dunlap
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 Subject: [R] R Help I have just installed R 3.0.3 on Windows 7. I open up the GUI

Re: [R] R Help

2014-03-10 Thread William Dunlap
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 immediately get a prompt back I type getwd and get

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

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, Actor, 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)

[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

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 can

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

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))  res #

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$Emails))

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, Actor, Actor, Actor, Actor,  

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  M

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 -

[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

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)  

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 -

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

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,

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, Vasco

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 Dethierlillydeth...@gmail.com To:r-help@r-project.org Subject: [R] Error in MuMIn models

[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-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

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: SNIP 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. SNIP Fortune? cheers, Rolf

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 r.tur...@auckland.ac.nz wrote: On 11/07/13 10:57, David Winsemius wrote: SNIP I think you need to add a statistician to your [PhD]

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

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

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) nas...@uottawa.cawrote:

Re: [R] R help

2013-10-14 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

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-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-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 is

[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 b.rowling...@lancaster.ac.uk To: Peter Maclean

[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

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

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

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

[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)

[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:

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 swordligh...@gmail.com Dear R users, I picked up ARIMA(2,3,0) model for my time

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

[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

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 darrenwhitehe...@hotmail.com wrote: Hello

[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

[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

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

[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

[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

Re: [R] R Help

2013-07-19 Thread PIKAL Petr
- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Ma Teresa Martinez Soriano Sent: Friday, July 19, 2013 11:28 AM To: r-help@R-project.org Subject: [R] R Help Hi everyone, I have a dataset which I am handling with R . Unfortunately I have two

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

2013-06-21 Thread David Duffy
Vallejo, Roger roger.vall...@ars.usda.gov 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

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, Jeanjvad...@usgs.gov

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

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,

[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

Re: [R] R help on loops

2013-06-07 Thread Laz
Dear R users, I am stuck here: My first function returns a vector of 5 values. In my second function, I want to repeat this, a number of times, say 10 so that I have 10 rows and five columns but I keep on getting errors. See the code and results below: optm -function(perm, verbose = FALSE) {

Re: [R] R help on loops

2013-06-07 Thread Berend Hasselman
On 07-06-2013, at 10:59, Laz lmra...@ufl.edu wrote: Dear R users, I am stuck here: My first function returns a vector of 5 values. In my second function, I want to repeat this, a number of times, say 10 so that I have 10 rows and five columns but I keep on getting errors. See the code

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

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 Berend Hasselman
On 07-06-2013, at 11:57, Laz lmra...@ufl.edu 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

<    1   2   3   4   5   6   7   >