[R] Help

2024-02-20 Thread Lisa Hupfer via R-help
I am writing my master thesis in which I compared two cultures . So for my statistics I need to compare Age,Sex,Culture as well as have a look at the tasks scores . Anyone familiar with this ? I’d love to share my script so you guide me where I did wrong . Regards

[R] Calculating a P for trend

2018-11-29 Thread Lisa van der Burgh
Hi all, I have a question about calculating a P for trend on my data. Let�s give an example that is similar to my own situation first: I have a continuous outcome, namely BMI. I want to investigate the effect of a specific medicine, let�s call it MedA on BMI. MedA is a variable that is

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
Dear John and Peter, Thank you both for your answers. I am going to try the solutions you gave me! Thanks again, Lisa From: Fox, John Sent: 23 November 2018 16:54:49 To: Lisa van der Burgh Cc: r-help@R-project.org; peter dalgaard Subject: RE: [R] Question

[R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
work. I know I am probably doing it completely wrong, but I do not know how to solve it. Besides that, I do not know what to fill in at the �x�. Can somebody help me? Thank you in advance. Lisa [[alternative HTML version deleted]]

[R] Help plotting recurrence matrix

2018-10-05 Thread Lisa Handke
ce again, I have tried using y and x lim as well as max functions, but have not managed to attain any results. I realize these are amateur questions but I have been struggling with this for quite some time and would really appreciate any help I can get. Thanks and best regards, Lisa __

Re: [R] Recoding variables in R

2018-05-23 Thread Lisa van der Burgh
Thank you all for your help, it worked! Op 23 mei 2018 om 19:27 heeft marta azores <martazo...@gmail.com<mailto:martazo...@gmail.com>> het volgende geschreven: Try that code NewDF<-DF[!DF$Anxiolytics==1,] 2018-05-23 10:14 GMT+00:00 Lisa van der Burgh <lisavdbu...@hotmail.c

[R] Recoding variables in R

2018-05-23 Thread Lisa van der Burgh
omes 1, such as: > summary(DF$Anxiolytics) 0 1 NA's 1102 20 440 Can you help me with the code for doing this? Thank you in advance! Best, Lisa [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] R-Studio+Commander

2016-09-01 Thread Lisa Ducati HH
> Hello, > > I would like to Know if i can install r on my iPad Air 2? Is this possible? > > Regards Lisa-Marie Kindler Von meinem iPhone gesendet [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --

Re: [R] error in data.farme--duplicate row.names error

2016-05-20 Thread Rees, Lisa Marie (MU-Student)
Don, Thank you for your helpful response. At this point, I do believe it is a package error and I have contacted the developer. Thanks, Lisa -Original Message- From: MacQueen, Don [mailto:macque...@llnl.gov] Sent: Thursday, May 19, 2016 4:27 PM To: Rees, Lisa Marie (MU-Student); r

Re: [R] error in data.farme--duplicate row.names error

2016-05-19 Thread Rees, Lisa Marie (MU-Student)
Michael, Thanks for your response. I tried table(table(Bmat)) and it gave me the following error: [ Error in table(Bmat) : object 'Bmat' not found] FYI-- "values" contains 16,383 observations ranging from 0 to less than 1. Lisa -Original Message- From: Michael Dewey

[R] error in data.farme--duplicate row.names error

2016-05-19 Thread Rees, Lisa Marie (MU-Student)
I'm using the "GameTheory" package--- DefineGame(14,values) and values is equal to 16,383 observations. I keep getting the following error- [Error in data.frame(rep(0, 2^n - 1), row.names = Bmat) : duplicate row.names: 1, 11, 111, 12, 112, 1112, 2, 13, 113, 1113, 3, 1213, 11213,

[R] Help with RUSBoost

2015-04-14 Thread Lisa Gandy
I am considering using RUSBoost (https://github.com/SteveOhh/RUSBoost) and was wondering if anyone has used this package, and could give me some insight and help. The help would be on more of the machine learning side, I just have a few questions about implementation. [[alternative HTML

[R] Tomorrow Webinar: Enter a KDD Cup or Kaggle Competition without being an expert!

2015-01-12 Thread Lisa Solomon
Webinar: Enter a KDD Cup or Kaggle Competition, You don't need to be an expert! Tomorrow, January 13, 2015 from 10am-11am PDT * If inconvenient time, please register and we will send you a recording. Click to Register: http://hubs.ly/y0q_jf0 Abstract: * Quickly achieve a

[R] Help with Caret

2015-01-09 Thread Lisa Gandy
missing values in resampled performance measures.3: In train.default(d, classData, method = J48, model = FALSE) : missing values found in aggregated results What am I doing wrong? Also note I'm using model=FALSE in training to conserve memory, as this has been a problem -- Lisa Gandy, PhD Assistant

[R] Chicago, Data Mining Training (Hands-On, $35), Chicago, May 23rd

2014-05-15 Thread Lisa Solomon
Join us for a hands-on data mining training in Chicago, IL on May 23, 2014: * Cost: $35 * Registration: http://hub.am/1ftOoR0 * Learn data mining quickly using Salford Systems' Commercial Data Mining Software (No programming skills needed). Agenda: 8:30am-9:00am

Re: [R] match from a data.frame in dependence of an ID

2014-03-28 Thread Lisa S
Try xtabs() df2 = data.frame(ID = c(10,10,10,10,10,11,11,12),Group = c(1,2,3,4,5,3,4,4),Value = c(10,20,30,40,50,60,70,80)) xtabs(df2$Value~df2$ID + df2$Group) I think this is exactly what you want. On Fri, Mar 28, 2014 at 4:51 PM, Mat matthias.we...@fnt.de wrote: Hello togehter, i have a

Re: [R] Merge two vectors into one

2014-03-24 Thread Lisa S
He wants a[1] b[1] a[2] b[2] a[3] b[3] I think you can do: x = as.vector(rbind(a, b)) On Mon, Mar 24, 2014 at 2:39 PM, Frans Marcelissen fransiepansiekever...@gmail.com wrote: Why not simply a-1:3 b-4:5 c(a,b) [1] 1 2 3 4 5 2014-03-22 23:22 GMT+01:00 Tham Tran

Re: [R] Import multiple files into R

2014-03-20 Thread Lisa S
But I don't think a list can contain that much data - we dont know how big each txt file is. So I'd like to do: city.set - c('Asheville','Charlotte') month.set - c('Dec', 'Jan', 'Feb') comb.set - expand.grid(city.set,month.set) comb.set$filename = paste(comb.set[,1],comb.set[,2],sep = '_') for

Re: [R] computation

2014-01-13 Thread Lisa S
In this calculation: (dg0%*%t(dx0)) is [,1] [,2] [1,]0 -0.75 [2,]0 0.50 So: exp2 = NaN It is extremely easy to find out the issue if you go back line by line, this is a basic procedure of debugging. Please do it yourself next time. On Mon, Jan 13, 2014 at 3:09 PM, IZHAK

[R] X11 font -adobe-helvetica size 15 could not be loaded

2013-04-04 Thread Lisa Daniel
,/usr/share/fonts/X11/Type1,built-ins Regards, Lisa. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] Hands-on Webinar: Advances in Regression: Modern Ensemble and Data Mining Approaches (no charge)

2013-03-20 Thread Lisa Solomon
Hands-on Webinar (no charge) Advances in Regression: Modern Ensemble and Data Mining Approaches **Part of the series: The Evolution of Regression from Classical Linear Regression to Modern Ensembles Register Now for Parts 3, 4: https://www1.gotomeeting.com/register/500959705 **All registrants

[R] try/tryCatch

2013-03-18 Thread lisa
be greatly appreciated... thanks! Lisa -- Lisa Wang email: wang.li...@gmail.com cell: +49 -0176-87786557 Tübingen, Germany, 72070 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] try/tryCatch

2013-03-18 Thread lisa
))) } return(a) } ## what i want is for the function to go on to the next data set in the array and simply return an NA for that line in the metatrials results. so basically, just keep going. thanks so much for your help! -Lisa On Mon, Mar 18, 2013 at 4:24 PM, jim

[R] Tomorrow: The Evolution of Regression from Classical Linear Regression to Modern Ensembles (hands-on)

2013-03-14 Thread Lisa Solomon
Tomorrow, Friday March 15 Maybe you missed Part 1 of The Evolution of Regression Modeling from Classical Linear Regression to Modern Ensembles webinar series, but you can still join for Parts 2, 3, 4 Register Now for Parts 2, 3, 4: https://www1.gotomeeting.com/register/500959705 Course

[R] Hands-on Webinar Series (no charge) The Evolution of Regression from Classical Linear Regression to Modern Ensembles

2013-03-11 Thread Lisa Solomon
Maybe you missed Part 1 of The Evolution of Regression Modeling from Classical Linear Regression to Modern Ensembles webinar series, but you can still join for Parts 2, 3, 4 Register Now for Parts 2, 3, 4: https://www1.gotomeeting.com/register/500959705 Download (optional) a free evaluation of

Re: [R] Results from clogit out of range?

2013-03-04 Thread Lisa S
Thanks for the illustrative example. In my project actually my supervisor wanted to estimate the probabilities using a conditional MLE approach, which happens to be the case that *uses clogit() while trying to achieve aim b in your words*. I learned that clogit() is based on the sufficient

Re: [R] Results from clogit out of range?

2013-03-01 Thread Lisa Sheng
for the misunderstandings. Thanks, Lisa On 1 Mar, 2013, at 10:10 PM, David Winsemius dwinsem...@comcast.net wrote: I still don't think the exp(lp)/(1+exp(lp)) gonna work. Since this is conditional logit model, while this formula is only used in unconditional ones. By using this, one neglects the information

[R] Results from clogit out of range?

2013-02-28 Thread lisa
I do appreciate this answer. I heard that in SAS, conditional logistic model do predictions in the same way. However, this formula can only deal with in-sample predictions. How about the out-of-sample one? Is it like one of the former responses by Thomas, say, it's impossible to do the

[R] xyplot and barplot in the same page

2013-02-27 Thread Lisa Daniel
is not correct    xlab=Number of Gears)  Thanks in advance, Lisa __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

[R] Alternate tick labels in xyplot

2013-02-14 Thread Lisa Daniel
, ' ' ))), par.settings=list(axis.components=list(bottom=list(tck=c(0,1) scales=list(x=list(at=seq(1,8,1),labels=c('A', ' ', 'C', ' ' ,'E' , ' ','G',' '))), If possible, I would like a heading for each rows (justified to center) above the individual heading. Please help. Many thanks, Lisa

Re: [R] Alternate tick labels in xyplot

2013-02-14 Thread Lisa Daniel
= c(0.33, 0.5, 0.66, 1.0), more = TRUE) j=j+1 print(xy, pos = c(0.66, 0.5, 0.99, 1.0), more = TRUE) j=j+1 print(xy, pos = c(0.0, 0.0, 0.33, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE) Many thanks, Lisa

Re: [R] Alternate tick labels in xyplot

2013-02-14 Thread Lisa Daniel
, 0.0, 0.66, 0.45), more = TRUE) j=j+1 print(xy, pos = c(0.66, 0.0, 0.99, 0.45), more = FALSE) grid.text(Upper row, x=0.5, y=0.97, gp=gpar(fontsize=12, col=black)) grid.text(Lower row, x=0.5, y=0.47, gp=gpar(fontsize=12, col=black)) Thanks, Lisa - Original Message - From: David

[R] Plotting multiple xyplots in same page

2013-02-13 Thread Lisa Daniel
=) title(main=A,adj=0) hist(b,main=) title(main=B,adj=0) hist(c,main=) title(main=C,adj=0) hist(d,main=) title(main=D,adj=0) I tried this to xyplot, but it was not working. Please help me.  Many thanks in advance, Lisa. __ R-help@r-project.org

Re: [R] Plotting multiple xyplots in same page

2013-02-13 Thread Lisa Daniel
= TRUE) print(xy, pos = c(0.0, 0.0, 0.33, 0.5), more = TRUE) print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE) print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE) Thanks in advance, Lisa - Original Message - From: Lisa Daniel lisadaniel2...@yahoo.com To: r-help@r-project.org r

Re: [R] Plotting multiple xyplots in same page

2013-02-13 Thread Lisa Daniel
, 0.0, 0.33, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE) Also, I would like to create a main title for the first row and second row of figures. Many thanks in advance, Lisa - Original Message

Re: [R] Plotting multiple xyplots in same page

2013-02-13 Thread Lisa Daniel
) j=j+1 print(xy, pos = c(0.0, 0.0, 0.33, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE) j=j+1 print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE) Pascal: I would prefer not to use panels as this is for publication purpose.  Many thanks, Lisa - Original

[R] Webinar: Advances in Gradient Boosting: the Power of Post-Processing. TOMORROW, 10-11 a.m., PST

2012-12-13 Thread Lisa Solomon
Webinar: Advances in Gradient Boosting: the Power of Post-Processing TOMORROW: December 14, 10-11 a.m., PST Webinar Registration: http://2.salford-systems.com/gradientboosting-and-post-processing/ Course Outline: I. Gradient Boosting and Post-Processing: o What is missing from Gradient

[R] Webinar signup: Advances in Gradient Boosting: the Power of Post-Processing. December 14, 10-11 a.m., PST

2012-11-26 Thread Lisa Solomon
Webinar signup: Advances in Gradient Boosting: the Power of Post-Processing December 14, 10-11 a.m., PST Webinar Registration: http://2.salford-systems.com/gradientboosting-and-post-processing/ Course Outline: *Gradient Boosting and Post-Processing: o What is missing from

[R] Webinar signup: Gradient Boosting and Classification Trees: A Winning Combination. November 9, 10-11 a.m., PST

2012-10-31 Thread Lisa Solomon
Webinar signup: Tree Ensembles and Classification Trees: A Winning Combination November 9, 10-11 a.m., PST. Webinar Registration: http://2.salford-systems.com/gradientboosting/ Understand major shortcomings of using only decision trees and how tree ensembles can help overcome these

[R] choosing the correct number of clusters usinf NbClust

2012-08-22 Thread Lisa Baxter
clusters while the next 5 - the code is exactly the same. I assume there is some randomization that I don't see. Is there a way to get a consistent answer. Thanks. -Lisa [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] simple matching with R

2012-03-19 Thread Lisa Krchov
? Thank you very much in advance, Lisa-Marie [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] resistanceDistance representation

2012-02-23 Thread Lisa Santambrogio
couldn't find any examples of how to do it; plotting or imaging them doesn't return a meaningful graph, I guess I should transform them somehow but I don't know how. ANY help would be really appreciated, along with comments about the rest of the work done. Thanks in advance, Lisa

Re: [R] Help with SEM package: Error message

2011-11-08 Thread Lisa Pham
a little differently. Sincerely, Lisa On Tue, Nov 8, 2011 at 9:32 PM, John Fox j...@mcmaster.ca wrote: Dear Lisa, There doesn't seem to be anything logically wrong with your model. I don't have much time today to look into it, but trying different optimizers in version 2.0-0 of sem, using

[R] (no subject)

2011-10-21 Thread Lisa Henault
can i be taken off of this mailing list please? is there another way that you can access this without having to get all the emails?? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Text annotation of a graph

2011-08-05 Thread Lisa
Thanks you for your reply. I consider only the performance of “vars” (v1 to v10), so I just want to indicate then on the y-axis at the point they should be located. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Text-annotation-of-a-graph-tp3719775p3721799.html Sent from

Re: [R] Text annotation of a graph

2011-08-05 Thread Lisa
Thank you. I will try this. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Text-annotation-of-a-graph-tp3719775p3722163.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Text annotation of a graph

2011-08-04 Thread Lisa
) But the text annotation can not be displayed correctly, i.e., some of them stick together. Can anybody help me with this particular problem? Thanks in advance. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Text-annotation-of-a-graph-tp3719775p3719775.html Sent from the R help

[R] R package: pbatR

2011-07-14 Thread Lisa
, fbat=gee) The function had been running for a very long time and no output was returned until I had to stop it. Any help would be greatly appreciated. Thanks. Lisa -- View this message in context: http://r.789695.n4.nabble.com/R-package-pbatR-tp3667844p3667844.html Sent from the R help mailing

Re: [R] R package: pbatR

2011-07-14 Thread Lisa
Thanks. I have installed PBAT on my computer. -- View this message in context: http://r.789695.n4.nabble.com/R-package-pbatR-tp3667844p3667907.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Colors in R

2011-07-13 Thread Trevino, Lisa
HI everyone, I'm trying to assign colors to multiple lines in a graph. Problem is I don't want to type in as many colors as there are linesis there a way around this? In brief, I'm plotting the logratio for up to 60 samples and want a different color for each sample. Here is the code I'm

Re: [R] Multiple line graphs

2011-07-07 Thread Trevino, Lisa
Thank you! LT On 7/7/11 3:46 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi lt2, I would use the ggplot2 or lattice package. It strikes me as more effort to do in traditional graphics. Anyway, here are some examples. Lattice is a very nice package, but I am not quite as familiar

Re: [R] Derivative of a function

2011-06-29 Thread Lisa
This is not a homework. I just want to see if there are some R functions or some ideas I can borrow to solve my problem. -- View this message in context: http://r.789695.n4.nabble.com/Derivative-of-a-function-tp3631814p3633071.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Derivative of a function

2011-06-29 Thread Lisa
question here to see if there is some R functions or some idea that can help me solve this problem. Thanks. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Derivative-of-a-function-tp3631814p3633947.html Sent from the R help mailing list archive at Nabble.com

[R] Derivative of a function

2011-06-28 Thread Lisa
there is another way to get the similar result, i.e., first take the derivative of y with respect to each element of b, and then take its reciprocal. But it is not what I want. Could someone please tell me how to solve this problem? Thank you in advance. Lisa -- View this message in context: http

[R] Recode numbers

2011-06-01 Thread Lisa
, 20, 3, 10, 10, 12, 6, 16, 7, 11, 13, 13, 17, 18, 2, 4, 15, 19) Does anyone have a suggestion how to deal with this? Thank you in advance. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Recode-numbers-tp3566395p3566395.html Sent from the R help mailing list archive

Re: [R] Recode numbers

2011-06-01 Thread Lisa
Thank you for your help, Pete. I tried b[a], but it is not a1. -- View this message in context: http://r.789695.n4.nabble.com/Recode-numbers-tp3566395p3566534.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] Recode numbers

2011-06-01 Thread Lisa
Thank you, Duncan, Here “a” has the length of 24, and “b” has the length of 20 with numbers from 1 to 20 uniquely. I just want encode “a” from 1 to 20 based on “a” current order using “b”. So, a1[1] = b[1] = 1 a1[2] = b[2] = 5 a1[3] = a1[4] = b[3] = 8 (since third and fourth numbers are the same

Re: [R] RES: Recode numbers

2011-06-01 Thread Lisa
Thank you so much, Filipe. Your R script is what I am looking for. -- View this message in context: http://r.789695.n4.nabble.com/Recode-numbers-tp3566395p3566818.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] RES: Recode numbers

2011-06-01 Thread Lisa
Thank you very much, Bill. Your script works very well. -- View this message in context: http://r.789695.n4.nabble.com/Recode-numbers-tp3566395p3566847.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Arrange a multi-level list to a one-level list

2011-05-28 Thread Lisa
Hi, Phil, Yes. That's what I am looking for. Thank you so much. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Arrange-a-multi-level-list-to-a-one-level-list-tp3556500p3556601.html Sent from the R help mailing list archive at Nabble.com

[R] Arrange a multi-level list to a one-level list

2011-05-27 Thread Lisa
appreciated. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Arrange-a-multi-level-list-to-a-one-level-list-tp3556500p3556500.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Suppress intermediate results on console

2011-05-26 Thread Lisa
and doesn’t need showing. Does someone have any idea or any suggestion? Thank you in advance. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Suppress-intermediate-results-on-console-tp3553276p3553276.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Suppress intermediate results on console

2011-05-26 Thread Lisa
Thanks for your comments and suggestion. I didn’t show all my own function here because it has many lines. “x” is the results of another function. I am calling summary because I want to extract some values from the results. -- View this message in context:

[R] Order a matrix

2011-05-24 Thread Lisa
appreciate any help on this question. Thanks a lot. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Order-a-matrix-tp3547923p3547923.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Order a matrix

2011-05-24 Thread Lisa
Hi, Bill, Thank you for your help. Your R script works very well. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Order-a-matrix-tp3547923p3548017.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] Line feed for a long character string

2011-05-11 Thread Lisa
to learn about ongoing researches in the field of mathematics, computer science, physics, chemistry, a$ Any help will be appreciated! Lisa -- View this message in context: http://r.789695.n4.nabble.com/Line-feed-for-a-long-character-string-tp3515824p3515824.html Sent from the R help mailing list

Re: [R] Line feed for a long character string

2011-05-11 Thread Lisa
Hi, Duncan, On your and William Dunlap’s suggestion, I tried this: cat(sep=\n, strwrap(my long character string)), and it works very well. Thanks so much for your help. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Line-feed-for-a-long-character-string

Re: [R] Pause the execution of a function

2011-04-28 Thread Lisa
don’t know how to change the source code. Could you please help how to get this done? Thanks. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Pause-the-execution-of-a-function-tp3478535p3482192.html Sent from the R help mailing list archive at Nabble.com

[R] Line numbers of scan(0

2011-04-28 Thread Lisa
help will be appreciated. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Line-numbers-of-scan-0-tp3482314p3482314.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Line numbers of scan(0

2011-04-28 Thread Lisa
I am trying to write a function to check unusual values in my datasets and correct them. As some R users suggested, I try to use readline() and scan() in my function. Suppose there are several unusual values in a dataset. I want to change the line numbers in scan() to something like: unusual value

[R] Pause the execution of a function

2011-04-27 Thread Lisa
continues to execute. Can anybody please help how to get this done? Thanks a lot in advance Lisa -- View this message in context: http://r.789695.n4.nabble.com/Pause-the-execution-of-a-function-tp3478535p3478535.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Pause the execution of a function

2011-04-27 Thread Lisa
Thanks. I will try them. -- View this message in context: http://r.789695.n4.nabble.com/Pause-the-execution-of-a-function-tp3478535p3479240.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Factor function

2011-04-26 Thread Lisa
Thank you so much! Lisa -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3475549.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Tell the difference between characters

2011-04-26 Thread Lisa
Dear all, I just want to determine if the characters in a character string are the same or not. For example, temp - c(aa, aA, ab) How do I determine the first one have the two same “a”, and the second and third have the different characters? Thanks in advance. Lisa -- View this message

Re: [R] Tell the difference between characters

2011-04-26 Thread Lisa
Thanks a lot. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Tell-the-difference-between-characters-tp3476130p3476352.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Tell the difference between characters

2011-04-26 Thread Lisa
Yes. That is what I want. Thank you very much. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Tell-the-difference-between-characters-tp3476130p3476288.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] Factor function

2011-04-25 Thread Lisa
in advance. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3473984.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Factor function

2011-04-25 Thread Lisa
Did you see the data frame d? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3474065.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Factor function

2011-04-25 Thread Lisa
Thank you for your reply again. I really know that NA is not NA. I just want to figure out how to remove NA from the levels. Thanks again. -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3474127.html Sent from the R help mailing list archive at

Re: [R] Factor function

2011-04-25 Thread Lisa
Thank you for your help. Your R code works well. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3474196.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Select subset of data

2011-03-29 Thread Lisa
, the new dataset is: group subject result v4 v5 8 3 1 01 0 9 3 2 00 1 10 3 3 10 0 11 3 4 01 0 Can anybody please help how to get this done? Your help would be greatly appreciated. Lisa -- View

Re: [R] Select subset of data

2011-03-29 Thread Lisa
Thank you for your kind help. Your R code works very well. -- View this message in context: http://r.789695.n4.nabble.com/Select-subset-of-data-tp3416012p3416307.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] Randomly generating data

2011-03-21 Thread Lisa
column with a Bernoulli trial but a different probability, for example, rbinom(1, 1, 0.7). Repeat these processes… How can I do this efficiently if there are more than thousand records (rows)? Can anybody please help how to get this done? Thanks a lot in advance Lisa -- View this message

[R] Arguments of a function

2011-03-18 Thread Lisa
Hi, everybody, I just want to pass arguments to a function as below: range - c(0.1, 0.5) runif(1, range) But it doesn’t work. Does anyone have any suggestions to offer? Thanks. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Arguments-of-a-function-tp3387643p3387643

Re: [R] Arguments of a function

2011-03-18 Thread Lisa
Thank you very much! -- View this message in context: http://r.789695.n4.nabble.com/Arguments-of-a-function-tp3387643p3388615.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Add columns of dataset

2010-12-04 Thread Lisa
Your R script works very well. Thank you very much. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Add-columns-of-dataset-tp3071722p3072513.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] Add columns of dataset

2010-12-03 Thread Lisa
0.0 0.00.2 30.0 0.0 0.00.0 0.00.0 0.80.7 Can anybody please help how to get this done? Thanks a lot in advance Lisa -- View this message in context: http://r.789695.n4.nabble.com/Add-columns-of-dataset-tp3071722p3071722.html Sent from the R help mailing

[R] Delete components of a list

2010-01-25 Thread Lisa
How to delete, say, the first columns of the list or the second rows? Thank in advance. Lisa -- View this message in context: http://n4.nabble.com/Delete-components-of-a-list-tp1289732p1289732.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Delete components of a list

2010-01-25 Thread Lisa
It works well. Thank you very much. Lisa -- View this message in context: http://n4.nabble.com/Delete-components-of-a-list-tp1289732p1289745.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Data transformation

2010-01-25 Thread Lisa
be greatly appreciated. Lisa -- View this message in context: http://n4.nabble.com/Data-transformation-tp1289899p1289899.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Data transformation

2010-01-25 Thread Lisa
Thank you so much. Lisa -- View this message in context: http://n4.nabble.com/Data-transformation-tp1289899p1289915.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Arguments of a function

2010-01-08 Thread Lisa
this problem? Thanks in advance. Lisa -- View this message in context: http://n4.nabble.com/Arguments-of-a-function-tp1009883p1009883.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Arguments of a function

2010-01-08 Thread Lisa
That's what I want. Thank you so much. Lisa Henrique Dallazuanna wrote: Try this: my.f - function(a, b) { x1 - 2 * 3 x2 - 3 / 6 x3 - 4 * 4 / 5 - sqrt(2) y - get(deparse(substitute(a))) + get(deparse(substitute(b))) return(y) } my.f(x1, x2) On Fri

[R] Data replacement

2010-01-05 Thread Lisa
to change 3 to 4 and 4 to 6. Can anybody please help how to get this done? Thanks a lot in advance Lisa -- View this message in context: http://n4.nabble.com/Data-replacement-tp999060p999060.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Data replacement

2010-01-05 Thread Lisa
Thank you for your kind help. Your R script works well. Lisa Dieter Menne wrote: Lisa wrote: I have a dataset that looks like this: data idcode1code2 1 114 2 123 3 244 .. I want

[R] Remove double quotation marks

2009-12-29 Thread Lisa
Dear All, I am not sure how to remove double quotation marks in a string, e.g., paste(variable, 1). Can anybody please help me solve it? Thank you in advance. Lisa -- View this message in context: http://n4.nabble.com/Remove-double-quotation-marks-tp990502p990502.html Sent from the R help

Re: [R] Remove double quotation marks

2009-12-29 Thread Lisa
Thank you for your reply. But in the following case, “cat()” or “print()” doesn’t work. data.frame(cbind(variable 1, variable 2, cat(paste(variable, x), \n))), where x is a random number generated by other R script. Lisa Duncan Murdoch wrote: On 29/12/2009 1:16 PM, Lisa wrote: Dear All

Re: [R] Remove double quotation marks

2009-12-29 Thread Lisa
Thanks. I also need column name v5. Lisa jholtman wrote: ?get something like: v1 - c(0, 1, 0) v2 - c(1, 1, 0) v3 - c(2, 1, 2) v4 - c(2, 2, 1) v5 - c(0, 1, 1) x - 5 cbind(v1, v2, get(paste('v', x, sep=''))) v1 v2 [1,] 0 1 0 [2,] 1 1 1 [3,] 0 0 1 On Tue, Dec

Re: [R] Remove double quotation marks

2009-12-29 Thread Lisa
Your script works well. Thank you very mcuh. Lisa Nutter, Benjamin wrote: It seems from your example that you're assuming all of the vectors have the same length. If this is the case, then a data.frame might be your friend. df - data.frame( v1 = c(0, 1, 0), v2 = c(1, 1, 0

[R] Reconstruct a dataset

2009-12-15 Thread Lisa
1 2 1 2 … 41 2 2 1 … …… … … … … Please ignore the bold and italic fond styles, I just want to make my problem clear. Can anyone please help how to get this done? Your help would be greatly appreciated. Lisa -- View

  1   2   >