Re: [R] Sincere inquiry about “subscript out of bounds” error in R

2012-04-06 Thread jim holtman
g 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 tr

Re: [R] read multiaple files within one folder

2012-04-06 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

Re: [R] Subscript Error

2012-04-04 Thread jim holtman
> Hmm, this list is generally more polite. > > Peter Ehlers > >> >> >> -- >> View this message in context: >> http://r.789695.n4.nabble.com/Subscript-Error-tp4533219p4533219.html >> Sent from the R help mailing list archive at Nabble.com. >> >> __

Re: [R] R equivalent for SQL query

2012-04-03 Thread jim holtman
p@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] filling small gaps of N/A

2012-04-03 Thread jim holtman
offsets [1] 1 3 5 9 23 > On Tue, Apr 3, 2012 at 1:12 PM, jim holtman wrote: >> x <- read.table(text="09/01/2008 12:00      1.93 > + 09/01/2008 12:15      3.93 > + 09/01/2008 12:30       NA > + 09/01/2008 12:45       NA > + 09/01/2008 13:00      4.93 > + 09/01/200

Re: [R] filling small gaps of N/A

2012-04-03 Thread jim holtman
; > My question is: how can I say this to R? I don't know how to do it. > Hope I've been understandable this time ^^ > Thanks a lot again for all your answers! > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/filling-small-gaps-of-N-A-tp4528184p4528907.html > Sent from the R he

Re: [R] Reading first line before using read.table()

2012-04-01 Thread jim holtman
iology >  | Memorial Sloan-Kettering Cancer Center >  | Weill Medical College of Cornell University > Contact Info: http://cbio.mskcc.org/~lianos/contact > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] pause code in R code?

2012-04-01 Thread jim holtman
ng 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] basic subset question of matrix

2012-03-31 Thread jim holtman
subset() command would be > ideal, however I cannot write a functional script with this command. > > Many thanks, > Peter > > __ > 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] how to avoid farword slashes in RJSONIO output

2012-03-31 Thread jim holtman
p", "position": "Sniper", "ambition": "Become greatest warrior" } ]})> On Wed, Mar 28, 2012 at 9:36 AM, MLSC wrote: > Hi All, > I wanted know how to get RJSONIO output with out forward slashes? for >

Re: [R] list assignment syntax?

2012-03-30 Thread jim holtman
x27;s imperative that f return a list, then you >>>>>> could use >>>>>> >>>>>>  (c, d) <- unlist(f(a, b)) >>>>>> >>>>>> to get vector (c, d). >>>>>> >>>>>> Peter Ehlers >&g

Re: [R] Multiple line Graphs

2012-03-30 Thread jim holtman
: > http://r.789695.n4.nabble.com/Multiple-line-Graphs-tp4518505p4518505.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 > PLE

Re: [R] Simple For Loop Help

2012-03-29 Thread jim holtman
p4517088.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/posting-guide.html > an

Re: [R] subtract a list of vectors from a list of data.frames in an elegant way

2012-03-29 Thread Jim Holtman
?setdiff Sent from my iPad On Mar 29, 2012, at 4:28, "Eric Fail" wrote: > Dear R experts, > > I've realized that it might not be possible to define a negative SELCET > statement in a SQL call so now I'm looking for the smoothest way to generate > a list of what I would like from my large dat

Re: [R] copy the columns based on the code

2012-03-27 Thread jim holtman
em. >  The forum has been a great help for me. > > Thanks > > > > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/copy-the-columns-based-on-the-code-tp4505253p4509340.html > Sent from the R help mailing list archive at Nabble.com. >

Re: [R] Exporting a data.frame to excel using sqlSave - adds a character ' to values

2012-03-27 Thread jim holtman
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. __ R-help@r-projec

Re: [R] Data indexing issue...

2012-03-27 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:

Re: [R] writing output directly to file; sink?

2012-03-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 G

Re: [R] writing output directly to file; sink?

2012-03-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

Re: [R] how to know perfect execution of function ? & if error occurred in execution, how to report it?

2012-03-23 Thread Jim Holtman
?try Sent from my iPad On Mar 23, 2012, at 3:32, sagarnikam123 wrote: > i have one for loop,in which i am dealing with time series & arima function, > while iterating at some stage there is a error, like > > Error in arima(x, c(p, 0, q)) : non-stationary AR part from CSS > > i want to know at

Re: [R] Strsplit with a separator of ||

2012-03-22 Thread jim holtman
"bc". > > > > > > Any ideas? > > Thanks! > > > > Best, > > Jing > > > > > > >        [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list > https://s

Re: [R] Problem reading mixed CSV file

2012-03-20 Thread jim holtman
I would use 'readLines' to read in the file and then I could index to the 'nth' line and parse it using 'strsplit' or 'regexpr' depending on its complexity. This would depend on the format of the line which has not been provided. > > > On Tue, Mar

Re: [R] Problem reading mixed CSV file

2012-03-20 Thread jim holtman
any kind of >> corrupted/nonstandard files seems to me suited only if you expect to read >> such files many times. >> >> Regards >> Petr >> >> >>> >>> >>> >>> On Sat, Mar 17, 2012 at 4:54 AM, jim holtman wrote: >>> &g

Re: [R] error message

2012-03-20 Thread jim holtman
Adamu > Nigeria > >        [[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.

Re: [R] Unique in DataFrame

2012-03-20 Thread jim holtman
unique values in a > column, and view the contents with other columns > > rescity<-x[unique(x$city),c(3,1)] > rescity > >   Thanks > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Unique-in-DataFrame-tp4488943p4488943.html > Sent from the R h

Re: [R] Adding columns to csvs in a loop

2012-03-20 Thread Jim Holtman
for (i in fileList){ x <- read.csv(i) x$QID <- "" x$COMMENTS <- "" x$"DATE CREATED" <- "" write.csv(x, file = i) } Sent from my iPad On Mar 19, 2012, at 17:42, Edgar Alminar wrote: > Hello, > I am trying to add columns to a folder of csvs (the folder is called > "20120314"). > I hav

Re: [R] Problem reading mixed CSV file

2012-03-19 Thread Jim Holtman
inal line > numbers of the input file - similar to _N_ in SAS > . Dataframe1 to be outputed as it is while in dataframe2, > concatenating the 3rd and the 4th strings. > > Could you please help with the format for the above? > > > > On Sat, Mar 17, 2012 at 4:54 AM, jim

Re: [R] Importing files

2012-03-18 Thread jim holtman
nverted to POSIXct so you can use it? Do you just want to extract the value (V4)? So I don't see any problem in processing the data. 2012/3/18 Santiago Guallar : > Thank you Jim. > Here the original format and its conversion to txt. > > Santi > > From: jim holtman > To

Re: [R] Importing files

2012-03-18 Thread jim holtman
EASE 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] Removing session variables

2012-03-18 Thread Jim Holtman
to remove an individual column: classResults$subjEnglish <- NULL to remove object: rm(classResults) to access student names: row.names(classResults) Sent from my iPad On Mar 18, 2012, at 5:31, Ajay Askoolum wrote: > If I create a data.frame using session variables as follows: > > classRes

Re: [R] memory, i am getting mad in reading climate data

2012-03-17 Thread jim holtman
I don't know what is the problem.Any suggestion please >>> I tried also >>> memory limit(4000) >>> 4000 >>> but didnt solve the problem.any help >> >> > > __________ > R-help@r-project.org mailing list > h

Re: [R] Problem reading mixed CSV file

2012-03-16 Thread jim holtman
nes? >> >> >> Edit the file and put quotes around the city-state combination: >>  "Raleigh, North Carol" >> > > ______ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLE

Re: [R] Problem reading mixed CSV file

2012-03-16 Thread jim holtman
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] how to speed up the inefficient code

2012-03-16 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] Subtract Date Between columns

2012-03-15 Thread Jim Holtman
use POSIXct instead Sent from my iPad On Mar 15, 2012, at 6:21, MSousa wrote: > Hello > > I have this little dataset, my goal is create one column in the > data.frame with between the diference DataTime and Duration. > I'm using the next code to make do this > > TIME_STAMP SESSIONTIME

Re: [R] subset problem

2012-03-14 Thread jim holtman
metro.net > > >        [[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-guid

Re: [R] Apply a loop containing a function on a list

2012-03-14 Thread jim holtman
roject.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. __ R-help@r-project

Re: [R] Matrix Results

2012-03-13 Thread jim holtman
g 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 try

Re: [R] File data to data.frame

2012-03-13 Thread jim holtman
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] erasing "[1]"

2012-03-12 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

Re: [R] extracting data from unstructured (text?) file

2012-03-12 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 you w

Re: [R] extracting data from unstructured (text?) file

2012-03-11 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] extracting data from unstructured (text?) file

2012-03-11 Thread jim holtman
-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 you are

Re: [R] Finding the mean.

2012-03-10 Thread jim holtman
t.we...@virgin.net > Sent from my BlackBerry® smartphone > __ > 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, r

Re: [R] too many open devices

2012-03-10 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] parsing text files

2012-03-09 Thread jim holtman
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/posting-guide.html > and provide co

Re: [R] Classification by range

2012-03-08 Thread jim holtman
#x27;B' >     <=79,'A' >     <=100 'A+' > I can solve this using a series of 'if' 'else' statements. I am looking for a > simple expression that will give the letter classification for every elem

Re: [R] fill=T?

2012-03-07 Thread jim holtman
-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

Re: [R] how to read a file containing a series filename

2012-03-07 Thread jim holtman
you have to tell 'scan' to read characters with what = '' On Wed, Mar 7, 2012 at 9:44 AM, Jie Tang wrote: > there is something wrong : > > scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : >   scan() needs 'a real', but no

Re: [R] how to read a file containing a series filename

2012-03-07 Thread jim holtman
w could I read these filenames into one array > and so that .I can read the data by such a command ? > > ddata<-scan(pp[2],what=datalist,na.strings = 999) > > thank you . > -- > TANG Jie > Email: totang...@gmail.com > Tel: 0086-2154896104 > Shanghai Typhoon Institute,China > >    

Re: [R] Convert Numeric (20090101) to Date

2012-03-06 Thread jim holtman
forgot what you asked for: > format(x, format = "%d-%m-%Y") [1] "01-01-2009" On Tue, Mar 6, 2012 at 8:40 PM, jim holtman wrote: > try this: > >> x <- as.POSIXct("20090101", format = "%Y%m%d") >> x > [1] "2009-01-01 ES

Re: [R] Convert Numeric (20090101) to Date

2012-03-06 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] sourcearg function is there a better way already built into R

2012-03-06 Thread jim holtman
then do the for loop. > > > > sourcearg works fine for my purposes but my question is:  is there a > better way to do this in R that is already built-in? > > > > Thanx > > > > Robert (Bob) L. Sandefur PE > > > > Senior Geostatistician / Reserve Analyst > > > > CAM > > &g

Re: [R] Running Total

2012-03-05 Thread jim holtman
lp@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 y

Re: [R] How to identify a matrix which causes memory limit?

2012-03-05 Thread jim holtman
MD > West Hartford, CT > > > __ > 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 p

Re: [R] Automating R script with Windows 7

2012-03-05 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. -- Ji

Re: [R] How can I map "by" results to original list of indices or first difference of column of data.frame with two factors?

2012-03-03 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 Dat

Re: [R] Cleaning up messy Excel data

2012-03-02 Thread jim holtman
databases in general) force you to plan things out and do the > correct thing from the start.  It is possible to do the right thing in > Excel, but Excel does not encourage (let alone force) you to do the > right thing, but makes it easy to do the wrong thing. > > On Thu, Mar 1, 2012 at

Re: [R] speed up merge

2012-03-02 Thread jim holtman
7-17" > > class(dt) > [1] "character" > > length(dt) > [1] 1799 > > dt[1:10] > [1] "2007-03-31" "2007-04-01" "2007-04-02" "2007-04-03" "2007-04-04" > "2007-04-05" "2007-04-06" &quo

Re: [R] read.table issue with "#"

2012-03-02 Thread Jim Holtman
use the 'comment.char' parameter of read.table Sent from my iPad On Mar 1, 2012, at 17:51, Rui Barradas wrote: > Hello, > >> >> The problem is that I get a the following error bacause anything after the >> # is ignored. >> >> Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.

Re: [R] Need help using Melt and cast to compute correlation for a cross tabulation

2012-03-01 Thread jim holtman
ttps://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Data Mu

Re: [R] Delete rows from data.frame matching a certain criteria

2012-03-01 Thread jim holtman
ge in context: > http://r.789695.n4.nabble.com/Delete-rows-from-data-frame-matching-a-certain-criteria-tp4435414p4435414.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.et

Re: [R] 'break' function in loop

2012-03-01 Thread jim holtman
eleted]] > > __ > 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, repro

Re: [R] Cleaning up messy Excel data

2012-03-01 Thread jim holtman
       Rolf Turner > > __ > 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: [R] How to remove an object that is loaded every time R is opened?

2012-02-29 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/post

Re: [R] Cleaning up messy Excel data

2012-02-28 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, minimal, self-c

Re: [R] how to append element at last position in array dynamically

2012-02-28 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

Re: [R] export 3D array to .txt file

2012-02-27 Thread Jim Holtman
why a text file? are you going to pass it to another program? 'load'/'save' has already been suggested. if you really want text, try 'dump'. Sent from my iPad On Feb 27, 2012, at 15:45, frauke wrote: > Hey, > > I have an array with the dimensions 200x6x200 and I want to save it in a > tex

Re: [R] compare two data frames of different dimensions and only keep unique rows

2012-02-27 Thread jim holtman
2450, 204.55, 205.45, > 17792, 24.81, 1273.5, 1276.25), Nbr.Lots = c(-61, -61, 6, 40, > 40, -1, -1, -1, 1, -61, -61, 5, 1, 40, 40, -1, -1, -1, 1)), .Names = > c("Product", > "Price", "Nbr.Lots"), row.names = c("1", "2&q

Re: [R] identify and delete in table

2012-02-27 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 p

Re: [R] Military Time Comparison

2012-02-27 Thread Jim Holtman
what does 'str' of the object show? are the columns factors/characters? does the comparison have to consider the date? Sent from my iPad On Feb 27, 2012, at 0:37, Edgar Alminar wrote: > Oh, haha -- sorry for the vagueness: > > I was expecting to get the comparison to work. I also didn't me

Re: [R] count how many row i have in a txt file in a directory

2012-02-26 Thread jim holtman
nclass(x > >                       break > >               if(nrow(x) < nrows){ > >                       n <- n + nrow(x) > >                       break > >               } > >               n <- n + nrows > >       } > >       n > > } > > But hey, programming R is

Re: [R] Help needed! Error in setwd(newdir) : cannot change working directory

2012-02-26 Thread jim holtman
e masked from ‘package:base’:>> >> > attach, detach, environment, gc, load, save>>>>R.utils v1.9.11 > (2012-01-17) successfully loaded. See ?R.utils for help.>>>>Attaching > package: ‘R.utils’>>>>The following object(s) are masked from >

Re: [R] strange behaviour of "POSIXlt" "POSIXt" object

2012-02-24 Thread jim holtman
ble.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, sel

Re: [R] how to delete all classes & variables in current & previously saved history?

2012-02-19 Thread Jim Holtman
the real question is why are you reloading the former session? I always start with a clean workspace and build what I need. Sent from my iPad On Feb 19, 2012, at 6:51, Alfredo Alessandrini wrote: > rm(list=ls()) > > 2012/2/19 sagarnikam123 > >> i have variables stored in previous history,n

Re: [R] Counting value changes

2012-02-18 Thread jim holtman
gt;> Tried various, of what I thought, methods with built in functions. Didn't >> get any further. >> >> Thank you very much. > > -- > Sarah Goslee > http://www.functionaldiversity.org > > __ > R-help@r-project.org mailing list >

Re: [R] Counting value changes

2012-02-18 Thread jim holtman
0267p4400348.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/posting-guide

Re: [R] editing import data, strings

2012-02-17 Thread jim holtman
com/editing-import-data-strings-tp4397899p4398120.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

Re: [R] Neighbour List to Matrix

2012-02-17 Thread jim holtman
t; Best, > AJ > >> Date: Fri, 17 Feb 2012 13:12:55 -0500 >> Subject: Re: [R] Neighbour List to Matrix >> From: jholt...@gmail.com >> To: anxu...@hotmail.com >> CC: r-help@r-project.org >> >> You might want to post a better example of what your data

Re: [R] Neighbour List to Matrix

2012-02-17 Thread jim holtman
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] editing import data, strings

2012-02-17 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 Munge

Re: [R] How to change the order of columns in a data frame?

2012-02-17 Thread jim holtman
or. I would then remove the X from each position use the > vector for renaming the columns. Then the column 2-n could be ordered, I > hope... > > colnames(pos)[1] <- "Mass" > columnNames <- colnames(pos) > > Does any of you have an idea how to do this, or perhaps there is a s

Re: [R] how to rbind matrices from different loops

2012-02-16 Thread jim holtman
2.csv') > b13<-read.csv('a13.csv') > > unis2 <- > rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind > (b1,b2),b3),b4),b5),b6),b7),b8),b9),b10),b11),b12),b13) > >        [[alternative HTML version deleted]] > >

Re: [R] how to rbind matrices from different loops

2012-02-16 Thread jim holtman
-read.csv('a11.csv') > b12<-read.csv('a12.csv') > b13<-read.csv('a13.csv') > > unis2 <- > rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind(rbind > (b1,b2),b3),b4),b5),b6),b7),b8),b9),b10),b11),b12),b13) > >        [[alternativ

Re: [R] matching a sequence in a vector?

2012-02-15 Thread jim holtman
be legally > privileged.  It is intended only for the use of the person or entity > to which it is addressed.  If you are not the addressee any form of > disclosure, copying, modification, distribution or any action taken > or omitted in reliance on the information is unauthori

Re: [R] help in run if

2012-02-15 Thread jim holtman
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. __ R-help@r-

Re: [R] How to replace range of data in a dataframe

2012-02-15 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] Creating categories from a date-time object

2012-02-14 Thread jim holtman
Xct('2011-09-02 03:00'), > by='45 min') > > Is there any valid way to do it? I have spend so much time without any good > luck and I don't have any good code to show! > Thanks in advance! > José > >        [[alternative HTML version deleted]] > > > ___

Re: [R] Color cells of a matrix as in Excel

2012-02-14 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 trying to solve? Tell me what you want to d

Re: [R] save output of loop

2012-02-14 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? Tell me wh

Re: [R] If (x > 0)

2012-02-13 Thread jim holtman
I doing wrong? Why is this happening? I am baffled! > Any help would be appreciated. > Thanks > Mike > > > > >        [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/m

Re: [R] for loop

2012-02-13 Thread jim holtman
ng 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] Subset a datafram according to time

2012-02-09 Thread Jim Holtman
In the first line of dataframe 3, I don't see where the value of 2.456 for ObsrG came from. Can you give us a hint of how that was computed? Sent from my iPad On Feb 9, 2012, at 21:05, NickNz125 wrote: > I want the combine and align by time DATAFRAME1 with DATAFRAME2. DF1 is > second observa

Re: [R] List to dataframe

2012-02-08 Thread jim holtman
gt; 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, repro

Re: [R] decimal number format as quarter

2012-02-08 Thread jim holtman
5 2.50 2.75 3.25 3.50 3.75 > On Wed, Feb 8, 2012 at 9:44 AM, Arnaud Gaboury wrote: > TY Jim, > > It do the trick. > > I was trying to play without success with the format() options. > No simplest way so? > > Arnaud Gaboury > > A2CT2 Ltd. > > > -Original

Re: [R] decimal number format as quarter

2012-02-08 Thread jim holtman
tinfo/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 do, not how you want t

Re: [R] R equivalent of Python str()?

2012-02-07 Thread jim holtman
h/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 do, not

Re: [R] Writing to a file

2012-02-06 Thread jim holtman
at.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

Re: [R] how to REPLACE VALUES in a dataframe

2012-02-05 Thread Jim Holtman
indx <- match(u$nam, v$enter, nomatch = 0) u$coe[indx != 0] <- v$coeff[indx] Sent from my iPad On Feb 5, 2012, at 15:45, Valerie Moore wrote: > Hi, > > I have two data frames (u and v). > >> u > coe nam > 1 0 Time > 2 0Poten > 3 0 AdvExp > 4 0Share > 5 0 Chang

Re: [R] how do I exort a list of numbers into csv file?

2012-02-05 Thread Jim Holtman
michael, what is the problem you are trying to solve? are you writing it out so you can read it back in? if so, look at 'save/load' or 'dump/source'. is this the format required by some other program? Sent from my iPad On Feb 5, 2012, at 21:54, baptiste auguie wrote: > Hi, > > If you d

<    3   4   5   6   7   8   9   10   11   12   >