Re: [R] create a list fails

2010-10-20 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar

Re: [R] cube root of a negative number

2010-10-26 Thread Jeff Newmiller
, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO

Re: [R] Removing NA in ggplot

2010-11-06 Thread Jeff Newmiller
/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. --- Jeff NewmillerThe . . Go

Re: [R] Replicate Excel's LOGEST worksheet function in R

2010-11-13 Thread Jeff Newmiller
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew

Re: [R] Updata Rdata File

2010-11-18 Thread Jeff Newmiller
commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] all extended ASCII characters exist for R console output?

2010-11-19 Thread Jeff Newmiller
://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. --- Jeff Newmiller

Re: [R] Lost in POSIX

2010-11-22 Thread Jeff Newmiller
Dimitri Shvorob wrote: df$dt - as.Date(df$t) Thank you, David, but I need a *time* value. day was a confusing special case; how about min? Your original question was NOT clear on this point... it was not David's fault your question was confusing, and you haven't even hinted at an

Re: [R] how to loop through variables in R?

2010-11-22 Thread Jeff Newmiller
wata...@post.com wrote: -Original Message- From: jas4710 wata...@post.com To: r-help@r-project.org Sent: Mon, Nov 22, 2010 4:11 pm Subject: [R] how to loop through variables in R? After importing a table with M variables and N records, I'd like to calculate chi-square statistics,

Re: [R] unexpected numeric constant while reading tab delimited csv file

2010-11-22 Thread Jeff Newmiller
madr wrote: my csv file is very simple - just one line for purpose of this test: 0{TAB}0 and read function is this: csvdata = read.csv(file=d:/s/test.csv,head=FALSE,sep=\t) then error comes: Error in source(d:/test.csv) : d:/test.csv:1:9: unexpected numeric constant 1: 0 0 but

Re: [R] About available datasets on PC

2010-11-23 Thread Jeff Newmiller
You need to load the package and then load the data: library(AER) data(DJFranses) then it will be available for you to work with. Stephen Liu wrote: Hi folks, Win7 On running; data(package = .packages(all.available = TRUE)) it displays a list of datasets under:- Data sets in package

Re: [R] Lost in POSIX

2010-11-23 Thread Jeff Newmiller
Dimitri Shvorob wrote: Nor would I call this much of an improvement in clarity... what about min? You want to know the minimum? LOL. (And apologies for the insensitivity). Thank you for help, Jeff. This works, but I am still curious to see a solution based on trunc, if anyone can find it.

Re: [R] unexpected behavior using round to 2 digits on randomly generated numbers

2010-11-28 Thread Jeff Newmiller
FAQ 7.31 http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f You find it odd that the result is not an integer, while I find the fact that your calculation actually works reliably with any number of digits surprising, and you should avoid assuming

Re: [R] how to know if a file exists on a remote server?

2010-11-30 Thread Jeff Newmiller
Neither file_test nor file.exists address the OP question, since both of these depend on the filesystem stat call, which doesn't work via arbitrary remote access protocols such as http. Baoqiang Cao: The simplest answer is that if you want the file, try to download it, and deal with any error

Re: [R] densities greater than 1 for values within an (0, 1) intervall

2010-07-12 Thread Jeff Newmiller
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew

Re: [R] Accessing files on password-protected FTP sites

2010-07-12 Thread Jeff Newmiller
, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] MplusAutomation

2010-07-13 Thread Jeff Newmiller
-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live

Re: [R] create variables with indexes

2010-07-14 Thread Jeff Newmiller
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics

Re: [R] a very particular plot

2010-07-14 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] Want to exclude a column when using sample function

2010-07-14 Thread Jeff Newmiller
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. --- Jeff Newmiller

Re: [R] installing and loading packages

2010-07-17 Thread Jeff Newmiller
://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. --- Jeff Newmiller

Re: [R] Help with Reshaping from Wide to Long

2010-07-17 Thread Jeff Newmiller
/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. --- Jeff NewmillerThe . . Go

Re: [R] error when copy and transform within a data frame

2010-07-19 Thread Jeff Newmiller
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.us

Re: [R] RMySQL and RMPI together

2010-07-19 Thread Jeff Newmiller
commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] converting a time to nearest half-hour

2010-07-23 Thread Jeff Newmiller
commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] converting a time to nearest half-hour

2010-07-23 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] union data in column

2010-07-24 Thread Jeff Newmiller
Fahim Md wrote: Is there any function/way to merge/unite the following data GENEID col1 col2 col3col4 G234064 1 0 0 0 G234064 1 0 0 0

Re: [R] how to read/save .zip compressed files from R?

2010-08-03 Thread Jeff Newmiller
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.us

Re: [R] Carriage return character issue

2010-08-03 Thread Jeff Newmiller
-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] Adding collumn to existing data frame

2010-08-04 Thread Jeff Newmiller
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live

Re: [R] apply family functions

2010-08-07 Thread Jeff Newmiller
Sapply is not significantly faster than a for loop. Vectorization generally is, but you pay for it in RAM. dat.oc - oc[dat$Class,] dat$Flag - ifelse(with(dat.oc,(Open=dat$Close_date dat$Close_date=Close) | (Open1=dat$Close_date dat$Close_date=Close1)),Valid,Invalid) If you are really

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-19 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing

Re: [R] Puzzle

2010-08-26 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar

Re: [R] Reading multiple text files where some files are empty

2010-08-30 Thread Jeff Newmiller
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live

Re: [R] Using packages built in linux in windows

2010-09-01 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing

Re: [R] R 2.11, shell, spaces

2010-09-07 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O

Re: [R] Calculating with tolerances

2010-09-09 Thread Jeff Newmiller
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.us

Re: [R] dataframe of dataframes?

2010-09-14 Thread Jeff Newmiller
raje...@cse.iitm.ac.in wrote: Hi, I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this? You can't, at least as you describe it. However, you can add a column for row ID

Re: [R] how to compute when row length is different

2010-09-14 Thread Jeff Newmiller
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics

Re: [R] function help?

2010-09-17 Thread Jeff Newmiller
and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] Please help with this error - new to

2010-09-19 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O

Re: [R] NA problem

2010-09-21 Thread Jeff Newmiller
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics

Re: [R] R squared for lm prediction

2010-10-04 Thread Jeff Newmiller
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. --- Jeff Newmiller

Re: [R] GC verbose=false still showing report

2010-10-09 Thread Jeff Newmiller
-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live

Re: [R] merging and working with BIG data sets. Is sqldf the best way??

2010-10-12 Thread Jeff Newmiller
Chris Howden wrote: Hi everyone, I’m working with some very big datasets (each dataset has 11 million rows and 2 columns). My first step is to merge all my individual data sets together (I have about 20) I’m using the following command from sqldf data1 - sqldf(select A.*, B.*

Re: [R] Generating a stochastic matrix with a specified second dominant eigenvalue

2009-10-17 Thread Jeff Newmiller
(A) -- --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] R for Ubuntu 10.04?

2010-04-27 Thread Jeff Newmiller
Tengfei Yin wrote: Hi dear all I am currently using Ubuntu 9.10 (karmic) and R 2.10, I can find a R release that support karmic in cran under ubuntu directory, I plan to update my laptop to Ubuntu 10.04 after April 30, since I have to use some new features or new version in it, e.g. QT 4.6, I

Re: [R] Advice needed on awkward tables

2010-05-11 Thread Jeff Newmiller
Greg Orm wrote: Dear r-help list members, I am quite new to R, and hope to seek advice from you about a problem I have been cracking my head over. Apologies if this seems like a simple problem. I would not call it exactly simple... but mostly because your data representation is so obscure.

Re: [R] how to use sapply code

2010-06-16 Thread Jeff Newmiller
Roslina Zakaria wrote: Hi, I have this code here and try to use sapply code. But I got error message that I don't really understand to correct. bt - c(24.96874, 19.67861, 23.51001, 19.86868); round(bt,2) alp - c(2.724234, 3.914649, 3.229146, 3.120719); round(alp,2) bt_alp -

Re: [R] R licensing query

2010-06-17 Thread Jeff Newmiller
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. --- Jeff Newmiller

Re: [R] Time in ggplot2

2010-06-20 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O

Re: [R] what density is plotting ?

2010-06-24 Thread Jeff Newmiller
commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] How not to print '\\' as '\\'

2010-07-06 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O

Re: [R] C module causing rounding errors?

2010-07-08 Thread Jeff Newmiller
-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go

Re: [R] power law fit with unknown zero

2007-10-18 Thread Jeff Newmiller
... -- --- Jeff NewmillerThe . . Go Live... DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] Random sequence of days?

2008-08-20 Thread Jeff Newmiller
.) -- --- Jeff NewmillerThe . . Go Live... DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] Iterations

2008-07-15 Thread Jeff Newmiller
-- --- Jeff NewmillerThe . . Go Live... DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O

Re: [R] SQL Queries from Multiple Servers

2009-05-13 Thread Jeff Newmiller
joins are fairly small you can use R's merge function and doBy. It seems a bit much to me to expect a database access library to do double duty as a SQL database engine, though. -- --- Jeff Newmiller

Re: [R] R in Ubunto

2009-05-27 Thread Jeff Newmiller
. -- --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] orthogonal/perpendicular distance from regression line

2009-02-20 Thread Jeff Newmiller
-Dimensional.html --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] merge function

2011-06-30 Thread Jeff Newmiller
You haven't provided a reproducible example. I do notice you are using T and F which are variables that can be redefined (which is why TRUE and FALSE are preferred. --- Jeff Newmiller The . . Go Live... DCN:jdnew

Re: [R] (no subject)

2011-07-02 Thread Jeff Newmiller
be answered online. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded

Re: [R] wavelets

2011-07-04 Thread Jeff Newmiller
better what your Matlab library is doing. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O

Re: [R] R CMD SHLIB with ifort

2011-07-04 Thread Jeff Newmiller
I don't have any idea about linking Fortran to R, but if I did I am sure I would want complete command lines and error messages before I looked at your problem. --- Jeff Newmiller The . . Go Live... DCN:jdnew

Re: [R] Create a data frame of all possible unique combinations of factors

2011-07-05 Thread Jeff Newmiller
Reading ?expand.grid, there is a see also reference to combn which looks close to what you want. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] Tables and merge

2011-07-05 Thread Jeff Newmiller
Merge can only handle two tables at a time. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O

Re: [R] time zone issue - beginners question

2011-07-06 Thread Jeff Newmiller
. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO

Re: [R] vectors cross-product V1 x V2

2011-07-08 Thread Jeff Newmiller
RSiteSearch(cross product) library(pracma) ?cross Speed is usually desired in the context of many similar computations, and is normally achieved in R by vectorizing computation, so storing the large number of 3d vectors together in a structure like a Nx3 matrix so the code can be vectorized

Re: [R] Making a new package: licence

2011-07-08 Thread Jeff Newmiller
On 07/08/2011 07:58 AM, Spencer Graves wrote: On 7/8/2011 4:26 AM, Federico Calboli wrote: On 8 Jul 2011, at 12:06, Duncan Murdoch wrote: On 11-07-08 6:20 AM, Federico Calboli wrote: HI All, I have written and succesfully uploaded a new package. The licence it is under is 'GPL' --no

Re: [R] Extract only the values from a row

2011-07-11 Thread Jeff Newmiller
. ? --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks

Re: [R] time zone - any practical solution?

2011-07-12 Thread Jeff Newmiller
somewhere with filenames matching the time zones). --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O

Re: [R] Role of na.rm inside mean()

2011-07-12 Thread Jeff Newmiller
. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks

Re: [R] Problem in installing rJava from source

2011-07-15 Thread Jeff Newmiller
. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k

Re: [R] MatchIt Package

2011-07-16 Thread Jeff Newmiller
Kind of hard to figure out the problem without a reproducible test case. Hint: see the posting guide. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead

Re: [R] How to get predicted values of y for different x values?

2011-07-19 Thread Jeff Newmiller
?predict Use data.frame() to generate input vectors (newdata) for which you want predicted values. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead

Re: [R] installing Rgraphviz

2011-07-20 Thread Jeff Newmiller
This is off-topic, and extremely easy to find an answer to using Google. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] Summing daily values by weekday and weekend

2011-07-21 Thread Jeff Newmiller
)) --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k

Re: [R] Deleting rows and store the deleted rows in new data frame

2011-07-24 Thread Jeff Newmiller
there. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k

Re: [R] how to shift a chron timestamp by 6:30 hours

2011-07-28 Thread Jeff Newmiller
Create a difftime object and subtract it from your chron vector. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer

Re: [R] Problem with effects package

2011-07-30 Thread Jeff Newmiller
then. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k

Re: [R] 5 arguments passed to .Internal(matrix) which requires 7

2011-08-01 Thread Jeff Newmiller
--- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k

Re: [R] how to control to save plots to which dev

2011-08-01 Thread Jeff Newmiller
Simplest to make two consecutive loops. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O

Re: [R] My R code is not efficient

2011-08-02 Thread Jeff Newmiller
?expand.grid --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded

Re: [R] problemsn in using nls

2011-08-05 Thread Jeff Newmiller
Suggestion: read the posting guide and tell us enough information to interpret your problem. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] .dta from e-mail

2011-08-05 Thread Jeff Newmiller
dta is a very generic extension, so that is not enough information. I recommend saving it and opening it with a text editor. If it is binary, you will need to ask the sender how to open it. --- Jeff Newmiller

Re: [R] Denormalize data

2011-08-09 Thread Jeff Newmiller
automatically remove that level from the factor. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O

Re: [R] Details of subassignment (for vectors and data frames)

2011-08-12 Thread Jeff Newmiller
assignments straight. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded

Re: [R] FYI : XML 3.4.2 still breaks odfWeave 0.7.17

2011-08-14 Thread Jeff Newmiller
This email, or rather one that includes a reproducible example, belongs in the email box of the author of the library, as identified in the library help file. --- Jeff Newmiller The . . Go Live... DCN:jdnew

Re: [R] Central limit theorem

2011-08-14 Thread Jeff Newmiller
Please read the posting guide.. this is not a homework help list. Thus, further discussion of this thread is off topic here. Perhaps you can correspond offlist. --- Jeff Newmiller The . . Go Live... DCN:jdnew

Re: [R] Trouble: Time Difference with difftime

2011-08-14 Thread Jeff Newmiller
Use Date instead of POSIXct. Since your data is already POSIXct you need to convert to character and then Date before you use difftime. a - as.POSIXct(2011-08-02 00:01:00) b - as.POSIXct(2011-08-01 23:59:00) as.Date(as.character(a,format=%Y-%m-%d))-as.Date(as.character(b,format=%Y-%m-%d))

Re: [R] write.table extra column

2011-08-15 Thread Jeff Newmiller
Yup. Read ?write.csv and note the row.names argument. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar

Re: [R] Missing datasets (2.13.1)

2011-08-15 Thread Jeff Newmiller
That would be because ToothGrow is not ToothGrowth. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] a question about lm on t-test.

2011-08-15 Thread Jeff Newmiller
Why would you assert that the mean is the same as the intercept? For data clustered far from the y axis this seems clearly unlikely to be true. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics

Re: [R] a question about lm on t-test.

2011-08-16 Thread Jeff Newmiller
Sorry, I missed the nature of the data. As to your original question, perhaps typing summary.lm at the R prompt can enlighten you? --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics

Re: [R] density plot with frequency units

2011-08-16 Thread Jeff Newmiller
This is a nonsensical request. It is like saying you want to plot the speed of a falling object but you want the units of speed to be meters. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics

Re: [R] what characteristics of model curve do parameters denote

2011-08-18 Thread Jeff Newmiller
Please refer to the posting guide... This is not a mathematics tutoring list. Your question does not appear to be about R, so no one has responded. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us

Re: [R] Selecting subset of factor levels

2011-08-18 Thread Jeff Newmiller
factors then you can perform and comparisons, but that can affect the statistical algorithms you apply elsewhere. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO

Re: [R] Leading zeros

2011-08-19 Thread Jeff Newmiller
x - rep(00,2) y - c(23/45,67/8) substr(x,1+nchar(x)-nchar(y), nchar(x)) - y x --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing

Re: [R] (no subject)

2011-03-20 Thread Jeff Newmiller
, then this is probably not the list to be asking questions about using R from Excel on. There is a mailing list for rcom/RExcel questions (I think it is at http://mailman.csd.univie.ac.at/pipermail/rcom-l/). --- Jeff

Re: [R] subset and as.POSIXct / as.POSIXlt oddness

2011-03-24 Thread Jeff Newmiller
On 03/24/2011 06:29 AM, Michael Bach wrote: Dear R users, Given this data: x- seq(1,100,1) dx- as.POSIXct(x*900, origin=2007-06-01 00:00:00) dfx- data.frame(dx) Now to play around for example: subset(dfx, dx as.POSIXct(2007-06-01 16:00:00)) Ok. Now for some reason I want to extract the

Re: [R] Preserving the class of POSIXt objects

2011-03-25 Thread Jeff Newmiller
library(plyr) ldply(x,function(v){data.frame(Start=v$Start,End=v$End)}) --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

  1   2   3   4   5   6   7   8   9   10   >