Re: [R] How to store data frames into pdf file and csv file.

2013-03-21 Thread jim holtman
data frame into a pdf file? > > If I have another data frame, such as > > > > st = data.frame(est.aic, est.aic) > > > st > > est.aic est.aic.1 > > 1 -1654.986 -1654.986 > > How could I save it to a .csv file? > > Thanks very much! > > Cheers,

Re: [R] How to store data frames into pdf file and csv file.

2013-03-21 Thread jim holtman
amily='mono') > > dev.off() > > ** ** > > I believe this time we try to use pdf to catch the graph via text, are we? > > > ** ** > > Thanks, > > ** ** > > Rebecca > > ** ** > > *From:* jim holtm

Re: [R] How to store data frames into pdf file and csv file.

2013-03-21 Thread jim holtman
Here is one way of doing it: > x est.coef std.errt.stat intercept 0.0011625517 0.0002671437 4.351784 aa-0.0813727439 0.0163727943 -4.969997 dummy1-0.0002534873 0.0001204000 -2.105376 dummy2-0.0007784864 0.0001437537 -5.415417 bb-0.0002856727 0.0001

Re: [R] try/tryCatch

2013-03-19 Thread jim holtman
ot;, "tp", "fn", "fp", "fn", "detect", "d0", > "outcome") > lm1<-lmer(outcome~0+d1+d0+(0+d1+d0 | persons), family=binomial, > data=tmp1, nAGQ=3) > a[ii,1]=lm1@fixef[1] > a[ii,2]=lm1@fixef[2] > a[ii,3]=vcov(l

Re: [R] try/tryCatch

2013-03-18 Thread jim holtman
a[ii,1]=lm1@fixef[1] > a[ii,2]=lm1@fixef[2] > a[ii,3]=vcov(lm1)[1,2]/prod(sqrt(diag(vcov(lm1 > a[ii,4:5]=sqrt(diag(vcov(lm1))) > } > return(a) > } > > > Any guidance would be greatly appreciated... > > thanks! > Lisa > > -- > Lisa

Re: [R] How to list the all products' information of the latest month?

2013-03-15 Thread jim holtman
> > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducib

Re: [R] merge function to combine two tables

2013-03-14 Thread jim holtman
y much! > Michael > > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented

Re: [R] Assign the number to each group of multiple rows

2013-03-13 Thread jim holtman
meter "trip.id")... > I > would appreciate any help. > > > > Regards, > > > > Lilia > > [[alternative HTML version deleted]] > > > __ > R-help@r-pro

Re: [R] Assign the number to each group of multiple rows

2013-03-13 Thread jim holtman
2 > > 662 3 > > 771 1 > > 881 2 > > 992 1 > > 10 10 2 2 > > > > but I can’t assign the numbers to the groups (the parameter "trip.id")... > I > would appreciate any help. > > > > Regards, > > > > Lilia > >

Re: [R] extract values

2013-03-12 Thread jim holtman
;, "1912", "1913", "1914", > "1915", "1916", "1917", "1918", "1919", "1920", "1921", "1922", > "1923", "1924", "1925", "1926",

Re: [R] Allocate virtual memory on hard drive

2013-03-11 Thread jim holtman
d the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to

Re: [R] Writing to Spreadsheet issues

2013-03-11 Thread Jim Holtman
the error message means (most likely) that srOne[row, "timestamp"] has NA as a value. Put options(error = recover) in your script so that you get control at the point of the error and can then use 'browser' (?browser) to examine the values. It is a problem with your data and probably the resu

Re: [R] How to transpose it in a fast way?

2013-03-09 Thread jim holtman
gt; Center for Statistics, Copenhagen Business School >>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark >>> Phone: (+45)38153501 >>> Email: pd....@cbs.dk Priv: pda...@gmail.com >>> >>> __** >>> R-help@

Re: [R] Copying a dataframe

2013-03-07 Thread jim holtman
ing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Data Munger Guru What is the probl

Re: [R] Issue when reading a table into R

2013-03-06 Thread jim holtman
p://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- 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. [[alternative HTML version de

Re: [R] Error message

2013-03-06 Thread Jim Holtman
most likely either 'lower' or 'upper' is NA. put options(error = recover) in your script to stop on the error and examine the value. you need to learn "debugging 101" to help yourself out. Sent from my iPad On Mar 5, 2013, at 16:00, li li wrote: > Dear all, > I got an error message when ru

Re: [R] Help searching a matrix for only certain records

2013-03-03 Thread jim holtman
stem elapsed 0.050.000.05 > system.time(x3 <- testdata[match(testdata[, "REC.TYPE"] + , c("SAO ", "FL-15") + , nomatch = 0) != 0 + ,, drop = FALSE] + ) us

Re: [R] Help searching a matrix for only certain records

2013-03-03 Thread Jim Holtman
ble conditions... > >> testdata <- testdata[testdata$REC.TYPE == "SAO",,drop=FALSE] > > -Matt > > > > > --- On Sun, 3/3/13, jim holtman wrote: > > From: jim holtman > Subject: Re: [R] Help searching a matrix for only certain records > To

Re: [R] Help searching a matrix for only certain records

2013-03-03 Thread jim holtman
mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell

Re: [R] cut a vector in equal parts

2013-02-26 Thread jim holtman
://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are tryin

Re: [R] data.frame and import to xlsx

2013-02-24 Thread jim holtman
om the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self

Re: [R] HELP!!!

2013-02-22 Thread jim holtman
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that yo

Re: [R] error: Error in if (is.na(f0$objective)) { : argument is of length zero

2013-02-18 Thread jim holtman
) > print(of) > > Regards, > Aya > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read t

Re: [R] How to findout the name of a dataframe

2013-02-17 Thread jim holtman
> --- > Frans Marcelissen > fransiepansiekever...@gmail.com > > [[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

Re: [R] sprintf in system command

2013-02-15 Thread jim holtman
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman D

Re: [R] Addressing Columns in a Data Frame

2013-02-09 Thread Jim Holtman
Try DF [[mn [2]]] Sent from my Verizon Wireless 4G LTE Smartphone Original message From: Lorenzo Isella Date: 02/09/2013 8:40 AM (GMT-05:00) To: r-h...@stat.math.ethz.ch Subject: [R] Addressing Columns in a Data Frame Dear All, Probably a one liner, but I am banging m

Re: [R] why "object 'x' not found"?

2013-02-07 Thread jim holtman
message "Object 'd$d1' not found". > But why, it's there? > > Thanks a lot. > Winfried > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Combining data from different saved files with same object names into one data frame

2013-02-04 Thread jim holtman
t; [[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-project.org/posting-guide.html > and provi

Re: [R] Rprof causing R to crash

2013-02-04 Thread jim holtman
-tp4652846p4657482.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posti

Re: [R] Compare each element of a list to a vector

2013-02-03 Thread jim holtman
[[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-project.org/posting-guide.html > and provide commented, mini

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

2013-02-01 Thread jim holtman
il: simone.gabbriell...@digitalbrains.it > home: www.digitalbrains.it > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-pro

Re: [R] Filter according to the latest data

2013-02-01 Thread jim holtman
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Te

Re: [R] how to extract values from a raster according to Lat and long of the values?

2013-01-27 Thread jim holtman
t.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http:/

Re: [R] How to read a file with two data sets in text format

2013-01-21 Thread jim holtman
he time series graph. > > Another thing I need to do is create another sub data set where both the > series have common data. One data might have more intervals than another. > After I find two data sets of same interval then I want to plot a > correlation graph.

Re: [R] sort matrix based on a specific order

2013-01-10 Thread jim holtman
want "mat" to be sorted by the sequence in "ind": > > [,1] [,2] > [1,] "y" "c" > [2,] "x" "b" > [3,] "z" "d" > [4,] "w" "a" > > Is there any simple function that can do this

Re: [R] sort matrix based on a specific order

2013-01-10 Thread jim holtman
nction that can do this? > > Thanks > > John > > [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting g

Re: [R] Precision of values > 53 bits

2013-01-10 Thread jim holtman
_ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Data Munger Guru Wh

Re: [R] writing to .xlsx

2013-01-09 Thread jim holtman
king for recommendations. > > Best > > Ben Caldwell > > [[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-project.org/posti

Re: [R] how to count "A", "C", "T", "G" in each row in a big data.frame?

2013-01-09 Thread jim holtman
t;X2500", "X2598", "X2610", "X2300", "X2507", "X2530", "X2327", "X2389", "X2408", "X2463", "X2420", "X2563", "X2462", "X2292", "X2405", "X2543", "X2557", "X2583", "X23

Re: [R] Refer to previous row

2013-01-07 Thread jim holtman
anks! > Paolo > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide comment

Re: [R] Log analysis with R

2013-01-05 Thread Jim Holtman
I needn't go to a sawmill to process all these logs :( > > > On Sat, Jan 5, 2013 at 1:47 AM, jim holtman wrote: > those were definitely different 'logs' than I was thinking about. > > On Fri, Jan 4, 2013 at 1:50 PM, peter dalgaard wrote: > > > > On

Re: [R] Log analysis with R

2013-01-04 Thread jim holtman
those were definitely different 'logs' than I was thinking about. On Fri, Jan 4, 2013 at 1:50 PM, peter dalgaard wrote: > > On Jan 4, 2013, at 18:41 , jim holtman wrote: > >> what type of logs are you trying to process? > > Oregon pine? > >> what is

Re: [R] Log analysis with R

2013-01-04 Thread jim holtman
gt; https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve?

Re: [R] non-consing count

2013-01-04 Thread jim holtman
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Gu

Re: [R] table of list objects

2013-01-03 Thread jim holtman
11 > > > thanks for any help > > > > > > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/table-of-list-objects-tp4654601.html > Sent from the R help mailing list archive at Nabble.com. > > __

Re: [R] Read many cvs files

2013-01-02 Thread jim holtman
for those > three sheets? > > Thanks, > > Rebecca > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of jim holtman > Sent: Wednesday, January 02, 2013 11:58 AM > To: Dominic Roye > Cc: R hel

Re: [R] Read many cvs files

2013-01-02 Thread jim holtman
ot;" "" "" "" ... > $ X.16 : chr "" "" "" "" ... > $ X.17 : chr "" "" "" "" ... > $ X.18

Re: [R] Question on creating Date variable

2013-01-01 Thread jim holtman
; "12.01 PM" "11.14 AM" NA >> [7] "01.25 PM" "01.35 PM" "02.01 PM" "01.14 PM" "02.05 PM" NA >> [13] NA "03.51 PM" NA >> >> I suspect that the NA when minutes are ".00" comes fro

Re: [R] (no subject) low memory in rjava

2012-12-31 Thread jim holtman
you >> are trying to do? >> >> -steve >> >> -- >> Steve Lianoglou >> Graduate Student: Computational Systems Biology >> | Memorial Sloan-Kettering Cancer Center >> | Weill Medical College of Cornell University >> Contact Info: http://cbio.mskcc.o

Re: [R] how to get a value from a list (using paste function)?

2012-12-27 Thread jim holtman
n deleted]] >>>> >>>> __** >>>> R-help@r-project.org mailing list >>>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> >>>> PLEASE do read the posting gu

Re: [R] Working with date

2012-12-26 Thread Jim Holtman
what happens with 25/12/2012? Sent from my iPad On Dec 26, 2012, at 20:22, arun wrote: > Hi, > gsub("^\\d(.*/)\\d(.*/.*)","\\1\\2",format(asd,"%d/%m/%Y")) > #[1] "3/1/2012" > A.K. > > > > > - Original Message -

Re: [R] sqldf merging with subset in specific range

2012-12-26 Thread jim holtman
; > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.

Re: [R] Working with date

2012-12-26 Thread jim holtman
r I want "3/1/2012" not "03/01/2012" > > Any idea ? > > Thanks > > > - Original Message - > From: jim holtman > To: Ron Michael > Cc: "r-help@r-project.org" > Sent: Thursday, 27 December 2012 1:01 AM > Subject: Re: [R] Working wit

Re: [R] Working with date

2012-12-26 Thread jim holtman
forgot you were asking for mdy format > # interchange day and month > format(asd, format = '%d/%m/%Y') [1] "03/01/2012" > On Wed, Dec 26, 2012 at 2:14 PM, jim holtman wrote: > try this: > >> asd <- as.Date("2012-01-03") >> asd > [1

Re: [R] Working with date

2012-12-26 Thread jim holtman
try this: > asd <- as.Date("2012-01-03") > asd [1] "2012-01-03" > format(asd, format = '%m/%d/%Y') [1] "01/03/2012" > On Wed, Dec 26, 2012 at 1:31 PM, Ron Michael wrote: > asd <- as.Date("2012-01-03") -- Jim Holtman D

Re: [R] aggregate / collapse big data frame efficiently

2012-12-25 Thread jim holtman
gregate routine more > efficient? > Or is there a different approach that would work faster? > > > Thanks for any suggestions! > > __ > R-help@r-project.org mailing list > https://sta

Re: [R] Difficulty importing data from PARI/GP

2012-12-21 Thread jim holtman
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data M

Re: [R] Memory filling up while looping

2012-12-21 Thread jim holtman
<- sapply(getNodeSet(xml,"//body"), xmlValue) > id <- sapply(getNodeSet(xml,"//nr"), xmlValue) > dummy <- cbind(id,result) > xmlCatcher <- rbind(xmlCatcher,dummy) > } > save(xmlCatcher,file=past

Re: [R] Can data.frame be saved as image?

2012-12-21 Thread jim holtman
ght=480) > > . > > .. > > dev.off() > > Please advise. > > Regards > > Katherine > > > [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list >

Re: [R] Memory filling up while looping

2012-12-21 Thread jim holtman
10-26) > Platform: x86_64-w64-mingw32/x64 (64-bit) > Win7 Enterprise, 8 GB RAM > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/p

Re: [R] permutation of vectors (1 or 0)

2012-12-21 Thread jim holtman
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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. ___

Re: [R] Copy data from Excel

2012-12-19 Thread jim holtman
so pasting data into Clipboard from R in the > format of '(111,000)'? > > Thanks for your input > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] How to convert xts data into list

2012-12-19 Thread Jim Holtman
eply. > > But still it doesn't work. > > It seems that it's because of date time indexes. > > > > > plot(zc$Close) > > parse.format(format[1]) : unrecognized format %b %d %H:%M > > > > SK Park > > > > -Original Mes

Re: [R] How to convert xts data into list

2012-12-19 Thread Jim Holtman
just try plot(zc$Close) Sent from my iPad On Dec 19, 2012, at 2:45, 박상규 wrote: > Hello, > > > How can I convert Close colume of the below xts time series data into a list > of Close values ? > I'd like to plot Close values as a list. > > > > > head(zc) > Close > (10/

Re: [R] Splitting up of a dataframe according to the type of variables

2012-12-17 Thread Jim Holtman
most likely the 'split' function, but exactly how would depend on the data which you did not provide. Sent from my iPad On Dec 17, 2012, at 5:02, "Martin Spindler" wrote: > Dear R users, > > I have a dataframe which consists of variables of type numeric and factor. > What is the easiest way t

Re: [R] How to create multiple country's data into multiple sheets of one excel

2012-12-13 Thread jim holtman
-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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.

Re: [R] remove NA in df results in NA, NA.1 ... rows

2012-12-13 Thread jim holtman
NA > > > > It seems there are still NA's in my data frame. How can I get rid of them? > What is the meaning of the rows numbered NA, NA.1 and so on? > > > > Thanks for any hints. > > > > Best regards > > > >

Re: [R] debug on lapply

2012-12-11 Thread jim holtman
2]] > [1] 3 > > [[3]] > [1] 4 > > Can anyone help me, please? > Kind regards! > > [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Retain last grouping after a strsplit()

2012-12-11 Thread jim holtman
try this: > x [1] "OYS-PIA2-FL-1" "OYS-PIA2-LA-1" "OYS-PI-LA-BB-1" "OYS-PIA2-LA-10" > sub("^.*?([0-9]+)$", "\\1", x) [1] "1" "1" "1" "10" > On Tue, Dec 11, 2012 at 12:46 PM, St

Re: [R] how to assign factor level into each value

2012-12-05 Thread jim holtman
47.41 "31-50" > 5 CN111.67"101-150" > 6 CN 50.57 "51-75" > > > How can I do this? > > Thanks. > > Tammy > > > > [[alternative HTML version deleted]] >

Re: [R] Import multiple data frames and combine them using "cbind"

2012-12-04 Thread jim holtman
ersion 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-project.org/posting-guide.html > and provide commented, minimal, self-contained, re

Re: [R] xlsx file read in R

2012-12-03 Thread jim holtman
oject.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solv

Re: [R] Line numbers with errors and warnings?

2012-11-30 Thread jim holtman
guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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. _

Re: [R] Read in alphanumeric column without decimals

2012-11-29 Thread jim holtman
rID values? > > I'm using 64-bit R v. 2.15.1 on a Windows 7 machine. > > Thank you - > > Steven H. Ranney > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the p

Re: [R] Help in Bissection algorithm

2012-11-29 Thread jim holtman
z.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to

Re: [R] Fast Normalize by Group

2012-11-29 Thread jim holtman
> __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -

Re: [R] Speeding reading of large file

2012-11-28 Thread jim holtman
7E+00 5.E+03 2.E+00 0.E+00 >> >> 8.3633E+00 0.E+00 1.E+00 0.E+00 8.7011E+00 >> 0.E+00 >> >> 0.0000E+00", >> >> " 2.0010E+03 2.4167E+00 5.E+03 2.E+00 0.E+00 >> >> 1.0092E+01

Re: [R] what's this character?

2012-11-28 Thread jim holtman
t;N.C. " ## NOTE: this last one can't be reproduced after >> copy-n-paste > [1] FALSE > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-

Re: [R] hhmm time format, strptime and %k

2012-11-28 Thread jim holtman
s > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code

Re: [R] data frame: adding columns from data and file title

2012-11-28 Thread jim holtman
e-tp4651099.html > Sent from the R help mailing list archive at Nabble.com. > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the postin

Re: [R] write out list of lists with names

2012-11-28 Thread jim holtman
; Can anyone advise? > > Thanks > > Iain > > > R version 2.15.1 (2012-06-22) > Platform: x86_64-pc-linux-gnu (64-bit) > > locale: > [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_GB.UTF-8LC_COLLATE=en_GB.UTF-8 >

Re: [R] choose folder interactively

2012-11-28 Thread jim holtman
ny idea? >> >> >> "choose.dir()" does exist on Windows, so you could switch to that OS, or >> write your own equivalent for MacOS. >> >> Duncan Murdoch >> >> > > ___

Re: [R] output data by date?

2012-11-28 Thread jim holtman
oad by walking." > > phone: +49(0)711 459 23118 > > fax: +49(0)711 459 23117 > E-mail:kath.re...@gmail.com > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.

Re: [R] loop with date

2012-11-27 Thread jim holtman
> > > -- > View this message in context: > http://r.789695.n4.nabble.com/loop-with-date-tp4650961.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list >

Re: [R] Plot(x,y) help

2012-11-26 Thread jim holtman
x27;x'] + barWidth, ym[, 'x']) , c(ym[, 'Upper'], ym[, 'Lower'], ym[, 'Lower']) ) On Mon, Nov 26, 2012 at 1:31 PM, YAddo wrote: > y=c(1.73,1.30,2.30, 1.83,1.36,2.45,1.46,1.07,2.00,1.58,1.15,2.17) -- Jim Holtman Data Munger Guru What is the problem

Re: [R] some help

2012-11-26 Thread jim holtman
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the pr

Re: [R] merging two specific rows in a DF

2012-11-26 Thread jim holtman
hick > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/merging-two-specific-rows-in-a-DF-tp4650826.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/

Re: [R] wrong data interpretation in R

2012-11-26 Thread jim holtman
https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what

Re: [R] Passing lists between functions

2012-11-25 Thread jim holtman
Wrong -- I forgot to use the parameter name do_something<-function(L){ L$a+L$b+L$df+L$g } do_something(lst) On Sun, Nov 25, 2012 at 9:02 PM, jim holtman wrote: > Just reference the objects in the list: > > do_something<-function(L){ > > lst$a+lst$b+lst$df+lst$g &

Re: [R] Passing lists between functions

2012-11-25 Thread jim holtman
> -- > View this message in context: > http://r.789695.n4.nabble.com/Passing-lists-between-functions-tp4650792.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r

Re: [R] How to import data from a text file in R

2012-11-25 Thread Jim Holtman
read the 'intro to R' again and then ?scan ?read.table Sent from my iPad On Nov 25, 2012, at 6:29, dilo88 wrote: > Hi, > > I'd like to import a 154x1 vector of a stock monthly returns from a text (or > excel spreadsheet) into R. I need to work on this vector by calculating > mean, variance an

Re: [R] Import/Export excel files to/from R, without changing the file type

2012-11-25 Thread Jim Holtman
have you tried the 'XLConnect' package? what have you tried, what types of files were you using and what errors did you encounter? Sent from my iPad On Nov 25, 2012, at 6:16, osamaabusinni wrote: > Hi, > > I would like to know if there is a special package that could help me > Import/Export

Re: [R] Iterate by Factor - Newbie Question

2012-11-24 Thread jim holtman
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the probl

Re: [R] Joining two files

2012-11-23 Thread jim holtman
t;-rbind(data1, data3) >> data1 > r1 r2 > [1,] 1 2 > [2,] 1 1 > [3,] 2 2 > [4,] 3 2 >> data3 > r2 r1 > [1,] 2 1 > [2,] 1 1 > [3,] 2 2 > [4,] 2 3 >> data_test > r1 r2 > [1,] 1 2 > [2,] 1 1 > [3,] 2 2 > [

Re: [R] Joining two files

2012-11-23 Thread jim holtman
provide commented, minimal, self-contained, reproducible code. -- 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. __ R-help@r-project.org mailing list https://stat.et

Re: [R] Data frame manipulation

2012-11-22 Thread jim holtman
ot;9h", > "10h", "11h", "12h", "13h", "14h", "15h", "16h", "17h"), class = > "factor"), > N = c(2.16137, 2.20412, 2.08991, 1.72428, 1.69897, 1.62325, > 1.44716, 1.51851, 1.43136, 1.47

Re: [R] Plotting specific points with type='l'

2012-11-22 Thread jim holtman
nts-with-type-l-tp4650475.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] Problems understanding use of regular expression (in gsub) for manipulating currency

2012-11-21 Thread jim holtman
Here is another approach: > x <- "\"$ 1,200,300,400.50\"" > x [1] "\"$ 1,200,300,400.50\"" > gsub("[,$ \"]", "", x) [1] "1200300400.50" > as.numeric(gsub("[,$ \"]", "", x)) [1]

Re: [R] ifelse + numeric

2012-11-21 Thread jim holtman
ead the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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. ___

Re: [R] Modify Y axis

2012-11-21 Thread jim holtman
mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jim Holtman Data Munger Guru What is the problem that you are trying t

<    1   2   3   4   5   6   7   8   9   10   >