Re: [R] Assign value to a row in dataframe

2015-01-21 Thread zuzana zajkova
b a b 12 290 2011-11-19 08:56:54 a b a 13 291 2011-11-19 09:19:39 b a b which results in desired solution. Cheers Petr -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of zuzana

Re: [R] Assign value to a row in dataframe

2015-01-21 Thread zuzana zajkova
at 9:14 AM, zuzana zajkova zuzu...@gmail.com wrote: Hi, I have probably basic question, but I would be happy if somebody could help me with this: I have a dataframe where I want to assign a value to other column copying the value in previous row under some condition. Here

[R] Assign value to a row in dataframe

2015-01-20 Thread zuzana zajkova
Hi, I have probably basic question, but I would be happy if somebody could help me with this: I have a dataframe where I want to assign a value to other column copying the value in previous row under some condition. Here is an example (dput on the end of message): test[278:290,]

[R] Heatmap - strange horizontal lines

2014-10-23 Thread zuzana zajkova
Dear list, I would like to make heatmaps from my data. Acctualy, I have already done it, but the issue it that is doesn't work well for all files. All files have the same structure, after importing them I do few calculations using the same script, to obtain variables for plotting. You can find

[R] Fwd: problem importing apparently common txt files

2014-05-22 Thread zuzana zajkova
Dear list, I would like to import into R studio txt files coming from Adobe photoshop. These files contain different measures. The files are apparently common txt files with columns separate by tab. However with common function read.table the import process doesn't work and weird symbols appear

Re: [R] Fwd: problem importing apparently common txt files

2014-05-22 Thread zuzana zajkova
: num NA NA 52.5 NA NA ... A.K. On Thursday, May 22, 2014 9:11 AM, zuzana zajkova zuzu...@gmail.com wrote: Dear list, I would like to import into R studio txt files coming from Adobe photoshop. These files contain different measures. The files are apparently common txt files

Re: [R] Counting number of consecutive occurrences per rows

2013-05-03 Thread zuzana zajkova
-bounces@r- project.org] On Behalf Of zuzana zajkova Sent: Monday, April 29, 2013 12:45 PM To: r-help@r-project.org Subject: [R] Counting number of consecutive occurrences per rows Hi, I would appreciate if somebody could help me with following calculation. I have a dataframe, by 10

[R] Counting number of consecutive occurrences per rows

2013-04-29 Thread zuzana zajkova
Hi, I would appreciate if somebody could help me with following calculation. I have a dataframe, by 10 minutes time, for mostly one year data. This is small example: dput(test) structure(list(jul = structure(c(14655, 14655, 14655, 14655, 14655, 14655, 14655, 14655, 14655, 14655, 14655, 14655,

[R] Fwd: Dotchart per groups

2013-04-15 Thread zuzana zajkova
Hi all, I would like to ask you for advice. I did a dotplot - using dotchart function. There are two localites (loc) with values 75 or 56 in my data ZZ. The f column has 4 levels: P1, S1, S8, R6. The dataframe is ordered by N value, pchloc value is assign to use pch in plot. head(ZZ) loc f

[R] Dotchart per groups

2013-04-11 Thread zuzana zajkova
Hi all, I would like to ask you for help. I did a dotplot - using dotchart function. There are two localites (loc) with values 75 or 56 in my data ZZ. The f column has 4 levels: P1, S1, S8, R6. The dataframe is ordered by N value, pchloc value is assign to use pch in plot. head(ZZ) loc f

Re: [R] Double condition

2013-03-25 Thread zuzana zajkova
AM, zuzana zajkova zuzu...@gmail.comwrote: Hi, I would appreciate if somebody could help me with this small issue... I have a dataframe like this (originaly has more than 100 000 rows): subz jultimedtime fixddawnddusk day 101608 15006 2011-02-01 19

[R] Double condition

2013-03-25 Thread zuzana zajkova
this helps, Rui Barradas Em 22-03-2013 18:18, zuzana zajkova escreveu: Hi, I would appreciate if somebody could help me with this small issue... I have a dataframe like this (originaly has more than 100 000 rows): subz jultimedtime fixddawnddusk

Re: [R] Double condition

2013-03-25 Thread zuzana zajkova
}) names(tmp) - NULL result - do.call(rbind, tmp) Hope this helps, Rui Barradas Em 25-03-2013 14:15, zuzana zajkova escreveu: Hi Rui, thank you for your code, but unfortunately it doesn't work correctly. What I got is this: subz jultimedtime fix

[R] Double condition

2013-03-22 Thread zuzana zajkova
Hi, I would appreciate if somebody could help me with this small issue... I have a dataframe like this (originaly has more than 100 000 rows): subz jultimedtime fixddawnddusk day 101608 15006 2011-02-01 19:14:49 19.24694 noon 7.916667 19.88333 1

Re: [R] Max value of each 2 rows in dataframe

2013-02-13 Thread zuzana zajkova
64 64 64 51 64 A.K. - Original Message - From: zuzana zajkova zuzu...@gmail.com To: Rui Barradas ruipbarra...@sapo.pt Cc: r-help@r-project.org Sent: Tuesday, February 12, 2013 6:53 PM Subject: Re: [R] Max value of each 2 rows in dataframe Hi, sorry for not useable data

[R] Max value of each 2 rows in dataframe

2013-02-12 Thread zuzana zajkova
Hello, I would like to ask you for help. I have quite a big dataframe (119 313 rows), this is a part of it: jul ind time secs geo act lig date.x clock h m s d mo y dtime land date.y sriseIC ssetIC dssetIC dsriseIC 1207 14628 5500519 2010-01-19 15:14:59 40197.635414 17016001 0 64 19/01/10

Re: [R] Max value of each 2 rows in dataframe

2013-02-12 Thread zuzana zajkova
is a mess. Can't you please use ?dput to post it? Supposing your data is named 'dat', use dput(head(dat, 20)) # Paste the output of this in a post Hope this helps, Rui Barradas Em 12-02-2013 15:30, zuzana zajkova escreveu: Hello, I would like to ask you for help. I have quite a big