Re: [R] plot xaxp issue

2013-01-07 Thread PIKAL Petr
mistakes (missing parntheses, missing commas, etc.). Typing mistakes are probably the most common source of failing code. Regards Petr -Original Message- From: Elaine Kuo [mailto:elaine.kuo...@gmail.com] Sent: Tuesday, January 08, 2013 2:03 AM To: PIKAL Petr Cc: r-help@r-project.org

Re: [R] error in a abline loop

2013-01-09 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of arun Sent: Tuesday, January 08, 2013 3:30 PM To: Elaine Kuo Cc: R help Subject: Re: [R] error in a abline loop HI Elaine, In the data you sent to me, it had 5 levels

Re: [R] Basic loop programming

2013-01-09 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Paolo Donatelli Sent: Wednesday, January 09, 2013 5:03 PM To: r-help@r-project.org Subject: [R] Basic loop programming Hi all, newbie question: I am trying to set up a

Re: [R] Extract data

2013-01-11 Thread PIKAL Petr
Hi No HTML. No highlighting. if you want some data from object use extraction operator ?[ Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of shairul samat Sent: Friday, January 11, 2013 10:19 AM To: r-help@r-project.org

Re: [R] count combined occurrences of categories

2013-01-11 Thread PIKAL Petr
Hi structure of your data frame is not suitable for this task. library(reshape) tutu.m-melt(tutu, nam) table(tutu.m$nam, tutu.m$value) art deb joy mar seb lio nem tat da 2 3 1 4 1 1 0 0 fr 2 2 2 3 0 1 1 1 ya 1 2 1 0 0 1 1 0

Re: [R] matrix manipulation with its rows

2013-01-16 Thread PIKAL Petr
Hi with your specific example you can use remat-function(mat) { mt-t(mat) mt-c(mt[1:3], rep(0,6), mt[4:6]) matrix(mt, 2,6, byrow=TRUE) } lapply(sample, remat) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of

Re: [R] How to change levels?

2013-01-16 Thread PIKAL Petr
Hi or you can just call factor function after subsetting newdata[,7] - factor (newdata[,7]) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Ista Zahn Sent: Wednesday, January 16, 2013 6:36 PM To: paladini Cc:

Re: [R] Getting discrete colors on plot

2013-01-17 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Mary Sent: Thursday, January 17, 2013 6:02 PM To: r-help@r-project.org Subject: Re: [R] Getting discrete colors on plot Hi, This is my first post; I'm new to R but am

Re: [R] reading multiple key=value pairs per line

2013-01-18 Thread PIKAL Petr
Hi One option are regular expressions but you can also read data with = as separator. test-read.table(input_kvpairs.csv, sep=c(=), header=F, stringsAsFactors=F) #use this function to split and extract numeric parts extract-function(x) as.numeric(sapply(strsplit(x,,),[,1)) # and apply the

Re: [R] plotting from dataframes

2013-01-18 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of condor Sent: Friday, January 18, 2013 10:17 AM To: r-help@r-project.org Subject: Re: [R] plotting from dataframes So by hand the command would be par(mfrow=c(1,2))

[R] picture processing

2013-01-21 Thread PIKAL Petr
Dear all I try to evaluate pictures and find positions, size and amount of dropouts (I enclose two pictures to play with and a code I used below). You can see that the first picture is smooth with only few dropouts in entire area. The second picture has many dropouts and even a scratch, with

Re: [R] picture processing

2013-01-21 Thread PIKAL Petr
[mailto:r-help-bounces@r- project.org] On Behalf Of PIKAL Petr Sent: Monday, January 21, 2013 10:01 AM To: r-help Subject: [R] picture processing Dear all I try to evaluate pictures and find positions, size and amount of dropouts (I enclose two pictures to play with and a code I used below

Re: [R] picture processing

2013-01-21 Thread PIKAL Petr
- project.org] On Behalf Of PIKAL Petr Sent: Monday, January 21, 2013 2:37 PM To: r-help Subject: Re: [R] picture processing I am sorry, pictures did not went through. Using dput is not a way to go, the output file has over 3 MB. I try to find a suitable way where to put those pictures (they have about

Re: [R] Concatenate two lists, list by list

2013-01-22 Thread PIKAL Petr
Hi Maybe you could use mapply mapply(c, Part1$dataset,Part2$dataset) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alaios Sent: Tuesday, January 22, 2013 11:26 AM To: R help Subject: [R] Concatenate two

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Yuan, Rebecca Sent: Tuesday, January 22, 2013 4:07 PM To: R help Subject: [R] plot two time series with different length and different starting point in one figure.

Re: [R] Adding a line to barchart

2013-01-22 Thread PIKAL Petr
Hi This function adds line to each panel addLine - function (a = NULL, b = NULL, v = NULL, h = NULL, ..., once = F) { tcL - trellis.currentLayout() k - 0 for (i in 1:nrow(tcL)) for (j in 1:ncol(tcL)) if (tcL[i, j] 0) { k - k + 1 trellis.focus(panel, j, i,

Re: [R] Adding a line to barchart

2013-01-23 Thread PIKAL Petr
about debugging grid graphics by Paul Murrell. Regards Petr On Tue, Jan 22, 2013 at 11:49 PM, PIKAL Petr petr.pi...@precheza.cz wrote: Hi This function adds line to each panel addLine - function (a = NULL, b = NULL, v = NULL, h = NULL, ..., once = F) { tcL

Re: [R] Recoding variables (without recode() )

2013-01-25 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of David Studer Sent: Friday, January 25, 2013 9:28 AM To: r-help@r-project.org Subject: [R] Recoding variables (without recode() ) Hi everybody! I have a rather simple

Re: [R] Wrong csv data?

2013-01-25 Thread PIKAL Petr
Hi Attachment did not went through. Can you show us result of dput(head(data)) or output from str(data)? Anyway I wonder how time can became temperature. R is smart but I do not believe that during import it somehow gets a local temperature at given time and put it in your data. Regards Petr

Re: [R] Help with adding 'dates' string as rownames to matrix

2013-01-25 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of kevj1980 Sent: Friday, January 25, 2013 11:22 AM To: r-help@r-project.org Subject: [R] Help with adding 'dates' string as rownames to matrix Hi, I need help with two

Re: [R] Percentages in bar plot

2013-01-31 Thread PIKAL Petr
Hi or use prop.table barplot(prop.table(table(stop))) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Rui Barradas Sent: Wednesday, January 30, 2013 4:01 PM To: Naser Jamil Cc: R help Subject: Re: [R]

Re: [R] use name (not values!) of a dataframe inside a funktion

2013-02-01 Thread PIKAL Petr
Hi Maybe others can help you but here is my comment. I already use R for many years and never used such construction. Objects in global environment shall not be modified by functions it is a bad practice. Imagine you have some data frame you prepared and controlled in many steps and use some

Re: [R] Nested loop and output help

2013-02-01 Thread PIKAL Petr
Hi see inline -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of staysafe23 Sent: Friday, February 01, 2013 1:01 AM To: r-help@r-project.org Subject: [R] Nested loop and output help Hello Everyone, My name is Thomas and I

Re: [R] difftime() out by 1 hour

2013-02-01 Thread PIKAL Petr
Hi The same with me on Windows Most probably an issue of daylight savings time setting. Sys.timezone() [1] CET Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Pascal Oettli Sent: Friday, February 01, 2013 9:18

Re: [R] how to setdiff on lists of lists

2013-02-01 Thread PIKAL Petr
Hi you have something wrong in your R session, works for me. aa-list(c(1:3), c(4:6)) aa [[1]] [1] 1 2 3 [[2]] [1] 4 5 6 bb-list(3,5) bb [[1]] [1] 3 [[2]] [1] 5 lapply(aa, setdiff, bb) [[1]] [1] 1 2 [[2]] [1] 4 6 Regards Petr -Original Message- From:

Re: [R] how to

2013-02-01 Thread PIKAL Petr
Hi I do not see any problem with your code. *apply functions are also hidden cycles and there shall not be substantial improvement in speed. Why you do not want to use for cycle? Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On

Re: [R] how to

2013-02-01 Thread PIKAL Petr
/feb/2013, at 13:31, PIKAL Petr petr.pi...@precheza.cz wrote: Hi I do not see any problem with your code. *apply functions are also hidden cycles and there shall not be substantial improvement in speed. Why you do not want to use for cycle? Petr -Original Message- From

Re: [R] Nested loop and output help

2013-02-06 Thread PIKAL Petr
[mailto:staysaf...@gmail.com] Sent: Friday, February 01, 2013 10:12 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: RE: [R] Nested loop and output help Thank you very much Petr, I believe I have fixed my inquiry to not use floating points in my cycle as you pointed out and to use the list structure

Re: [R] Peak detector help!?

2013-02-08 Thread PIKAL Petr
Hi I am not sure if it suits your needs but I use this function for identifying peaks in different spectral data. peaks - function (series, span = 3, ties.method = first) { if ((span - as.integer(span))%%2 != 1) stop('span' must be odd) z - embed(series, span) s - span%/%2

Re: [R] Nested loop and output help

2013-02-08 Thread PIKAL Petr
R intro document (chapter 2 and chapter 9). You probably could find answer yourself quicker then waiting for me to answer it. Regards Petr From: staysafe23 [mailto:staysaf...@gmail.com] Sent: Thursday, February 07, 2013 9:09 PM To: PIKAL Petr Subject: RE: [R] Nested loop and output help Hi

Re: [R] convert 12 time stamp to 24 hour

2013-02-08 Thread PIKAL Petr
Hi Does not work in some locale environment strptime(testtime, %Y-%m-%d %I:%M:%S %p) [1] NA Sys.getlocale(LC_TIME) [1] Czech_Czech Republic.1250 Sys.setlocale(LC_TIME, C) [1] C strptime(testtime, %Y-%m-%d %I:%M:%S %p) [1] 2013-01-01 13:00:01 Regards Petr -Original Message-

Re: [R] convert 12 time stamp to 24 hour

2013-02-11 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of e-letter Sent: Monday, February 11, 2013 2:31 PM To: r-help@r-project.org Subject: Re: [R] convert 12 time stamp to 24 hour Readers, Have since tried to plot converted

Re: [R] convert 12 time stamp to 24 hour

2013-02-11 Thread PIKAL Petr
Hi -Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: Monday, February 11, 2013 3:11 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: Re: [R] convert 12 time stamp to 24 hour On 11/02/2013, PIKAL Petr petr.pi...@precheza.cz wrote: str(testtimedataset

Re: [R] Inserting rows of interpolated data

2013-02-12 Thread PIKAL Petr
Hi Why you do not change date and time to POSIX object? It is simple and saves you a lot of frustration when merging two data frames. If you changed lightdata date and time to new column lightdata$newdate - strptime(paste(lightdata$date, lightdata$time, sep= ), format = %d/%m/%y %H:%M:%S)

Re: [R] Need Help Plotting Line for multiple linear regression

2013-02-14 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Craig O'Connell Sent: Wednesday, February 13, 2013 11:03 PM To: r-help@r-project.org Subject: [R] Need Help Plotting Line for multiple linear regression Hello, My name

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread PIKAL Petr
Hi most probably your dates are not what you expect. Eg. they look like a date but they are not treated as date. You can check yourself by str(tabelle) which will result probably in factor, numeric, factor. You need to change variables date and date2 into Date class. ?strptime or ?as.Date

Re: [R] plot custom x axis ticks values

2013-02-14 Thread PIKAL Petr
Hi much quicker and better for you is to inspect help pages. ?axis axis(1, at=1:4, labels=c(letters[1:4])) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of e-letter Sent: Thursday, February 14, 2013 11:41 AM

Re: [R] plot custom x axis ticks values

2013-02-14 Thread PIKAL Petr
Hi when I tried your code the labels were positioned at correct positions. Please send some reproducible example. Regards Petr -Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: Thursday, February 14, 2013 11:58 AM To: PIKAL Petr Cc: r-help@r-project.org Subject

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Kategoricus Sent: Thursday, February 14, 2013 12:25 PM To: r-help@r-project.org Subject: Re: [R] Problems plotting and regression w.r.t. date data type on x axis Hello

Re: [R] match a task No. to a few person-IDs

2013-02-15 Thread PIKAL Petr
Hi ?merge Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Mat Sent: Friday, February 15, 2013 10:45 AM To: r-help@r-project.org Subject: [R] match a task No. to a few person-IDs hello together, i have a

Re: [R] plot custom x axis ticks values

2013-02-15 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of e-letter Sent: Friday, February 15, 2013 11:37 AM To: Duncan Murdoch Cc: r-help@r-project.org Subject: Re: [R] plot custom x axis ticks values On 15/02/2013, Duncan

Re: [R] Why no line? (ex. from Andy Filed book)

2013-02-15 Thread PIKAL Petr
Hi The code gives me some warnings but all seems to be OK. 4 points, dashed red line and error bars. Did you expect some other line? maybe issue of version/OS? (unstated) Petr sessionInfo() R Under development (unstable) (2012-10-29 r61044) Platform: i386-w64-mingw32/i386 (32-bit) locale:

Re: [R] Making the plot window wider and using the predict function

2013-02-15 Thread PIKAL Petr
Hi Hello, I am new to R and have a couple of questions. My data set contains the variables Bwt and Hwt, which are bodyweight and heartweight, respectively, of a group of cats. With the following code, I am making two plots, both to be viewed in the same plot window in R:

Re: [R] (no subject)

2013-02-21 Thread PIKAL Petr
Hi ?ncol Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of nandita srivastava Sent: Thursday, February 21, 2013 8:34 AM To: r-help@r-project.org Subject: [R] (no subject) how to sum columns in R?

[R] package ReadImages

2013-02-21 Thread PIKAL Petr
Dear all I prepared some image processing routine which depended on package ReadImages. Basically I imported image to R, changed rgb to grayscale, normalised an image made some selections and changed to image by imagematrix. Recently I learned that this package was removed from CRAN and can

Re: [R] package ReadImages

2013-02-22 Thread PIKAL Petr
#Image-files . Thanks, I will try. On Thu, Feb 21, 2013 at 8:26 AM, PIKAL Petr petr.pi...@precheza.cz wrote: Dear all I prepared some image processing routine which depended on package ReadImages. Basically I imported image to R, changed rgb to grayscale, normalised an image made some

Re: [R] (no subject)

2013-02-22 Thread PIKAL Petr
:36 AM To: PIKAL Petr Cc: nandita srivastava; r-help@r-project.org Subject: Re: [R] (no subject) Huh? This answer seems to have absolutely no bearing on the question. cheers, Rolf Turner On 02/21/2013 11:26 PM, PIKAL Petr wrote: Hi ?ncol Regards Petr

Re: [R] package ReadImages

2013-02-22 Thread PIKAL Petr
simple, without direct possibility to transform from rgb to grayscale and normalisation. Anyway, I will give it a try. Petr From: Greg Snow [mailto:538...@gmail.com] Sent: Friday, February 22, 2013 6:45 AM To: PIKAL Petr Cc: r-help Subject: Re: [R] package ReadImages Some possibilities

Re: [R] Controlling Order of Panels in Lattice Trellis Plots

2013-02-24 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Rich Shepard Sent: Friday, February 22, 2013 11:33 PM To: r-help@r-project.org Subject: Re: [R] Controlling Order of Panels in Lattice Trellis Plots On Fri, 22 Feb 2013,

Re: [R] package ReadImages

2013-02-24 Thread PIKAL Petr
suggested options. Regards Petr From: Greg Snow [mailto:538...@gmail.com] Sent: Friday, February 22, 2013 5:54 PM To: PIKAL Petr Cc: r-help Subject: Re: [R] package ReadImages For some of the fancier transforms it may be easier to use an outside tool such as Imagemagick which will do a lot

Re: [R] assign index to colnames(matrix)

2013-02-24 Thread PIKAL Petr
Hi What language are you comming from? colnames(ScoutRSM.mat) - paste(X, 1:39, sep=) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Prew, Paul Sent: Saturday, February 23, 2013 1:35 AM To:

Re: [R] colors to pie chart.

2013-02-24 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Nicole Ford Sent: Monday, February 25, 2013 7:57 AM To: R help Subject: [R] colors to pie chart. hello, all. i am trying something new and am stuck. i typically go

Re: [R] Making the plot window wider and using the predict function

2013-02-25 Thread PIKAL Petr
Hi From: Rasmus Hedegaard [mailto:hedegaard...@hotmail.com] Sent: Monday, February 25, 2013 2:53 PM To: PIKAL Petr Subject: RE: [R] Making the plot window wider and using the predict function Thank you, Petr - the command linreg0 - lm(Hwt ~ Bwt, data = maleData) works perfectly. Regarding

Re: [R] R software installation problem

2013-02-25 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Andy Siddaway Sent: Monday, February 25, 2013 11:24 AM To: Sarah Goslee Cc: r-help Subject: Re: [R] R software installation problem Dear Sarah, Thanks for your email.

Re: [R] creating variable that codes for the match/mismatch between two other variables

2013-02-25 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Jonas Walter Sent: Monday, February 25, 2013 2:38 PM To: r-help@r-project.org Subject: [R] creating variable that codes for the match/mismatch between two other variables

Re: [R] creating variable that codes for the match/mismatch between two other variables

2013-02-25 Thread PIKAL Petr
Hi -Original Message- From: Jonas Walter [mailto:jonas.wal...@student.uni-tuebingen.de] Sent: Monday, February 25, 2013 4:25 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: RE: [R] creating variable that codes for the match/mismatch between two other variables Hi Petr, oh

Re: [R] Merging value labels into indicator variable.

2013-02-26 Thread PIKAL Petr
Hi can not resist Var001 - (NAM=7 NAM=9)*1 Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Tasnuva Tabassum Sent: Tuesday, February 26, 2013 7:03 PM To: Berend Hasselman Cc: R help Subject: Re: [R] Merging

Re: [R] Merging value labels into indicator variable.

2013-02-27 Thread PIKAL Petr
Hi as far as result of operation is logical vector you can change it to numeric by simple multyplying by 1 or adding 0. It is treated as 0 when FALSE and 1 when TRUE. Regards Petr From: Tasnuva Tabassum [mailto:t.tasn...@gmail.com] Sent: Wednesday, February 27, 2013 10:16 AM To: PIKAL Petr

Re: [R] help for an R automated procedures

2013-02-28 Thread PIKAL Petr
Hi exactly what is fortune(surgery) about. Anyway, you can save yourself a lot headache, if you start using lists for your objects. Lists can be used easily in cycles. for (i in 1:n) { some.list[i] - some.function(some.other.list[i]) } and also lapply/sapply functions can be useful

Re: [R] Ploting different values with different colors

2013-02-28 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Benoit Gendreau-Berthiaume Sent: Friday, March 01, 2013 12:54 AM To: r-help@r-project.org Subject: [R] Ploting different values with different colors Hello I am trying to

Re: [R] Select first element of each factor and convert to NA

2013-02-28 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Cesar Terrer Sent: Friday, March 01, 2013 4:21 AM To: r-help@r-project.org Subject: [R] Select first element of each factor and convert to NA Hi all, I have a

Re: [R] Automatically fix big jumps in one variable due to anomalies

2013-03-07 Thread PIKAL Petr
Hi Not sure if it solves all possible misbehavior with sensor but changing all jumps start to NA or 0, summing diferences and adding them to start can help you to polish your data x [1] NA NA 246 251 250 255 5987 5991 5994 5999 xd-diff(x) xd[xd10]-NA xd[is.na(xd)]-0 cumsum(xd) [1] 0

Re: [R] create vector from indices interpolated values

2013-03-07 Thread PIKAL Petr
Hi maybe index - which(is.na(dataset1$V2)) y - dataset2$V1[index] plot(y~x) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of e-letter Sent: Thursday, March 07, 2013 8:28 AM To: r-help@r-project.org Subject:

Re: [R] transpose lists

2013-03-08 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of ishi soichi Sent: Friday, March 08, 2013 10:50 AM To: r-help Subject: [R] transpose lists Can you think of a function that transposes a list like What shall be the result

Re: [R] Substitute value

2013-03-08 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of chris201 Sent: Friday, March 08, 2013 11:23 AM To: r-help@r-project.org Subject: [R] Substitute value Hi, I have a large data frame and within this there is one column

Re: [R] R GUI frond has stopped working

2013-03-08 Thread PIKAL Petr
Hi Some issues: 1 do not use HTML mail 2 what OS 3 which R version 4 when and how it stopped working - exact error message (if any) 5 did you ask xcms maintainer for help? (it is not in standard CRAN packages) 6 try to send reproducible example for others to enable them to test the problem

Re: [R] Coversion from yearly to weekly data

2013-03-08 Thread PIKAL Petr
Hi some brute force aggregate(test$Value, list(rep(1:61, each=7)[1:422]), mean) or aggregate(test$Value, list(findInterval(1:nrow(test), seq(1,422,by=7)), test$Data), mean) gives you aggregated values for each week. or lll - split(test, test$Data) lapply(lll, function(x) aggregate(x,

Re: [R] factor expansion

2012-09-19 Thread PIKAL Petr
Hi I did not see any answer yet but can you explain what you mean by factor expansion? Something like expand.grid? Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Jose Bustos Melo Sent: Wednesday, September 12, 2012

Re: [R] Why x[1] is not getting substituted?

2012-09-19 Thread PIKAL Petr
Hi because you need to evaluate it. print(paste(Trial and ,eval(x[1]), sheet)) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Sri krishna Devarayalu Balanagu Sent: Tuesday, September 18, 2012 11:41 AM To:

Re: [R] correlating matrices

2012-09-24 Thread PIKAL Petr
Hi before you can use predict you need to do lm(whatever.). If you used lm(whatever., na.action=na.exclude) predict will give you results with correctly placed NA values. Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-

Re: [R] creating new variable

2012-09-24 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Niklas Fischer Sent: Thursday, September 20, 2012 11:13 PM To: r-help@r-project.org Subject: [R] creating new variable Dear R-helper I have a data which is about

Re: [R] List creation based on matrix

2012-09-24 Thread PIKAL Petr
To: PIKAL Petr; r-help@r-project.org Subject: RE: [R] List creation based on matrix Please see the attached .csv files for further info, Thanks guys, Ben Gillespie Research Postgraduate School of Geography University of Leeds Leeds LS2 9JT Tel: +44(0)113 34 33345 Mob: +44(0)770 868

Re: [R] serial subtraction within a vector

2012-09-24 Thread PIKAL Petr
Hi I suppose you want diff(v) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Hermann Norpois Sent: Monday, September 24, 2012 1:01 PM To: r-help@r-project.org Subject: [R] serial subtraction within a vector

Re: [R] How to Write a Model in R that has the Log taken of the Intercept

2012-09-24 Thread PIKAL Petr
Hi I do not understand your point. actually lm(y~x) is the same as lm(y~x+1) You can specify a model without intercept by lm(y~x-1) you can even do lm(y~log(x)) But log(intercept) does not have sense. You will get an intercept which is a number and you can consider it log(intercept)

Re: [R] List creation based on matrix

2012-09-24 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of benrgillespie Sent: Monday, September 24, 2012 1:20 PM To: r-help@r-project.org Subject: [R] List creation based on matrix Hi guys, It would be great if you could help

Re: [R] Script to count unique values from two linked matricies

2012-09-24 Thread PIKAL Petr
Hi I have no access to Nabble so it is difficult to understand what do you want. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of benrgillespie Sent: Monday, September 24, 2012 1:47 PM To: r-help@r-project.org Subject: [R]

Re: [R] Strange data frame behavior

2012-09-25 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Raoni Rodrigues Sent: Tuesday, September 25, 2012 7:22 AM To: r-help@r-project.org Subject: [R] Strange data frame behavior Hello all, I don't understand a strange

Re: [R] mapping data from table to .csv template

2012-09-25 Thread PIKAL Petr
Hi your data are difficult to read so I make my own set.seed(111) sender-sample(letters[1:5], 20, replace=T) receiver-sample(letters[1:5], 20, replace=T) xtabs(~sender+receiver) receiver sender a b c d e a 1 1 3 1 0 b 0 1 0 1 1 c 1 3 2 2 0 d 0 1 0 0 1 e 0 0 0 1 0

Re: [R] Script to count unique values from two linked matricies

2012-09-25 Thread PIKAL Petr
Hi thanks for data. Probably others can come with better solution with library(reshape) you can put your data to better form dat2.m-melt(dat2) dat1.m-melt(dat1) merge them dat-merge(dat1.m, dat2.m, by=Species) and finally compute required values select one site temp-dat[dat[,2]==Site3

Re: [R] factor expansion

2012-09-27 Thread PIKAL Petr
: Wednesday, September 26, 2012 6:39 PM To: PIKAL Petr; r-help@r-project.org Subject: Re: [R] factor expansion Thank you PIKAL Petr, This is used when you have a big data base of a national sample. So, this factor is a variable that uses the sample in order to obtain information about all the people

Re: [R] erasing a polygon

2012-09-27 Thread PIKAL Petr
Hi It seems that it still works. x-c(3,7,7,3) y-c(4,4,6,6) par(bg=pink) plot(1:10,1:10) polygon(x, y, border=TRUE, col=0) version _ platform i386-pc-mingw32 arch i386

Re: [R] How to add a new row in to an existing data set in R Language?

2012-10-05 Thread PIKAL Petr
Hi ?merge or ?rbind Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of killerkarthick Sent: Friday, October 05, 2012 6:39 AM To: r-help@r-project.org Subject: [R] How to add a new row in to an existing data set in

Re: [R] Calculating the mean in one column with empty cells

2012-10-05 Thread PIKAL Petr
Hi see inline -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of fxen3k Sent: Friday, October 05, 2012 11:28 AM To: r-help@r-project.org Subject: [R] Calculating the mean in one column with empty cells Hi all, I recently

Re: [R] Calculating the mean in one column with empty cells

2012-10-05 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of fxen3k Sent: Friday, October 05, 2012 3:18 PM To: r-help@r-project.org Subject: Re: [R] Calculating the mean in one column with empty cells I imported the whole dataset

Re: [R] R: machine for moderately large data

2012-10-05 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Skála, Zdeněk (INCOMA GfK) Sent: Friday, October 05, 2012 3:38 PM To: r-help@r-project.org Subject: [R] R: machine for moderately large data Dear all, I would like to

Re: [R] Calculating the mean in one column with empty cells

2012-10-08 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of William Dunlap Sent: Saturday, October 06, 2012 6:17 PM To: David Winsemius; fxen3k Cc: r-help@r-project.org Subject: Re: [R] Calculating the mean in one column with empty

Re: [R] Graphs using R

2012-10-08 Thread PIKAL Petr
Hi homework? No homewok policy here. You can check e.g. ggplot2 package Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Nethal Jajo Sent: Monday, October 08, 2012 10:27 AM To: r-help@R-project.org Subject: [R]

Re: [R] How to use Lines function to draw the error bars?

2012-10-08 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of liang@us.pwc.com Sent: Tuesday, October 09, 2012 2:50 AM To: r-help@r-project.org Subject: Re: [R] How to use Lines function to draw the error bars? one extra question

Re: [R] Summary using by() returns character arrays in a list

2012-10-10 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alex van der Spek Sent: Wednesday, October 10, 2012 2:48 PM To: r-help@r-project.org Subject: [R] Summary using by() returns character arrays in a list I use by() to

Re: [R] Summary using by() returns character arrays in a list

2012-10-12 Thread PIKAL Petr
: Wednesday, October 10, 2012 4:03 PM To: PIKAL Petr Cc: Alex van der Spek; r-help@r-project.org Subject: RE: [R] Summary using by() returns character arrays in a list Thank you Petr, Try this str(by(iris, iris$Species, summary)) and you will see what is actually returned is a list

Re: [R] Exporting each row in the table as new table

2012-10-12 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of kallu Sent: Thursday, October 11, 2012 3:05 PM To: r-help@r-project.org Subject: [R] Exporting each row in the table as new table Dear all, I am new to R and I am

Re: [R] average duplicated rows?

2012-10-15 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Pieter Schoonees Sent: Friday, October 12, 2012 6:19 PM To: Vining, Kelly; r-help@r-project.org Subject: Re: [R] average duplicated rows? You will have to split() the data

Re: [R] Error in rowMeans function

2012-10-15 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Gunsalus, Catherine Sent: Friday, October 12, 2012 8:52 PM To: r-help@r-project.org Subject: [R] Error in rowMeans function Hello, I am trying to create parcels for a

Re: [R] How to get rid of page 1 and 4 i.e Only dots pages while generating the graphs?

2012-10-15 Thread PIKAL Petr
Hi snip While I am generating graphs for the above data I am getting four graphs in four pages in a pdf with the following programme. Page1: Only dots (No lines) Page2: Lines observed Page3: Lines observed Page4: Only dots (No lines) I want to get rid of page 1 and 4 i.e Only dots

Re: [R] Error in rowMeans function

2012-10-15 Thread PIKAL Petr
To: r-help@r-project.org Subject: Re: [R] Error in rowMeans function On 10/15/2012 08:28 AM, PIKAL Petr wrote: Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Gunsalus, Catherine Sent: Friday, October 12, 2012 8:52 PM

Re: [R] Margin annotation

2012-10-22 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of David Arnold Sent: Monday, October 22, 2012 4:26 AM To: r-help@r-project.org Subject: [R] Margin annotation I have this code: x=seq(80-3*15,80+3*15,length=200);

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of asafwe Sent: Monday, October 22, 2012 4:02 AM To: r-help@r-project.org Subject: [R] Counting duplicates in a dataframe Hello, I am looking at a two-way ANOVA dataset,

Re: [R] How to use tapply with more than one variables grouped

2012-10-22 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of noobmin Sent: Monday, October 22, 2012 2:28 AM To: r-help@r-project.org Subject: [R] How to use tapply with more than one variables grouped I'm studying alone the R

Re: [R] How to use tapply with more than one variables grouped

2012-10-22 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of noobmin Sent: Monday, October 22, 2012 12:31 PM To: r-help@r-project.org Subject: Re: [R] How to use tapply with more than one variables grouped interTable -data.frame

Re: [R] How to use tapply with more than one variables grouped

2012-10-22 Thread PIKAL Petr
Hi -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Monday, October 22, 2012 4:00 PM To: PIKAL Petr Cc: noobmin; r-help@r-project.org Subject: Re: [R] How to use tapply with more than one variables grouped Inline. On Mon, Oct 22, 2012 at 6:55 AM

  1   2   3   4   5   6   7   8   9   10   >