[R] What does the bandwidth at the bottom of periodogram mean

2014-03-07 Thread Baro
Hi experts if I run the code: k<-c(1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10) x.spec<-spectrum(k,log=c("no")) at the bottom of dagram I have a bandwidth, what does it mean? [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Having a plot with points and line with different colors

2014-03-05 Thread Baro
t;black") > > David > > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon > Sent: Wednesday, March 5, 2014 4:08 AM > To: Baro > Cc: R help > Subject: Re: [R] Having a plot with

Re: [R] Having a plot with points and line with different colors

2014-03-05 Thread Baro
thanks Jim, could you please show me some example? On Wed, Mar 5, 2014 at 2:02 AM, Jim Lemon wrote: > On 03/05/2014 08:59 PM, Baro wrote: > >> Hi experts >> >> I want to have a plot, which consist of line and points something like >> this: >> >> p

[R] Having a plot with points and line with different colors

2014-03-05 Thread Baro
Hi experts I want to have a plot, which consist of line and points something like this: plot(data, type="o") but I would like that lines and point have different colors. for example line should be blue and points should be black how can I do that in R? [[alternative HTML version delete

[R] Problem while plotting some plots

2014-01-28 Thread Baro
Hi experts I want to plot some plots with r in plot pane. At least two plots to six or more. I have this code to do this job, but in some positions the main plot gets lost: plot(datalistB, type="l") while(1+window+n <= length(data[,1])) { datalistB<-datalist[n:(n+window-1)]

[R] How to include (source) R script in other scripts

2014-01-08 Thread Baro
Hi experts I want to read an excel file in an R-script and send the inputs to another script to more process the first file for reading the data is (First.R): wb <- loadWorkbook("adress") dat <-readWorksheet(wb, sheet=getSheets(wb)[1], startRow=strow, endRow=endrow, startCol=spalte, endCol=spalt

Re: [R] NAs introduced by coercion warning, while plotting data

2014-01-07 Thread Baro
> > plot(xin) > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > > On Tue, Jan 7, 2014 at 10:15 AM, Baro wrote: > > Thank you sir: > > > > If I am tyin

Re: [R] NAs introduced by coercion warning, while plotting data

2014-01-07 Thread Baro
re straightforward! > > best > daniel > > Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; > meghatalmazó: Baro [babak...@gmail.com] > Küldve: 2014. január 7. 16:01 > To: PIKAL Petr > Cc: R help > Tárgy: R

Re: [R] NAs introduced by coercion warning, while plotting data

2014-01-07 Thread Baro
e structure and to use > > dput(datalist) > > to post the data. > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > > On Tue, Jan 7, 2014 at 10:01 AM, Baro w

Re: [R] NAs introduced by coercion warning, while plotting data

2014-01-07 Thread Baro
ain more clearly what you did (code) and what are your data > (dput) > > I presume that the story is not as simple as plotting a vector as you have > suggested. > > Petr > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bo

[R] NAs introduced by coercion warning, while plotting data

2014-01-07 Thread Baro
Hi all I have such a Data and I want to plot them but I get this warning Warning message: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion " 7.0121, -0.673354, 0.749622, -0.549641, 0.435662, -0.328995, 0.0869976, -0.0851428, -0.191019, 0.188799, -0.373707, 0.434814, -0.51979

[R] Setting x-axis of a plot on each loop

2013-11-13 Thread Baro
I have a block of code: window<-5 start<-3 n<-1 seq1 <- seq(1:40) mat<-matrix(seq1,40) while(1+window<=length(mat[,1])) { kd<-matrix(as.integer(mat[n:(n+window-1),1])) Sys.sleep(0.2) plot(kd,col="blue",xlab="Rohdaten",ylab="values",xlim=c(start+n,start+n+window-1) ) n<-n+1 } I have thi

[R] Having a relative x-axis in a plot

2013-11-12 Thread Baro
I would like to have a relative x-axis in r. I am reading time seris from an excel file and I want to show in a plot and also I want to have a window which moves over the values. My aim ist to see which point belongs to which time(row number in excel file). i.e I am reading from 401th row in 1100t

[R] Hanning window in r

2013-11-06 Thread Baro
Hi experts I would like to run Hamming window on a time series in r. I am using e1071 package and STFT function in it like this: s<-stft(datalist, win=min(80,floor(length(datalist)/10)), inc=min(24,floor(length(datalist)/30)), coef=10, wtype="hanning.window") My expectation is so, that I get a

Re: [R] Fraud and Anomaly detection packages in R...

2013-11-06 Thread Baro
take a look at zoo and outliers package. may be help you On Wed, Nov 6, 2013 at 3:00 AM, Hossam Hassanien wrote: > Hello, > > hope all are well. I just wanted some help with finding some of the > packages that could be used for Fraud and Anomaly detection purposes. I > would be more than thankf

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
> > to get the numbers back. More efficient, but harder to remember, is > > as.numeric(levels(f))[as.integer(f)] > > In any case, do not call as.numeric() or their likes directly for the > task at hand (as as.numeric() or unclass() give the internal codes). > > Regards >

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
> And if you are in reading some docs you can try to locate R-intro and go > through it. It can help you greatly in beginning. > > > > Regards > > Petr > > > > *From:* Baro [mailto:babak...@gmail.com] > *Sent:* Tuesday, November 05, 2013 4:02 PM > *To:* PIKAL Pet

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
ginal Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Baro > > Sent: Tuesday, November 05, 2013 3:42 PM > > To: R help > > Subject: [R] Problem while reading Data from a data frame > > > > Hi exper

[R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
Hi experts, I want to read only the half of my data frame, which I read it from clip board, and save it in a list. I wrote this code but it doesnt work: ck<-read.table("clipboard") datalist<-list() d<-dim(ck)[1] i<-1 repeat { datalist<-c(datalist,ck[i,]) i<-i+2 if(i>d) {break} } datalist

Re: [R] Reading only one Column of an excel file using RODBC

2013-11-05 Thread Baro
ot;07002 -3010 [Microsoft][ODBC Excel Driver] Too few parameters. Expected 1." [2] "[RODBC] ERROR: Could not SQLExecDirect 'SELECT top 1 F1 FROM `Tabelle1$`'" On Tue, Nov 5, 2013 at 2:33 AM, Prof Brian Ripley wrote: > On 05/11/2013 09:18, Baro wrote: > >> Hi

[R] Reading only one Column of an excel file using RODBC

2013-11-05 Thread Baro
Hi experts How can I read only one column of an excel file using RODBC in r? [[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-pr

Re: [R] Reading data from Excel file in r

2013-11-04 Thread Baro
Wireless 4G LTE Smartphone > > > > Original message > From: Baro > Date: 11/04/2013 09:26 (GMT-05:00) > To: "Adams, Jean" > Cc: R help > Subject: Re: [R] Reading data from Excel file in r > > > thanks alot, but now I have another problem:

Re: [R] Reading data from Excel file in r

2013-11-04 Thread Baro
hen-using-r-and-xlconnect-package > > Jean > > > On Mon, Nov 4, 2013 at 8:26 AM, Baro wrote: > >> >> thanks alot, but now I have another problem: my Excel file is very big >> and I get this error, which says: >> >> Error: OutOfMemoryError (Java): Java

Re: [R] Reading data from Excel file in r

2013-11-04 Thread Baro
139, > startCol=5, endCol=5) > dat <- readWorksheet(wb, sheet=getSheets(wb)[1], startRow=1, endRow=79, > startCol=5, endCol=5) > odds <- function(x) x[seq(1, length(x), 2)] > odds(unlist(dat)) > > Jean > > > > On Mon, Nov 4, 2013 at 7:47 AM, Baro wrote: > >&g

[R] Reading data from Excel file in r

2013-11-04 Thread Baro
Hi experts, I want to read data from an excel data like this: for the fifth column, from first row until 140 but only 1,3,5,7,.139 (only 70 values), How can I do it in R? thanks [[alternative HTML version deleted]] __ R-help@r-project.

[R] Showing a reduced Time series in a plot

2013-10-29 Thread Baro
Hi experts, I have a Time serie like this T=(12,13,14,20,65,78,85,35) I do a Transformation on this series and then I have: T ' =(17.22009 27.96722 111.16376 71.33732) I want to show T ' on the plot, but on X-Axis I want to have 8 values, for the first two value on x-axis ->17.22009 and.

[R] Error: Data is not atomic

2013-10-28 Thread Baro
Hi experts, I want to user haar wavelet transform. If I am using this simple command, it works nice: k<-c(1,2,3,4,5,6,7,8) ywd<-wd(k,filter.number=1,family="DaubExPhase") but if the K is a list like this: *[[1]]* *[1] 401* * * *[[2]]* *[1] 481* * * *[[3]]* *[1] 480* * * *[[4]]* *[1] 482* * * *[