Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-16 Thread Allan Tanaka
lf Of Allan > Tanaka > Sent: Thursday, March 16, 2017 3:16 AM > To: William Dunlap > Cc: r-help@r-project.org > Subject: Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values > >  Hi. Thanks for the function. My bad, after looking at the csv file, it seems >that > N

Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-16 Thread PIKAL Petr
r-help@r-project.org > Subject: Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values > > Hi. Thanks for the function. My bad, after looking at the csv file, it seems > that > NA values come not only from previous Non-NA values but also from the > next Non-NA values. Exa

Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-16 Thread Allan Tanaka
Hi. Thanks for the function. My bad, after looking at the csv file, it seems that NA values come not only from previous Non-NA values but also from the next Non-NA values. Example: | NCQ05 | 11.395 | | NCQ05 | 11.395 | | NCQ05 | | | NCQ06 | | | NCQ06 | 13 | | NCQ06 | 13 | If i use the functi

Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-16 Thread PIKAL Petr
values only within identifiers Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Allan > Tanaka > Sent: Wednesday, March 15, 2017 12:09 PM > To: r-help@r-project.org > Subject: [R] HELP ME: Fill NA Values from the previo

Re: [R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-15 Thread William Dunlap via R-help
You could use the following function locf2 <- function(x, initial=NA, IS_BAD = is.na) { # Replace 'bad' values in 'x' with last previous non-bad value. # If no previous non-bad value, replace with 'initial'. stopifnot(is.function(IS_BAD)) good <- !IS_BAD(x) stopifnot(is.logical

[R] HELP ME: Fill NA Values from the previous Non-NA Values

2017-03-15 Thread Allan Tanaka
The following is an example: | Item_Identifier | Item_Weight | | FDP10 | 19 | | FDP10 | | | DRI11 | 8.26 | | DRI11 | | | FDW12 | 8.315 | | FDW12 | | The following is the one that i want to be. That is, filling NA values from the previous Non-NA values. | Item_Identifier | Item_Weight | | FDP

Re: [R] Help me

2016-03-02 Thread Morteza Firouzi via R-help
 Moses, If I understand correctly, you are installed R and Rstudio.Please do find the package(s) you would like to use.Once you run rstudio, you can search and install the package(s) using the bottom right corner menu:Packages> Install> install from Repository (Cran)> search the package you woul

[R] Help me

2016-03-02 Thread Moss Moss
Please, I need help from you. I am new to R. I installed R, Rstudio and R Crans or packages that I will like to use. Thanks for your help on that. Right now, what do I do? Will I upload the CRAN packages already installed, so that a GUI interface will come up. I am working on Location Model and

Re: [R] Help me in cluster

2015-09-11 Thread Sarah Goslee
Please reply to the list, not just me. I've added the list address to my own reply. On Fri, Sep 11, 2015 at 11:04 AM, Ghada Almousa wrote: > If you don't help me , why put help and subscription > this is not a homework it's question I searched in the web but there is > no answer The participa

Re: [R] Help me in cluster

2015-09-11 Thread Sarah Goslee
Repeating your post won't help. Writing a good question with sample data and the code you've tried, as well as describing your *specific* difficulties will. Without a reproducible example that includes some sample data provided using dput() (fake is fine), the code you used, and some clear idea of

Re: [R] Help me in cluster

2015-09-11 Thread Ghada Almousa
On Tuesday, September 8, 2015, Ghada Almousa wrote: > I have project to study and analysis clusters algorithm in R > "K-mean, Hierarchical, Density based and EM" > I want to calculate > Cluster instance , number of iteration , sum of squared error SSE and the > accuracy for each cluster algorithm

[R] Help me in cluster

2015-09-08 Thread Ghada Almousa
I have project to study and analysis clusters algorithm in R "K-mean, Hierarchical, Density based and EM" I want to calculate Cluster instance , number of iteration , sum of squared error SSE and the accuracy for each cluster algorithms that i mention above And the log likelihood for EM and DBSCAN

Re: [R] Problem in r help me

2015-05-04 Thread PIKAL Petr
From: Ghada Almousa [mailto:ghada.f...@gmail.com] Sent: Monday, May 04, 2015 9:20 PM To: PIKAL Petr Subject: Re: Problem in r help me I used internet search to get info about methods but I can't find any info about the comparison between those methods The comparison in the number of itera

Re: [R] Problem in r help me

2015-05-04 Thread PIKAL Petr
R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ghada > Almousa > Sent: Saturday, May 02, 2015 11:03 AM > To: r-help@r-project.org > Subject: Re: [R] Problem in r help me > > > hello dears > > > > I have Search to compare the results between the three types of

Re: [R] Problem in r help me

2015-05-02 Thread Ghada Almousa
> hello dears > > I have Search to compare the results between the three types of cluster > k-maen ,Em and Hierarchal clusters > How i figured the number of iterations , the time required to build each > Cluster ,accuracy and sum square error SSE for each cluster in the R > programming >

[R] Problem in r help me

2015-04-30 Thread Ghada Almousa
hello dears I have Search to compare the results between the three types of cluster k-maen ,Em and Hierarchal clusters How i figured the number of iterations , the time required to build each Cluster ,accuracy and sum square error SSE for each cluster in the R programming [[alternative

Re: [R] Help me

2014-11-24 Thread Bert Gunter
No. See the posting guide link below for how to ask an intelligible question. Better yet, do your homework (is that what this is?) yourself: http://cran.r-project.org/doc/manuals/R-intro.pdf -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Informa

[R] Help me

2014-11-24 Thread salwa_elaty11
Please any one can help me to find the estimate of 5 parameters for multiple regression model under condition multicolinearity between x's from simulation data suppose n=10 for example Thanks allot Sent from Samsung Mobile [[alternative HTML version deleted]] __

[R] help me

2014-05-03 Thread akram yazdani
hi please help me for below warning . may model is in frailtypack with frailtypenal mod.sha.gap <- frailtyPenal(Surv(s,time,event) ~ cluster(id)+sex1+age2+bmi1+whr1+tg1+hdl1+chol1+por+pr2+car1+fib2+fat2+terminal(d),formula.terminalEvent = ~sex1+age2+bmi1+whr1+tg1+hdl1+chol1+por+pr2+car1+fib2+fat2,

[R] help me

2014-04-27 Thread kafi dano
please help me and correct why this program give me error  bcos I want to apply the condition follow the attached below  # program (R) used estimate beta of robust ridge (weighted stacklose)   rm(list=ls())   library(MASS)   library(mvoutlier)   library(robustbase)   library(car)   library(quan

Re: [R] help me align the legend bar

2013-10-30 Thread Adams, Jean
You could use the mar= argument of the par() function to define a wider plot margin on the right, then change the first and third arguments of color.legend() to make the legend fit in the margin. For example, par(mar=c(3, 1, 3, 7)) color2D.matplot(test, axes="F", xlab="", ylab="", main="color.sca

[R] help me align the legend bar

2013-10-30 Thread Alaios
Hi, I have some code that you can simply execute: require(plotrix) test<-matrix(data=rnorm(1,-100,5),nrow=100) color2D.matplot(test,axes="F",xlab="",ylab="",main="color.scale",   extremes=c("#FF","#00"),show.legend=FALSE)   axis(1,at=seq(1,ncol(test),length.out=10),labels=seq(201,300,

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-15 Thread David Lyon
Thank you very much for your help and time. That works very nicelyThanks again! - Original Message - From: John Kane To: David Lyon ; r-help Cc: Sent: Wednesday, May 15, 2013 9:36 AM Subject: Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates My

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-15 Thread David Lyon
Thanks John for your reply. I did include the data if you scroll down to the end of my original email. Can someone help me on this? Thanks - Original Message - From: John Kane To: David Lyon ; r-help Cc: Sent: Tuesday, May 14, 2013 4:11 PM Subject: RE: [R] Help me please: gplot

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-15 Thread John Kane
t;, "4/10/13", "4/22/13"), value = c(0.16, 0.16, 0.42, 0.81, 0.16, 2.93, 2.4, 1.36, 1.22, 0.77, 0.85, 1.22, 0.21, 1.81, 0.54, 1.33, 1.32, 2.5, 1.3, 1.1, 0.66, 0.84, 7.42, 1.21, 0.97, 2.25, 0.51, 0.53, 0.41, 3.14, 3.58, 2.41, 2.08, 3.2, 0.24, 0.34, 0.58, 0.54, 0.25, 0.39, 0.28, 0.19, 0.42, 0.39, 0.26, 0.16, 0.16, 0.16, 0.16, 1.

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-14 Thread David Winsemius
Your value column will be input as character because of the "<" signs and you need to convert the dates in %m/%d/%y format to real R dates. -- David Sent from my iPhone On May 14, 2013, at 3:59 PM, David Lyon wrote: > I have a text file of data as below and doing a ggplot line plot of all the

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-14 Thread John Kane
ave a look at http://stackoverflow.com/questions/3744178/ggplot2-sorting-a-plot Good luck. John Kane Kingston ON Canada > -Original Message- > From: david_ly...@yahoo.com > Sent: Tue, 14 May 2013 12:59:07 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] H

[R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-14 Thread David Lyon
I have a text file of data as below and doing a ggplot line plot of all the ids as separate mini line plots which works with the following code. Problem how do I order the dates for each id plot on the x axis so that the dates are going from oldest to most recent Thanks in advance Dave

[R] Help me make faster R code for Kennard-Stone algorithm [My code is so slow from Matlab]

2013-04-24 Thread Kevin Hao
Hi all, Can you help me change my Kennard-Stone algorithm to faster one? [The original code can run fast in matlab, but when I change matlab code to R code, it is so slow.] Since my code so crude and too many loops (changed from matlab code), it is too slow. I hope that you can help to improve t

Re: [R] help me out

2013-03-01 Thread Greg Snow
If you want to receive all the e-mails, but don't want your e-mail program to pop up a message every time an e-mail from r-help comes in then you can configure your e-mail client to automatically move all the e-mails from r-help to a specific folder/label/etc. and that should make it so you can loo

Re: [R] help me out

2013-03-01 Thread Ista Zahn
Hi, On Fri, Mar 1, 2013 at 6:31 AM, ankita kumari wrote: > i dont want to receive messages about all the posts as i get too many in my > inbox. how can i get emails from everyone who posts in this site. > please help me out Maybe you are looking for digest mode? got to https://stat.ethz.ch/mailm

Re: [R] help me out

2013-03-01 Thread Berend Hasselman
On 01-03-2013, at 12:31, ankita kumari wrote: > i dont want to receive messages about all the posts as i get too many in my > inbox. You don't want to get the emails? > how can i get emails from everyone who posts in this site. You do want the emails? > please help me out > Difficult given

[R] help me out

2013-03-01 Thread ankita kumari
i dont want to receive messages about all the posts as i get too many in my inbox. how can i get emails from everyone who posts in this site. please help me out [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

Re: [R] HELP me please with import of csv to R

2012-11-25 Thread F86
I have solved the problem. And as i assumed from the beginning it was a simple one. The problem was that i had my csv file on the descop. It should have been in the working directory. So i just needed to read the file and then run lm() like i wrote before. Thanks to Ray DiGiacomo, Jr! Regard

Re: [R] Help me please to code....

2012-10-22 Thread Rlotus
thank you so much for helping! Now i got how to do it ;) -- View this message in context: http://r.789695.n4.nabble.com/Help-me-please-to-code-tp4646932p4647050.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mai

Re: [R] Help me please to code....

2012-10-21 Thread arun
HI, Try this: fun1<-function(X){  Y<-ifelse(X==0,5/2,7)  return(Y)}  fun1(5) #[1] 7  fun1(0) #[1] 2.5  fun1(2) #[1] 7 A.K. - Original Message - From: Rlotus To: r-help@r-project.org Cc: Sent: Sunday, October 21, 2012 3:03 PM Subject: [R] Help me please to code User has t

Re: [R] Help me please to code....

2012-10-21 Thread Rui Barradas
Hello, First of all, you should _really_ try to read An Introduction to R, file R-intro.pdf that comes with every installation of R. The answer to your question is in chapter 9 Grouping, loops and conditional execution. It's the very first example: "9.2.1 Conditional execution: if statements

[R] Help me please to code....

2012-10-21 Thread Rlotus
User has to type (input) x. After inputcode has to check X with statement if There is a statement IF. If X=0 then Y=5/2 else =7; How to code it please. I tried but my code does not work ;( I wanna see how it looks like( thank u in advance( -- View this message in context: http://r.7896

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of William Dunlap > Sent: Wednesday, July 11, 2012 4:23 PM > To: F86; r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Y

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread William Dunlap
tware wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of F86 > Sent: Wednesday, July 11, 2012 2:47 PM > To: r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Hell

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Hello William, - I used str() and got this 'data.frame': 290 obs. of 2 variables: $ Kommuner: Factor w/ 289 levels "Ale","Alingsas",..: 34 40 44 79 95 99 132 162 169 173 ... $ Skatt : Factor w/ 177 levels "28,89","28,9",..: 86 7 47 67 74 25 24 23 85 74 ... - and summary() - got this

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread William Dunlap
m: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of F86 > Sent: Wednesday, July 11, 2012 2:40 AM > To: r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Thank you! It is fixed now. > > However, now when I'm tryi

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Thank you! It is fixed now. However, now when I'm trying with hist(skatter) i get this message: Error in hist.default(skatter) : 'x' must be numeric I don't know what I'm doing wrong but it worked perfectly on windows some weeks ago. My data skatter looks like this: > skatter

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Thank you! It is fixed now. However, now when I'm trying with hist(skatter) i get this message: Error in hist.default(skatter) : 'x' must be numeric I don't know what I'm doing wrong but it worked perfectly on windows some weeks ago. My data skater looks like this: > skatter Ko

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread R. Michael Weylandt
On Tue, Jul 10, 2012 at 4:23 PM, FJ M wrote: > 3) attach the data so that the headers become objects that contain the data > attach(v_data) This is a discouraged practice as it leads to difficult to trace errors and non-local effects. Some "big names" of the R universe suggest it [I think V of V

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread FJ M
rad...@gmail.com > To: r-help@r-project.org > Subject: [R] HELP me please with import of csv to R > > Hey, > > I am having problems with importing a csv file to R. > > I could read the file by typing: > read.csv(file="/Users/kama/Desktop/skatter.csv", heade

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread peter dalgaard
On Jul 11, 2012, at 01:24 , Sarah Goslee wrote: > That is silly, but I have learned something. Thanks. > (The silliest bit was when someone decided that numeric data files should use locale-dependent conventions, notably decimal separators...) > Though honestly, I've never seen the advantage o

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread Sarah Goslee
That is silly, but I have learned something. Thanks. Though honestly, I've never seen the advantage of read.csv() over the more versatile read.table(). Sarah On Tuesday, July 10, 2012, peter dalgaard wrote: > > On Jul 10, 2012, at 21:44 , Sarah Goslee wrote: > > > > But note that if sep=";" the

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread peter dalgaard
On Jul 10, 2012, at 21:44 , Sarah Goslee wrote: > > But note that if sep=";" then you don't have a csv file and should > properly use read.table() instead. That's not actually true. In a substantial part of the world, csv files are semicolon separated. That's what read.csv2() is for. (Yes, it i

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread Sarah Goslee
Hi, On Tue, Jul 10, 2012 at 12:48 PM, F86 wrote: > Hey, > > I am having problems with importing a csv file to R. > > I could read the file by typing: > read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") So that command does work? > However, i can not analyze the "skatter" -

[R] HELP me please with import of csv to R

2012-07-10 Thread F86
Hey, I am having problems with importing a csv file to R. I could read the file by typing: read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") However, i can not analyze the "skatter" - for ex, when i type: skatter = read.csv("skatter.csv") i get this message: Erro

Re: [R] help me....

2011-12-17 Thread Stephen Sefick
This definatley looks like homework. On Sat 17 Dec 2011 05:36:03 AM CST, jurassic85 wrote: Life times of one brand of light bulb were observed. Life hours of nine light bulbs were 898, 720, 354, 405, 620, 54, 229, 306, 890. There were three more light bulbs that were still burning after 1000 hou

Re: [R] help me....

2011-12-17 Thread David Winsemius
On Dec 17, 2011, at 6:36 AM, jurassic85 wrote: Life times of one brand of light bulb were observed. Life hours of nine light bulbs were 898, 720, 354, 405, 620, 54, 229, 306, 890. There were three more light bulbs that were still burning after 1000 hours. It is common to assume the life ti

[R] help me....

2011-12-17 Thread jurassic85
Life times of one brand of light bulb were observed. Life hours of nine light bulbs were 898, 720, 354, 405, 620, 54, 229, 306, 890. There were three more light bulbs that were still burning after 1000 hours. It is common to assume the life time of a light bulb follows an exponential distribution.

[R] Help me with repeated measures

2011-08-29 Thread Carlos Neftaly Lozano
Hello, I'm fitting a repeated measures models, I don't know many things about it, I need to help me with the model's graphic representation, and checking the assumptions. My data set haves a cuantitative response variable and a factor with 5 levels, this variable was measured three times each 20

[R] help me

2011-06-27 Thread rasouli_m
Hi dear all, I am looking for a R algoritm which takes logistic relative risk function versus exponential relative risk function in cox proportional hazard model. Let me know how I can do it? Thank you very much! Rasouli Rasouli -- This message has been scanned for

Re: [R] Help me create a hyper-structure

2011-04-18 Thread Alaios
Thank you very much . That was really helpful. I will keep this email for future reference Regards --- On Mon, 4/18/11, Duncan Murdoch wrote: > From: Duncan Murdoch > Subject: Re: [R] Help me create a hyper-structure > To: "Alaios" > Cc: r-h...@stat.math.ethz.ch, "

Re: [R] Help me create a hyper-structure

2011-04-18 Thread Duncan Murdoch
ank you in advance for your help Best Regards Alex --- On Sat, 4/16/11, Ben Bolker wrote: > From: Ben Bolker > Subject: Re: [R] Help me create a hyper-structure > To: r-h...@stat.math.ethz.ch > Date: Saturday, April 16, 2011, 3:39 PM > Alaios > yahoo.com> write

Re: [R] Help me create a hyper-structure

2011-04-18 Thread Ben Bolker
On 11-04-18 04:45 AM, Alaios wrote: > It seems you were right. > Now I can easily access my struct and substruct like this > > # all.str[[1]]] Gives access to the first struct of per.sr.struct which > containts 101 times the xorder,yorder,estimation.sr > # all.str[[1]][[2]] Gives access to the se

Re: [R] Help me create a hyper-structure

2011-04-18 Thread Alaios
of assignments or not? I would like to thank you in advance for your help Best Regards Alex --- On Sat, 4/16/11, Ben Bolker wrote: > From: Ben Bolker > Subject: Re: [R] Help me create a hyper-structure > To: r-h...@stat.math.ethz.ch > Date: Saturday, April 16, 2011, 3

Re: [R] Help me create a hyper-structure

2011-04-16 Thread Alaios
ubject: Re: [R] Help me create a hyper-structure > To: r-h...@stat.math.ethz.ch > Date: Saturday, April 16, 2011, 3:39 PM > Alaios > yahoo.com> writes: > > > > > Dear all > > I would like to have in R a big struct containing a > smaller struct. > >

Re: [R] Help me create a hyper-structure

2011-04-16 Thread Ben Bolker
Alaios yahoo.com> writes: > > Dear all > I would like to have in R a big struct containing a smaller struct. > > 1) I would like to have a small struct with the following three fields > xorder (an integer ranging from 0 to 20) > yorder (an integer ranging from 0 to 20) > estimated (a 256*256

[R] Help me create a hyper-structure

2011-04-16 Thread Alaios
Dear all I would like to have in R a big struct containing a smaller struct. I have tried something that I would like to share and ask your help make it work 1) I would like to have a small struct with the following three fields xorder (an integer ranging from 0 to 20) yorder (an integer rangi

[R] Help me apply mapply

2011-02-02 Thread Alaios
Hello all I would like to ask your help use mapply. I have a function called findCell that takes two arguments(x,sr) where x is a vector of size two (e.g x<-c(2,3) and sr is a matrix. I would like to call many times the findCell function (thus I need mapply) for different x inputs but always for

Re: [R] help me

2010-12-31 Thread Petr Savicky
On Thu, Dec 30, 2010 at 11:01:47PM -0800, Sintayehu Aynalem wrote: > I nanna subscribe to r-help. > > Can you please guide me... Start at http://www.r-project.org/ Click on "Mailing lists". Find section "R-help". Click on "web interface". Find section "Subscribing to R-help" and follow the desc

[R] help me

2010-12-30 Thread Sintayehu Aynalem
I nanna subscribe to r-help. Can you please guide me... Santos [[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-projec

Re: [R] Help me with R plotting

2010-11-18 Thread Alaios
Thanks a lot :) nice one --- On Thu, 11/18/10, baptiste Auguié wrote: From: baptiste Auguié Subject: Re: [R] Help me with R plotting To: "Alaios" Cc: "Rhelp" Date: Thursday, November 18, 2010, 3:34 PM Hi, Try this, robots <- data.frame(id=letters[1:20],        

Re: [R] Help me with R plotting

2010-11-18 Thread Tal Galili
s" > > Also I tried legend... which creates small boxes below the dots which is Do > not what I want exactly. I would like below every plot to write some text > but not inside any box that will cover part of the image. > > Best Regards > Alex > > --- On *Thu, 11/18/10,

Re: [R] Help me with R plotting

2010-11-18 Thread baptiste Auguié
o write some text but > not inside any box that will cover part of the image. > > Best Regards > Alex > > --- On Thu, 11/18/10, Tal Galili wrote: > > From: Tal Galili > Subject: Re: [R] Help me with R plotting > To: "Alaios" > Cc: "Rhelp"

Re: [R] Help me with R plotting

2010-11-18 Thread Alaios
text but not inside any box that will cover part of the image. Best Regards Alex --- On Thu, 11/18/10, Tal Galili wrote: From: Tal Galili Subject: Re: [R] Help me with R plotting To: "Alaios" Cc: "Rhelp" Date: Thursday, November 18, 2010, 2:13 PM ?plotWill give a goo

Re: [R] Help me with R plotting

2010-11-18 Thread Tal Galili
?plot Will give a good solution #Example: set.seed(5) xx <- data.frame(x = runif(50), y = runif(50), z = sample(c(1:3), 50, T)) with(xx, plot(x, y, col = z, pch = 19)) Now you can start going into how to play with the colors, and how to add ?legend to the image... Tal Contact

[R] Help me with R plotting

2010-11-18 Thread Alaios
Hello everyone. I want some help with plots. I have some robots in an area. Every robot is placed on x,y coordinates and every robot has a power consumption of some watts. I would like to show where are the robots by showing in a map dots (where every dots is the x,y coordinate). Below that dot

Re: [R] Help me pls

2010-09-23 Thread Michael Hannon
> From: Seyit Ali KAYIS > To: r-help@r-project.org > Sent: Thu, September 23, 2010 12:12:49 AM > Subject: [R] Help me pls > > Dear All, > > I need to create eps file which is the required figure format of the > journal that I want to submit a paper. I am able

Re: [R] Help me pls

2010-09-23 Thread Michael Bedward
The postscript function ? On 23 September 2010 17:12, Seyit Ali KAYIS wrote: > Dear All, > > I need to create eps file which is the required figure format  of the > journal that I want to submit a paper. I am able to create files in pdf or > wmf format but not in eps format. Is there a way to con

[R] Help me pls

2010-09-23 Thread Seyit Ali KAYIS
Dear All, I need to create eps file which is the required figure format of the journal that I want to submit a paper. I am able to create files in pdf or wmf format but not in eps format. Is there a way to convert pdf or wmf to eps? or alternatively, how can I create an eps file in R? Any help i

Re: [R] help me understand how things work.

2010-09-16 Thread Mario Valle
s Alex *From:* Mario Valle *To:* Alaios *Sent:* Thu, September 16, 2010 1:28:31 PM *Subject:* Re: [R] help me understand how things work. ?dist BTW, to me this does not happens. x <- matrix(rnorm(100), nrow=5) d <- dist(x) 1/sqrt(d) 1/sqrt(dist(x)) H

Re: [R] help me understand how things work.

2010-09-16 Thread Alaios
, 2010 1:28:31 PM Subject: Re: [R] help me understand how things work. ?dist BTW, to me this does not happens. x <- matrix(rnorm(100), nrow=5) d <- dist(x) 1/sqrt(d) 1/sqrt(dist(x)) Hope it helps mario On 16-Sep-10 12:02, Alaios wrote: > Hello I ha

Re: [R] help me understand how things work.

2010-09-16 Thread Julian Burgos
Hi Alex, What is happening is that the ´dist´function calculates a distance matrix, and returns an object of the ´dist´ class. > temp <- rbind (c(10,1),c(99,98)) > x=dist(temp) > x 1 2 131.6435 > class(x) [1] "dist" You can see a description of the ´dist´class at the end of the function

Re: [R] help me understand how things work.

2010-09-16 Thread Michael Bedward
Hello Alex, Look at the help page for the dist function. You'll see it doesn't return a simple vector or matrix, rather a "dist" class object which is why you got a surprise when you tried to treat it like a simple value. The function is not really intended for spatial point distance calculations,

[R] help me understand how things work.

2010-09-16 Thread Alaios
Hello I have some strange output from R and I try to understand how R works. Could you please help me with that? temp <- rbind (c(10,1),c(99,98)) > temp [,1] [,2] [1,] 101 [2,] 99 98 > dist(temp) 1 2 131.6435 > sqrt(dist(temp)) 1 2 11.47360 so far so good

Re: [R] help me with holt-winter model

2010-07-22 Thread Research student
Please help me with this i need to submit my thesis . Thanks In advance -- View this message in context: http://r.789695.n4.nabble.com/help-me-with-holt-winter-model-tp2295552p2298464.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Help me with prediction in linear model

2010-07-21 Thread Dennis Murphy
Hi: On Wed, Jul 21, 2010 at 8:46 AM, vijaysheegi wrote: > > Hi R-community, > I have the code as follows,i Fitted model as follows > lbeer<-log(beer_monthly) > t<-seq(1956,1995.2,length=length(beer_monthly)) #beer_monthly contains 400+ > entries > This is unnecessary: > t2=t^2 > beer_fit_parab

[R] Help me with prediction in linear model

2010-07-21 Thread vijaysheegi
Hi R-community, I have the code as follows,i Fitted model as follows lbeer<-log(beer_monthly) t<-seq(1956,1995.2,length=length(beer_monthly)) #beer_monthly contains 400+ entries t2=t^2 beer_fit_parabola=lm(lbeer~t+t2) Below is not working for me. Please help me in preparing the new data set for t

[R] help me with holt-winter model

2010-07-20 Thread vijaysheegi
Hi R-experts, I have been wasted aroun 2 days to understand Holt-Winter method for double exponential smoothing.But concept was not clear to me.Please suggest me how to determeine values of alpha ,beta,gamma.It is bit urgent .please help me in understanding holtwinter parameter determination . I

[R] help me on discriminant analysis and Bayesian discriminant analysis in R

2010-07-12 Thread Mao Jianfeng
Dear R-listers, I have a set of plant multivariate morphological data (including thousands of individuals from several species) which may be identified as several units of morphological variation. Firstly, I want to defined the optimal number of such units Then, I want to choose proper discrimina

Re: [R] Help me with writing function sort()

2010-04-11 Thread Barry Rowlingson
On Sun, Apr 11, 2010 at 2:30 PM, maslakos wrote: > > Hello everyone, i`m new here.. I just started with learning R language and i > have hard "homework". I need to write function like sort().. Anyone know how > to do it? Can u give me algorithm for sorting vector? x=c(1,2,-1,1,3,4) or > something

Re: [R] Help me with writing function sort()

2010-04-11 Thread Martin Morgan
On 04/11/2010 06:30 AM, maslakos wrote: > > Hello everyone, i`m new here.. I just started with learning R language and i > have hard "homework". I need to write function like sort().. Anyone know how > to do it? Can u give me algorithm for sorting vector? x=c(1,2,-1,1,3,4) or > something like that

Re: [R] Help me with writing function sort()

2010-04-11 Thread GlenB
http://lmgtfy.com/?q=sort+algorithm -- View this message in context: http://n4.nabble.com/Help-me-with-writing-function-sort-tp1836063p1836181.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://s

[R] Help me with writing function sort()

2010-04-11 Thread maslakos
Hello everyone, i`m new here.. I just started with learning R language and i have hard "homework". I need to write function like sort().. Anyone know how to do it? Can u give me algorithm for sorting vector? x=c(1,2,-1,1,3,4) or something like that.. I`m sorry for my english.. -- View this messag

Re: [R] Help me! using random Forest package, how to calculate Error Rates in the training set ?

2010-01-11 Thread bbslover
beginner, so I need learn a lot. Thank you kevin 在2010-01-12,"Liaw, Andy [via R]" 写道: -原始邮件- 发件人:"Liaw, Andy [via R]" 发送时间:2010年1月12日 星期二 收件人:bbslover 主题:Re: [R] Help me! using random Forest package, how to calcu

Re: [R] Help me! using random Forest package, how to calculate Error Rates in the training set ?

2010-01-11 Thread Liaw, Andy
From: bbslover > > now I am learining random forest and using random forest > package, I can get > the OOB error rates, and test set rate, now I want to get the > training set > error rate, how can I do? > > pgp.rf<-randomForest(x.tr,y.tr,x.ts,y.ts,ntree=1e3,keep.forest > =FALSE,do.trace=1e2)

[R] Help me! using random Forest package, how to calculate Error Rates in the training set ?

2010-01-10 Thread bbslover
now I am learining random forest and using random forest package, I can get the OOB error rates, and test set rate, now I want to get the training set error rate, how can I do? pgp.rf<-randomForest(x.tr,y.tr,x.ts,y.ts,ntree=1e3,keep.forest=FALSE,do.trace=1e2) using the code can get oob and t

Re: [R] help me avoid nested for() loops!

2009-11-20 Thread David Winsemius
On Nov 20, 2009, at 5:05 PM, Andrew Barr wrote: Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) mtx <- matrix(scan(textConnectio

Re: [R] help me avoid nested for() loops!

2009-11-20 Thread Charles C. Berry
On Fri, 20 Nov 2009, Andrew Barr wrote: Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) These represent pixel coordinates of inter

Re: [R] help me avoid nested for() loops!

2009-11-20 Thread Dylan Beaudette
?dist On Friday 20 November 2009, Andrew Barr wrote: > Hi R folks, > > I have a massive array (object name "points") in the following form > > [,1] [,2] > [1,] 1369 22 > [2,] 1370 22 > [3,] 1368 23 > [4,] 1369 23 > [5,] 1370 23 > [6,] 1371 23 > (10080 rows truncated) > > Thes

[R] help me avoid nested for() loops!

2009-11-20 Thread Andrew Barr
Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) These represent pixel coordinates of interest in a jpeg image. I need to find the d

Re: [R] Help me improving my code

2009-10-31 Thread David Winsemius
This is rather obviously homework, and you have not read the Posting Guide, and you have not addressed the question of academic integrity policies that are probably in force at your university. -- David On Oct 31, 2009, at 1:30 PM, md. jakir hussain talukdar wrote: Hi, I am new to R. My pr

[R] Help me improving my code

2009-10-31 Thread md. jakir hussain talukdar
Hi, I am new to R. My problem is with the ordered logistic model. Here is my question: Generate an order discrete variable using the variable wrwage1 = wages in first full calendar quarter after benefit application in the following way: * wage*1*Ordered *= 1 *if*0 *· wrwage*1 *< *1000 2 *if

Re: [R] Help me replace a for loop with an "apply" function

2009-10-01 Thread jim holtman
What I am doing is trying to determine where the dates are not sequential (difference is not one day). Everytime that this occurs, the expression 'diff(.days) != 1' is TRUE and this is where a new sequence starts. 'diff' will return a vector one shorter than its input; I am assuming that the firs

Re: [R] Help me replace a for loop with an "apply" function

2009-10-01 Thread gd047
Congratulations! Could you explain to me the reason you add an initial "TRUE" value in the cumulatice sum? jholtman wrote: > > Will this work: > >> x <- read.table(textConnection(" day user_id > + 2008/11/012001 > + 2008/11/012002 > + 2008/11/012003 > + 2008/11/0120

  1   2   >