?rainbow
?col2rgb
rainbow(8)
col2rgb(rainbow(8)[5])
col2rgb(rainbow(8)[5])[1]
col2rgb(rainbow(8)[5])[2]
col2rgb(rainbow(8)[5])[3]
On Fri, Aug 8, 2014 at 6:26 AM, carol white wrote:
> Hi,
> Is there any way to take one color of each color family from a color palettes
> like rainbow? For ex, if
On Sat, Feb 26, 2011 at 10:11 PM, Bert Gunter wrote:
> Are you a fan of James Joyce? Is the Caps key on your keyboard broken?
>
> -- Bert
Are your snide comments adding anything to the conversation?
Do you allow for the possibility of an ESL speaker writing an email to
this list?
Do you know th
On Sun, Feb 20, 2011 at 2:56 PM, Dmitry Berman wrote:
> On Sun, Feb 20, 2011 at 5:55 PM, Dmitry Berman wrote:
>
>> Listers,
>>
>> I have a simple matrix:
>>
>> --
>> m <-c(1:7)
>> m <- cbind(m)
>>
>> m
>> [1,] 1
>> [2,] 2
>> [3,] 3
>> [4,] 4
>> [5,] 5
>> [6,] 6
>>
On Wed, Feb 9, 2011 at 11:20 AM, Erik Iverson wrote:
>
>
> Mark Knecht wrote:
>>
>> Title asks it all.
>>
>> Thanks in advance,
>> Mark
>>
>> a = 1:5
>> b1 = 2:6
>> Z = data.frame(a,b1)
>> Z
>>
>> Z$b1
>>
>
Title asks it all.
Thanks in advance,
Mark
a = 1:5
b1 = 2:6
Z = data.frame(a,b1)
Z
Z$b1
count = 1
MyName = paste("b",count,sep="")
MyName
Z$MyName
N = as.name(MyName)
Z$N
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/
Hi,
I've got the following code which seems to work fine for a single
file if I specify the file name explicitly in the code. What I need to
do is run it on all the files in the directory tested and augment the
data frame I'm building to have more results columns.How can I do
that?
Here's th
On Tue, Feb 8, 2011 at 11:29 AM, Phil Spector wrote:
> Mark -
> Here's a few possibilites:
>
>> dts = c('6/10/2009 10:04:00 AM','6/15/2009 9:47:00 AM','6/15/2009 9:47:00
>> AM')
>> as.Date(sapply(strsplit(dts,' '),'[',1),'%m/%d/%Y')
>
> [1] "2009-06-10" "2009-06-15" "2009-06-15"
>>
>> as.Date(su
On Tue, Feb 8, 2011 at 11:30 AM, Prof Brian Ripley
wrote:
> Try as.Date() with a suitable format (it only knows about internationally
> standard formats), e.g. maybe you mean
>
>> as.Date("6/10/2009 10:04:00 AM", format="%m/%d/%Y")
>
> [1] "2009-06-10"
>
Thank you!
- Mark
__
I have hundreds of CSV files coming in from another program that have
a text field representing the date & time combined together. I need to
strip the time and keep the date. How could I do that?
In the example below, on the first line I need to keep the 6/15/2009,
turning it into a date that R re
On Fri, Jan 7, 2011 at 8:42 AM, Henrique Dallazuanna wrote:
> Try this:
>
> rowSums(rowsum(t(m), rep(1:3, c(2, 2, 1)), na.rm = TRUE))
>
>
> On Fri, Jan 7, 2011 at 2:29 PM, emj83 wrote:
>
>>
>> Hi,
>>
>> I would like to sum some specific columns in my matrix- for example, my
>> matrix looks like t
?WriteXLS
On Mon, Mar 29, 2010 at 6:29 AM, meghana kulkarni wrote:
> Hello all,
> This is Meghana.
>
> Well, I have some analysis output in 3 dimensional array form.
> for example:
>
> , , type1
>
> A B C D
> 1 2 3 4
> 1 2 3 4
>
> , , type2
>
> etc.
>
> This array is very big. an
On Sun, Mar 14, 2010 at 3:04 PM, Axel Urbiz wrote:
> Hi,
>
> I'm looking to move from Windows into a 64-bit Linux environment. Which is
> the best Linux Flavor to use within R? To install R on this environment, do
> I need to do any compiling?
>
> Thanks all!
>
> Axel.
>
Do NOT pick your Linux en
On Sun, Feb 21, 2010 at 2:43 PM, Axel Urbiz wrote:
> Dear R users,
>
> I know this issue came up in the list several times. I’m currently running
> R on 32-bit on Windows and due to memory limitation problems would like to
> move to a 64-bit environment. I’m exploring my options and would apprec
On Mon, Dec 21, 2009 at 4:42 AM, Duncan Murdoch wrote:
> I've just posted a demo made with the rgl package to Youtube, visible here:
> http://www.youtube.com/watch?v=prdZWQD7L5c
>
> For future reference, here are the steps I used:
>
> 1. Design a shape to be displayed, and then play with the ani
On Thu, Oct 29, 2009 at 9:58 AM, hadley wickham wrote:
>> Do you have write permission in C:\Program Files\R\R-2.9.2\library? It
>> could be that the installer just tried to create the QRMlib subdir, and
>> failed, and that's why it doesn't exist.
>
> One possible reason for failure is that your
On Thu, Oct 29, 2009 at 9:45 AM, Jim Burke wrote:
> I think your are using R 2.10.0.
>
No, I was using 2.9 and updating to 2.10 solved it for me.
- Mark
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read t
Thanks Duncan. 2.10 seems to install things correctly.
Cheers,
Mark
On Thu, Oct 29, 2009 at 6:52 AM, Mark Knecht wrote:
> Is 2.10 out? I'll give it a try.
>
> Thanks,
> Mark
>
> On Thu, Oct 29, 2009 at 6:45 AM, Duncan Murdoch wrote:
>> On 29/10/2009 9:43 AM, Mark
On Thu, Oct 29, 2009 at 6:39 AM, Duncan Murdoch wrote:
> On 29/10/2009 9:11 AM, Mark Knecht wrote:
>>
>> What is the problem here? I did an install package from the Rgui menu.
>> Windows Vista
>
> normalizePath uses the Windows functions GetFullPathName and GetLongP
Is 2.10 out? I'll give it a try.
Thanks,
Mark
On Thu, Oct 29, 2009 at 6:45 AM, Duncan Murdoch wrote:
> On 29/10/2009 9:43 AM, Mark Knecht wrote:
>>
>> On Thu, Oct 29, 2009 at 6:39 AM, Duncan Murdoch
>> wrote:
>>>
>>> On 29/10/2009 9:11 AM, Mark Knec
What is the problem here? I did an install package from the Rgui menu.
Windows Vista
trying URL
'http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.9/mvtnorm_0.9-8.zip'
Content type 'application/zip' length 236089 bytes (230 Kb)
opened URL
downloaded 230 Kb
trying URL
'http://cran.cnr.Berkele
Don't know about preferred but I believe the QuantMod package has a
command for getting them from Yahoo finance.
- Mark
On Wed, Oct 14, 2009 at 11:24 PM, keifer
wrote:
>
> What is preferred/better, get.hit.quote, priceIts, or other?
> --
> View this message in context:
> http://www.nabble.com/B
On Sun, Sep 20, 2009 at 1:55 PM, Gabor Grothendieck
wrote:
> On Sun, Sep 20, 2009 at 4:52 PM, Mark Knecht wrote:
>> Thanks Gabor,
>> I did try to use dput but it wasn't cooperating and wanted to send
>> FAR too much data.
>
> dput(head(x, 10))
>
As I s
ot;, "3/23/2009 6:39:00 AM",
> "3/23/2009 6:48:00 AM", "3/23/2009 7:00:00 AM"), class = "factor")),
> .Names = "ENTRY.DATE", class = "data.frame", row.names = c(NA,
> -7L))
>
> In the above we used dates and times classes fro
Hi,
Can strptime (or some other function) help me turn the following
column of a data.frame into two new columns, one as date and the other
as time, preserving the AM/PM value?
Thanks,
Mark
> B
ENTRY DATE
1 3/23/2009 6:30:00 AM
2 3/23/2009 6:30:00 AM
3 3/23/2009 6:39:00 AM
4
Hi,
Is there a way to pass the address of a data.frame through a set of
functions in R? I've got some code which is slowing down I think
because my data.frames are getting much larger - now approaching 1
million rows by 50-100 columns - and my functions - originally written
for much smaller data
re carefully ...
>
> Bert Gunter
> Genentech Nonclinical Statistics
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Mark Knecht
> Sent: Friday, September 18, 2009 11:55 AM
> To: jim holtman
> Cc: r-
n so that Lookback
> is the first one. The first parameter of the lapply is what is passed
> to the function as its first parameter. Now just have
>
> ResultList <- lapply(x, DoAvgCalcs, IndexData=IndexData,
> SampleSize=TestSamples, Iteration=TestIterations)
>
>
> On Fri
- Phil Spector
> Statistical Computing Facility
> Department of Statistics
> UC Berkeley
> spec...@stat
Hi,
I'm trying to get better at things like lapply but it still stumps
me. I have a function I've written, tested and debugged using
individual calls to the function, ala:
ResultList5 = DoAvgCalcs(IndexData, Lookback=5,
SampleSize=TestSamples , Iterations=TestIterations )
ResultList8 = DoAvgC
On Thu, Sep 17, 2009 at 9:11 AM, Subodh Acharya wrote:
> Hi everyone,I have a data daily data (x) for 10 years starting from
> 04-01-1995 to 03-31-2005.
> I was able to get the yearly sum for the ten years using
> aggregate(x, years, sum).
> But this gave me the yearly sum for 1995 (Apr- Dec); 199
as.data.frame(CutResults)$b ==
CutTable$b[x]
)
)
CutTable
On Sat, Sep 12, 2009 at 9:35 PM, David Winsemius wrote:
>
> On Sep 12, 2009, at 10:13 PM, Mark Knecht wrote:
>
>> Hi,
>> In the code below I
Hi,
In the code below I create a small data.frame (dat) and then cut it
into different groups using CutList. The lists in CutList allow to me
choose whatever columns I want from dat and allow me to cut it into
any number of groups by changing the lists. It seems to work OK but
when I'm done I ha
>
> plyr
> reshape (the package, not the base R function)
>
> There may well be others...
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of
Hi,
I need to do some binning which to date I've done just writing
subset commands. I'm now wondering if there are any good packages that
have some good pre-designed functions for multi-variable binning using
say 4 or 5 variables, sometimes binning on 3 or more levels of each
variable, and then
On Wed, Sep 9, 2009 at 11:09 AM, Achim Zeileis
wrote:
> On Wed, 9 Sep 2009, Mark Knecht wrote:
>
>> Sometimes it's the simple things...
>>
>> Why doesn't this lag X$x by 3 and place it in X$x1?
>
> It does.
>
>> (i.e. - Na's in the first 3 r
Sometimes it's the simple things...
Why doesn't this lag X$x by 3 and place it in X$x1? (i.e. - Na's in
the first 3 rows and then values showing up...)
The help page does talk about time series. If lag doesn't work on
data.frame columns then what would be the right function to use to lag
by a var
?order
Possibly something like
A = A[order(A$Field1, A$Field2),]
On Mon, Sep 7, 2009 at 3:22 AM, OLIVIER REGNIER-COUDERT
(0509785) wrote:
> Hi,
>
> Would anybody know how to sort an array in order?
>
> I basically store the results from an analysis in an array and would like to
> organise it a
On Mon, Sep 7, 2009 at 1:22 PM, Noah Silverman wrote:
>
> The data is listed in our CSV file from newest to oldest. We are supposed
> to calculated a valued that is an "average" of some items. We loop through
> some queries to our database and increment two variables - $total_found and
> $total_
On Mon, Sep 7, 2009 at 1:08 PM, Duncan Murdoch wrote:
> On 07/09/2009 10:34 AM, sebed1110-div...@yahoo.fr wrote:
>>
>> Dear all,
>>
>> One day when I tried to load an existing workspace (when opening R or by
>> load()), R crashed without any error notification.
>> The day before I had worked and s
On Mon, Sep 7, 2009 at 12:33 PM, Noah Silverman wrote:
> So, this is really a philosophical question. Do we:
> 1) Shrug and say, "who cares", the SVM figured it out and likes that bad
> data item for some inexplicable reason
> 2) Tear into the math and try to figure out WHY the SVM is predi
On Wed, Sep 2, 2009 at 1:12 PM, Patrick
Connolly wrote:
> On Wed, 02-Sep-2009 at 07:02AM -0700, Mark Knecht wrote:
>
> |> On Tue, Sep 1, 2009 at 9:06 AM, Mark Knecht wrote:
> |> > Hi,
> |> > I'm not understanding how the width & height parameters are
>
On Tue, Sep 1, 2009 at 9:06 AM, Mark Knecht wrote:
> Hi,
> I'm not understanding how the width & height parameters are
> supposed to work. When I execute the following 4 commands:
>
> X11()
> X11(width=20, height=20)
> X11(width=20, height=10)
> X11(width=40, h
Hi,
I'm not understanding how the width & height parameters are
supposed to work. When I execute the following 4 commands:
X11()
X11(width=20, height=20)
X11(width=20, height=10)
X11(width=40, height=40)
I get the following *approximate* physical sizes on my screen:
6" x 6"
8" x 8"
12" x 6"
8
On Mon, Aug 31, 2009 at 6:09 AM, Bunny,
lautloscrew.com wrote:
> Dear all,
>
> Finally, I made it, my RPostgreSQL works. After working through some
> tutorials, i was able to plot, get and replace several timeseries.
>
>
> Still I miss the opportunity (syntax) to add data. Most tutorials are
> abou
On Mon, Aug 31, 2009 at 10:00 AM, Duncan Murdoch wrote:
> On 8/31/2009 11:50 AM, Mark Knecht wrote:
>>
>> On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote:
>>
>>>
>>> The authors borrowed so much else from C, the semicolon would have been
>>>
On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote:
> The authors borrowed so much else from C, the semicolon would have been
> good too.
I know real R coders will chuckle but I've taken to using semicolons
just because it looks better to my eyes and let's my brain know where
I think lines en
You can fix up the column names.
>
> On Fri, Aug 28, 2009 at 12:37 PM, Mark Knecht wrote:
>> Hi,
>> I wonder if someone can suggest how to create a new data.frame Y
>> from X where X$PL_Pos is summed by each unique X$MyDate. Y should end
>> up with two (or more) columns
Hi,
I wonder if someone can suggest how to create a new data.frame Y
from X where X$PL_Pos is summed by each unique X$MyDate. Y should end
up with two (or more) columns Y$MyDate and Y$PL_Sum with its value
being the cumsum of all the values in X for that date. - a 'daily
cumsum'.
Thanks,
Mark
Hi,
What commands would I look at to compare row-by-row two data frames
of the same size and print out any differences between the two?
Thanks,
Mark
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
On Mon, Aug 17, 2009 at 2:25 PM, Mark Knecht wrote:
> Hi,
> What commands would I look at to compare row-by-row two data frames
> of the same size and print out any differences between the two?
>
> Thanks,
> Mark
>
So I got an answer using the following code:
XXX
On Mon, Jul 27, 2009 at 11:46 PM, Meenu Sahi wrote:
> Dear Users
> I have a dataframe called mydata4 of the following order with the first
> column as a date and the rest of the columns are numeric with rate.
> Column 1 Rate1 : Rate 20
> (PxMid)
> 01/01/2003
> 07/01/2001
>
>
> --
On Mon, Jul 27, 2009 at 12:21 PM, Bert Gunter wrote:
> Well, all of this can be done quite nicely with lattice graphics: ?xyplot
> (See, e.g. the "skip" argument)
>
>
> 1) Is there some generic way to call plot and have it plot, but it
> plots nothing so I don't see anything at all in position 12?
Hi,
Say that I've got a function that has the following code in it:
X11(width=10, height=10)
layout(rbind(c(1,1,1,2,2,2), c(3,4,5,6,7,8), c(9,10,11,12,13,14)),
height=c(3,1,1))
layout.show(14)
Sometimes when I call this function it will turn out by design that
one or more of the data sets that
2, 13, 14), 4, byrow = TRUE)
> layout(m)
> for(i in 1:14) plot(i)
>
>
> On Sat, Jul 25, 2009 at 8:34 PM, Mark Knecht wrote:
>> Hi,
>> I made the attached picture by mocking up three separate plots sort
>> of like how I'd like to make a new plot. Hopefully it w
On Fri, Jul 24, 2009 at 10:22 AM, Duncan Murdoch wrote:
> On 7/24/2009 12:25 PM, Mark Knecht wrote:
>>
>> Hi,
>> I have 15 or 20 functions I've written to convert the sort of data
>> I'm working with. They are currently in their own R file which I load
gt; See ?source and ?Startup
>
> Erik
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Mark Knecht
> Sent: Friday, July 24, 2009 11:25 AM
> To: r-help
> Subject: [R] Include files?
>
> Hi,
>
Hi,
I have 15 or 20 functions I've written to convert the sort of data
I'm working with. They are currently in their own R file which I load
by hand in Rgui before loading and running my main programs.
Is there any way to have this file included in my R program like
#include might in C?
On Thu, Jul 23, 2009 at 11:04 AM, Mark Knecht wrote:
> Hi,
> I'm having trouble within my function CalcPos to get it to call
> CalcHorz with values from each row. I *think* it's calling CalcHorz
> with the final values of the inputs and not the values from each row.
> H
Hi,
I'm having trouble within my function CalcPos to get it to call
CalcHorz with values from each row. I *think* it's calling CalcHorz
with the final values of the inputs and not the values from each row.
How can I do this properly in R?
The values aa,bb,cc,dd are inputs. CalcPos first calc
Sort of like this?
> A<-c(3,5,7,18,43,85,91,98,100,130,230,487) #data values
> B<-c(10,5,5,10,8,11,2,7,3,11,10) #random numbers (sample)
>
> C = A[B]
> C
[1] 130 43 43 130 98 230 5 91 7 230 130
On Wed, Jul 22, 2009 at 2:08 PM, Erik Iverson wrote:
> A[B]
>
> -Original Message-
>
Thanks Gabor and EVERYONE else who answered so quickly.
On Wed, Jul 22, 2009 at 7:50 AM, Gabor
Grothendieck wrote:
> Try
> if (FALSE) { ... }
>
> On Wed, Jul 22, 2009 at 10:30 AM, Mark Knecht wrote:
>> Hi,
>> I looked in the language definition and was surprised. Is
Hi,
I looked in the language definition and was surprised. Is there
really no multi-line/block comment defined in R?
I wanted to comment out 20 lines that I'm moving to a function but
didn't want to delete them. Is there no defined way to get around
using a # on each of the 20 lines?
Thanks
That's much better. thanks!
I was sure I'd looked at that but then for some reason stuck with just if.
Again, as a total a newb I appreciate the help.
- Mark
On Sun, Jul 19, 2009 at 2:26 PM, Duncan Murdoch wrote:
> On 19/07/2009 5:17 PM, Mark Knecht wrote:
>>
>> Hi
Hi,
In my data.frame I wanted to essentially write
If(Test) c*d else c+d
but that doesn't work. I found I could do it mathematically, but it
seems forced and won't scale well for nested logic. I have two
examples below writing columns e & f, but I don't think the code is
self-documenting as i
lpful. I appreciate them.
Thanks,
Mark
On Sat, Jul 18, 2009 at 5:46 PM, Gabor
Grothendieck wrote:
> Regarding the Final column the last line should have been
>
> out$Final <- with(out, Initial + Offset)
>
> On Sat, Jul 18, 2009 at 8:33 PM, Mark Knecht wrote:
>> Very int
r
Grothendieck wrote:
> I am not entirely clear on what you want to do but
> if you simply want a cumulative sum use cumsum:
>
> cumsum(rep(100, 5)) + 1
>
> or to do cumsum using Reduce and + try:
>
> Reduce("+", rep(100, 5), init = 10000, acc = TRUE)
>
&g
vent= 1:10, Initial=0,
> Offset=round(100*rnorm(10), 0), Final=0 ))
> out <- transform(DF, Initial = 1 + c(0, head(cumsum(DF$Offset), -1)))
> out$Final <- with(DF, Initial + Offset)
>
>
> On Sat, Jul 18, 2009 at 6:59 PM, Mark Knecht wrote:
>> Hi,
>> No, it
nal = 0))
MyDF$Offset = round(100*rnorm(10), 0)
MyDF$Initial[1] = InitialCash
MyDF
AddPL = function(x) Reduce("+", x[2:3])
MyDF$Final = AddPL(MyDF)
MyDF
On Fri, Jul 17, 2009 at 9:02 PM, Gabor
Grothendieck wrote:
> See ?Reduce
>
> On Fri, Jul 17, 2009 at 11:10 PM, Mark Knecht w
Hi,
Is it possible to make something like the following code actually
work? My goal in this example would be that I'd see results like
1 1 10100
2 10100 10200
3 10200 10300
4 10300 10400
In real usage the function would obviously do a lot more work, but the
question I canno
On Wed, Jul 15, 2009 at 3:37 AM, Hatsch wrote:
>
> Hi all,
>
> I have a problem with computing a new variable as an aggregated score of
> other variables.
>
> Say, I have 10 variables for 1,000 observations (people). Every variable may
> have values between 0 and 8. What I would like to do is compu
Hi,
First up, thanks again for all the help I'm getting on this list.
I'm making great headway in analyzing my experimental data on an
experiment by experiment basis. No way I could have done this in the
time I've done it without your help.
This email is partially a question about R but is a
On Mon, Jul 13, 2009 at 12:08 PM, David Winsemius wrote:
> In R a function only returns the last evaluation, so you need to wrap up all
> of the local results into a list at the end of the function.
>
>
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
How important it is to
Thanks Jim.
How does one search the help system for info on simple logic like this?
On Mon, Jul 13, 2009 at 6:59 AM, jim holtman wrote:
> 1) X <- subset(A, (t < 1000) | (t > 1200))
> 2) X <- subset(A, (t > 1000) & (t < 1200))
>
> On Mon, Jul 13, 2009 at
How would I write the two selections each in a single subset command?
1) Two non-overlapping time ranges I want to collect together - before
10AM and after noon. Should be an OR function:
X = subset(A, t<1000) + subset(A, t>1200)
2) One range between two defined times like after 10AM and before
On Sun, Jul 12, 2009 at 1:05 PM, David Winsemius wrote:
>
> On Jul 12, 2009, at 3:35 PM, David Winsemius wrote:
>
>>
>> On Jul 12, 2009, at 2:53 PM, Mark Knecht wrote:
>>
>>>
>>> As a test I tried to print down to the string "(all)" and th
On Sun, Jul 12, 2009 at 11:53 AM, Mark Knecht wrote:
So this gets better in terms of error messages but still has problems
for(n in SystemResults$EnTime) {
if ( SystemResults$EnTime[n] == "(all)") break else X =
SystemResults$EnTime[n]
print(X)
}
> for(n in
Hi,
Newbie alert on for loops...
I have a bunch of data.frames built using rbind that have repeated
values in the EnTime column. I want to read the value in the EnTime
column and use it as an input to a function, but only down to the
first occurrence of the string "(all)" where I want to bre
Thanks. Will do.
Cheers,
Mark
On Sat, Jul 11, 2009 at 12:49 PM, Gabor
Grothendieck wrote:
> Try:
>
> format(d, "%a") or format(d, "%A") or as.POSIXlt(d)$wday
>
> There is also day.of.week in chron.
>
> On Sat, Jul 11, 2009 at 3:42 PM, Mark Knecht wrot
On Sat, Jul 11, 2009 at 12:05 PM, Gabor
Grothendieck wrote:
> You want %Y, not %y.
>
> You might also want to look at the zoo package:
>
> library(zoo)
> z <- read.zoo("Date1.txt", header = TRUE, sep = ",", format = "%m/%d/%Y")
>
> or using chron:
>
> library(zoo)
> library(chron)
> z <- read.zoo("
On Sat, Jul 11, 2009 at 10:20 AM, Gabor
Grothendieck wrote:
> No attachment appeared. I don't think the list allows zip files
> as attachments. Try plain text.
>
>
> On Sat, Jul 11, 2009 at 1:10 PM, Mark Knecht wrote:
>> Hi all,
>> I'm having a little bit
Hi all,
I'm having a little bit of trouble with some date conversions and
am hoping someone can help me out. Thanks in advance.
OK, I have two sources of data that provide date info in a csv file
differently. I've attached a small zipped file with two text files
that illustrate both. (Is it
> 3 1 1040115 921 1040115 1300 64
> 4 1 1040120 1134 1040120 1300 124
> 5 1 1040121 923 1040121 1300 84
> 6 1 1040205 1043 1040205 1300 -196
>
> mydf.sort<-mydf[order(mydf$EnDate),]
> mydf.sort
>
> Cheers
>
> mil
I have a data.frame that was built from a number of smaller
data.frames with rbind. Each ssmaller data.frame bound together runs
over the same date ranges. The format of the whole thing looks like
this:
Trade PosType EnDate EnTime ExDate ExTime PL_Pos
11 1 1040107915 10401
On Fri, Jul 10, 2009 at 8:38 AM, Mark Knecht wrote:
> What I need/want is that instead of displaying '1' or '2' - the
> number of events that fit these EnTime/ExTime values - I need to have
> the sum of the 'value' column from ReShape.Y.
>
> Is
Hi,
I've tried to capture the basics of this problem I'm having. Been
working on this for a couple of days and just cannot get past it. As a
test of this list software I've attached is a small text file zipped
up. I hope it gets through but if it doesn't I'll post the actual text
which is only 2
On Fri, Jul 10, 2009 at 2:43 AM, Casimir de
Rham wrote:
> Dear colleagues,
>
> I am Professor of Operations Management at IUM, Intl. University of Monaco.
>
> The language at IUM is English and I want to test R.
>
> But I'm unable to get an English version (only useless French).
>
> Please help me.
On Thu, Jul 9, 2009 at 6:05 PM, jim holtman wrote:
> If you want the value printed in the script, then use the 'print' function:
>
> print(MyNames)
>
> There is an implicit 'print' when you type an object's name at the
> command line, but with you have it within a script, you have to
> explicitly p
> More details on what you mean by it does not work as expected.
>
> On Thu, Jul 9, 2009 at 2:24 PM, Mark Knecht wrote:
>> When I use the scan function in the Rgui console it works as expected.
>> However it seems that when I put the same command in a script file it
>>
When I use the scan function in the Rgui console it works as expected.
However it seems that when I put the same command in a script file it
doesn't wait for input.
Is there an option to scan to make it wait for input when used in a
script? Or is there possibly a different function that will do in
On Wed, Jul 8, 2009 at 5:55 PM, Mark Knecht wrote:
> On Wed, Jul 8, 2009 at 5:34 PM, Jason Rupert wrote:
>>
>> Maybe there is a great website out there or white paper that discusses this
>> but again my Google skills (or lack there of) let me down.
>>
>> I w
On Wed, Jul 8, 2009 at 5:34 PM, Jason Rupert wrote:
>
> Maybe there is a great website out there or white paper that discusses this
> but again my Google skills (or lack there of) let me down.
>
> I would like to know the best way to export several doubles from a function,
> where the doubles are
On Wed, Jul 8, 2009 at 12:58 PM, wrote:
>
> That you have non-unique rows in your data (as identified by the identifying
> variables).
>
Humm...OK - so I cast it with PL_Pos which has (in this data subset) a
unique value for each experiment in this set. there are 25 experiments
and there are 25
Hi,
What is cast telling me when it says the following?
Aggregation requires fun.aggregate: length used as default
What is 'length'?
I've taken a small subset of data and wondered what EnTime vs
ExTime might look like. cast is kind enough to give me a table but I
don't understand the value
On Wed, Jul 8, 2009 at 10:51 AM, Michael A. Miller wrote:
>> Mark wrote:
>
> > Currently my data is one experiment per row, but that's
> > wasting space as most experiments only take 20% of the row
> > and 80% of the row is filled with 0's. I might want to make
> > the array more na
On Wed, Jul 8, 2009 at 8:41 AM,
mister_bluesman wrote:
>
> Hi,
>
> I am writing a script that will address columns using syntax like:
>
> data_set[,1]
>
> to extract the data from the first column of my data set, for example. This
> code will be placed in a loop (where the column reference will be
On Wed, Jul 8, 2009 at 8:54 AM, Mark Na wrote:
> Hi R-helpers,
>
> I have a dataframe (called data) with trees in rows (n=100) and insect
> species (n=10) in columns. My tree IDs are in a column called TREE and each
> species has a column labeled SPEC1, SPEC2, SPEC3, etc...
>
> I wish to randomize
On Tue, Jul 7, 2009 at 4:22 PM, jim holtman wrote:
> Does something like this work for you; it uses the reshape package:
>
>> X<-data.frame(A=1:10, B=0, C=1, Ob1=1:10, Ob2=2:11, Ob3=3:12,
> + Ob4=4:13, Ob5=3:12, Ob6=2:11)
>> Y<-data.frame(A=1:20, B=0, C=1, D=5, Ob1=1:10, Ob2=2:11, Ob3=3:12,
> + Ob
On Tue, Jul 7, 2009 at 3:15 PM, Duncan Murdoch wrote:
> On 07/07/2009 5:59 PM, Hans W Borchers wrote:
>>
>> Dear List:
>>
>> An e-mail mentioning the r-project.org address and sent to a friend at a
>> German
>> university was considered spam by the local spam filter.
>>
>> Its reasoning: the URL "r
Here is a couple of very simple data.frames:
X<-data.frame(A=1:10, B=0, C=1, Ob1=1:10, Ob2=2:11, Ob3=3:12,
Ob4=4:13, Ob5=3:12, Ob6=2:11)
Y<-data.frame(A=1:20, B=0, C=1, D=5, Ob1=1:10, Ob2=2:11, Ob3=3:12,
Ob4=4:13, Ob5=3:12, Ob6=2:11, Ob7=5:9)
Z<-data.frame(A=1:30, B=0, C=1, D=6, E=1:2, Ob1=1:10, O
On Tue, Jul 7, 2009 at 12:17 PM, Henrique Dallazuanna wrote:
> Try this:
>
> MyResults.GroupA <- subset(MyResults, PosType == 1)
>
>
Darn those small screen fonts. I never noticed that! Every example I'm
looking at jsut looks like a single '=' until you pointed it out!
Thanks to everyone who res
1 - 100 of 162 matches
Mail list logo