[R] setting serialization

2020-04-11 Thread Glenn Schultz via R-help
then sets dependency to R(>= 3.5.0) this no backward compatibility.  Actually, I don't mind this personally but is there a way with the below set-up to avoid this? Best, Glenn zzz.r file as below    .onAttach <- function(libname, pkgname){   packageStartupMessage(   &quo

[R] using mutate to remove all white space

2020-03-01 Thread Glenn Schultz via R-help
just default back to sql but would prefer to use dplyr. Best, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-gu

Re: [R] splitting a column of data into multiple columns

2019-07-01 Thread Glenn Doherty
A very elegant solution Jim. Here is a tidyverse solution. Janet, this is a different sample set (the same you sent in another post a couple days ago), but it will work with this data frame as well. ### RECREATING YOUR DATA FRAME scen<-c("1","1","2","2","3","3") streamflow<-c("0.019234","0.019027"

[R] package colorspace and .WhitePoint question

2018-06-04 Thread Glenn Davis
= XYZ(95,100,105) assign( ".WhitePoint", XYZ(95,100,105), env=as.environment('package: colorspace') ) but all fail, for different reasons. How can I transform XYZ to LAB using a whitepoint different than D65 ? Thanks, Glenn Davis gda...@gluonics.com [[alternative

[R] S4 class slot type S4 class

2018-05-20 Thread Glenn Schultz
myfoo',                   slots = (foo1, foo2)) Without a type I believe each slot is .Data.  A get method on the above class slots would return say foo1 which will have all methods and generics belonging to foo1 class.  Is this the correct approach? Best, Glenn _

[R] [R-pkgs] acs version 2.1.0 update: download and analyze data from the US Census in R

2017-07-13 Thread Ezra Haber Glenn
t; user guide at <http://dusp.mit.edu/sites/dusp.mit.edu/files/attachments/publications/working_with_acs_R_v_2.0.pdf>. -- Ezra Haber Glenn, AICP Department of Urban Studies and Planning Massachusetts Institute of Technology 77 Massachusetts Ave., Room 7-346 Cambridge, MA 02139 eg

[R] get the value of a biplane

2017-05-28 Thread Glenn Schultz
basis is returned and I would like to get the value.   Nothing has worked so far and ?predict plus examples only show prediction from linear models.  Is there a way to extract the value from a defined spline? Best Regards, Glenn __ R-help@r-project.org mai

[R] modifying list in loop

2017-04-01 Thread Glenn Schultz
function to update the values in the list.  The function works properly but the list values are not updated.  Any help is appreciated. Best, Glenn BeginBal <- function(deal,period){ numtranches = length(deal) tranches = seq(numtranches,1,-1) for(tranche in seq_along(tranches)){ cashflow <- N

[R] help with grep list files

2017-02-20 Thread Glenn Schultz
list.files(path = readpath, pattern = "^lld[A-Z0-9].dat$”) but nothing is returned below is a dput from the first command. $ is an end of line anchor correct? What am I doing wrong? Best, Glenn c("lld022017_AB7755_AS0038.dat", "lld022017_AS0039_AS5210.dat", "lld022017

[R] Zip Files

2017-01-20 Thread Glenn Schultz
does anyone have an idea as to the possible cause of this behavior? Best Regards, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] help using tryCatch

2017-01-19 Thread Glenn Schultz
.  Any help is appreciated Glenn FindATOMSPrice <- function(StartPrice, TBAPrice, PriceInterval, CurrFactor, PrevFactor, CarryAdj, PDReturn, CPNReturn, MTDReturn){ ATOMSReturn <- function(ClosePrice, StartPrice, CurrFactor, PrevFactor, PDReturn, CPNReturn, MTDReturn){ SurvivalFactor = Curr

[R] getting data from a webpage

2016-12-19 Thread Glenn Schultz
page which really has the data. Best, Glenn library(httr) #get initial cookies h <- handle("https://www.theice.com/";) GET(handle = h) POST(url = "https://www.theice.com/marketdata/reports/180";, body = list(reportDate = "15-Dec-2016", SeriesNameAnRunCode_chose

[R] using grepl in dplyr

2016-11-29 Thread Glenn Schultz
FALSE then filter on TRUE Any Ideas are appreciated, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html a

[R] using a regular expression

2016-09-11 Thread Glenn Schultz
same strategy to eliminate the spaces and sed command works in a shell but does not work in the R function.  What am I doing wrong?  I have dput - some of the nastier lines with hex 20 characters below my code. Any advice is appreciated. Glenn arm <- function(filepath){ callpath <-

[R] parsing a complex file

2016-08-27 Thread Glenn Schultz
der which begins with 1 at byte location 1 to a file and the detail which begins with 2 at byte location 1 to another file.  When I look at data2 in RStudio  I see the following.  The file is 185 meg, I have the lines but I am stuck as to the next step.  Any ideas are appreciated. Gle

[R] need some help with date

2016-08-14 Thread Glenn Schultz
ons. Any suggestions would be greatly appreciated. Best, Glenn DateCentury <- function(Date = "character"){ ThisDate = as.Date(Date, format = "%m/%d/%y", origin = "1900-01-01") CurrDate = as.Date(Sys.Date()) Century = as.Date("1999-12-31&qu

[R] R Listen to a Web GUI

2016-08-10 Thread Glenn Schultz
All, I need to create a function that listens to a web GUI interface and then responds by running the needed R function. How can I do that with R? Can anyone recommend what packages I should consider. Glenn __ R-help@r-project.org mailing list

[R] open a zip file

2016-08-07 Thread Glenn Schultz
uot;, sep = ""), overwrite = FALSE), httr::progress()) httr::http_status(response) } Which results in a zip file but I cannot open the file with unzip or any other R functions what have I done wrong? Glenn __

[R] API key at start-up

2016-06-27 Thread Glenn Schultz
All, Is there a way to assign an API key to a value FREDAPI which is loaded and available once a R session is has started? Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] [R-pkgs] acs version 2.0: an R package to download and analyze data from the US Census

2016-03-21 Thread Ezra Haber Glenn
_2.0.pdf>. Special thanks to package beta testers (Ari, Arin, Bethany, Emma, John, and Michael) and the entire acs-r community, as well as to Uwe and Kurt at CRAN for their infinite patience and continuing care and stewardship of the system. -- Ezra Haber Glenn, AICP Department of Urban Studies

[R] Find the first occurrence in a list

2016-03-14 Thread Glenn Schultz
? Glenn data <- as.list(c(rep(0, 20), rep(1, 340))) f <- function(x){x != 0} which(sapply(data, f ) == TRUE)[1] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

[R] Big Finance and digits

2016-02-02 Thread Glenn Schultz
lose the decimal unless I set options(digits = 22).  Are there any other options available.  I have searched the internet and well as some R sites and it seems this maybe my only option. Glenn  __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] String Matching

2016-01-29 Thread Glenn Schultz
found MBS_Test <- function(MBS.id = "character"){ MBS <- glob2rx(paste(MBS.id, ".*", "//.rds", sep = ""), trim.tail = TRUE) MBS.Conn <- gzfile(description = paste(system.file(package = "BondLab"), "/BondData/", MBS, s

[R] S4 Class to Array

2015-12-16 Thread Glenn Schultz
Any insights/help are appreciated, - Glenn setClass("AnObject", representation( dataone = "numeric", datatwo = "numeric")) FillObject <- function(){ one <- rep(10, 20) two <- rep(10,20) new("AnObject", dataone = one, datatwo = two) } MyObject <-

[R] help using SED

2015-12-05 Thread Glenn Schultz
l(parse(text = ReadCF)) I have managed to determine that the problem is the missing quotes but I do not know how to get those included in the below R command. Any help is appreciated Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a

[R] Some help understanding ggplot2

2015-11-28 Thread Glenn Schultz
%.  I think the problem has to do with normalizing the data. Glenn Here is my data structure(list(Rate = c(0.004975, 0.0126625, 0.0180375, 0.0136, 0.016, 0.0196, 0.023, 0.0256, 0.0293, 0.0324, 0.0338), Maturity = c(0.0833, 0.25, 0.5, 1, 2, 3, 4, 5, 7, 10, 30)), .Names = c("Rate",

[R] Advice collating an R package

2015-11-11 Thread Glenn Schultz
r function Thanks, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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

[R] Creating S4 class with a slot as an array

2015-10-20 Thread Glenn Schultz
= "CashFlow", function(.Object, CashFlowArray = "array" ){ .Object@CashFlowArray return(.Object) callNextMethod(.Object,...) }) CashFlow <-function(CashFlowArray = array()){ new("CashFlow", CashFlowArray = CashFlowArray) } CFTest <- array(data = 2,

[R] R studio and git

2015-09-25 Thread Glenn Schultz
the update of OSX. Any ideas? Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] extracting a value from XML

2015-09-21 Thread Glenn Schultz
Hi Bob, Thanks, can you help me undestand why it starts with //observation and how you know that it is a node? Glenn On Sep 21, 2015, at 01:56 PM, boB Rudis wrote: This is how (one way) in both the xml2 package and XML package: library(xml2) library(XML) txt <- ' ' doc &l

[R] extracting a value from XML

2015-09-21 Thread Glenn Schultz
;//[[value]]") but no success.  All I need is the 0.46 value.  Any suggestions to help me along are greatly appreciated. Glenn     __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

[R] Extracting XML value

2015-09-03 Thread Glenn Schultz
I parsed the xml doc = xmlTreeParse(USSW10, asText = TRUE, useInternal = TRUE) which gives   finally I try to extract the value 0.46 using the xmlValue function.  I have lost something in translation and I am unable to extract the value.  my understanding is I hav

[R] Parallel Processing

2015-08-13 Thread Glenn Schultz
;what' must be a character string or a function  I have read some posts on the internet suggesting the issue may be related to S4 class and I have tried parse() to no avail.  I have read Snow and Parallel documentation but I am not getting the issue. Glenn   library(parallel) library(foreac

[R] Knit R and Book Publishing

2015-08-05 Thread Glenn Schultz
-Securities-Website/dp/1118944003/ref=sr_1_1?ie=UTF8&qid=1438822386&sr=8-1&keywords=glenn+m+schultz During the learning process I came to know literate programming and reproducible research.  Now,  I have a viable package and I would like re-write the book in R Studio with knitr.  I have had

[R] Vignette using knitr, devtools, and R markdown

2015-07-29 Thread Glenn Schultz
- maybe doing something wrong.  Does anyone know if I can create a TOC in a vignette using r-markdown and devtools? Glenn   __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] ggplot percent format for interest rates

2015-07-25 Thread Glenn Schultz
Hello All, The data is as follows below with ggplot command.  I would like there to be two digits to the right of the decimal on the y axis - this would be consistent with plotting interest rates.  I have not had much luck.  Any ideas are appreciated -glenn structure(list(Tenor = c(0, 1, 2

[R] spline basis

2015-06-22 Thread Glenn Schultz
I have the following code which creates a spline function x <- c(1, 12, 24, 36, 60, 120, 200, 240, 300, 360) y <- c(.2, 8, 8, 8, 8, 8, 8, 8, 18, 50) Baseline <- cbind(x,y) Turnover <- splinefun(Baseline[,1], Baseline[,2], method = "natural") plot(Turnover(seq(1, 360, 1)), type = "l") If I chan

[R] ggplot stat_bin question

2015-06-02 Thread Glenn Schultz
djust this. Below is the code I used to create the graph.  I think I am pretty much following the examples in Hadley's ggplot2 book and really just need to eliminate the message as the graphs look fine.  Any suggestions are appreciated. Best Regards, Glenn    Mdur.dist <- ggplot(OAS.M

[R] R CMD methods and ggplot2 advice

2015-05-25 Thread Glenn Schultz
could point in the right direction to resolve these I would appreciate the advice.  These are my last remaining two issues to make the packages pass CRAN aside from the on.load() Best Regards, Glenn * checking dependencies in R code ... NOTE package ‘methods’ is used but not declared * check

[R] data for pass though OAS viewport question

2015-05-25 Thread Glenn Schultz
Attached is dput of the pass through OAS  __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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

[R] Viewport help

2015-05-24 Thread Glenn Schultz
little lost on the viewport and can't quite get to the last step.  The function is below and the code I have question about is in red. Glenn The function is below - The code I have a question about is in red #' OAS Analaysis of Pass Though MBS #'  #' Function calls BondLa

[R] Roxygen Documentation

2015-05-22 Thread Glenn Schultz
seek an alternative. Thanks, Glenn #' Chapter 1 Present Value Function Example #'  #' The script example calls the presesnt value function #' from the package BondLab #' @examples #' \dontrun{ require(BondLab) PV = TimeValue(interest.rate = .05,    

[R] Illustrating use of R package

2015-05-16 Thread Glenn Schultz
ill I actually have to buy a windows machine to build the windows binary for CRAN? Glenn   __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] Code works on Mac but not Windows

2015-05-11 Thread Glenn Schultz
from = 25, to = 385, by = 1)]/12) / (1 + spot.rate.curve[seq(from = 1, to = 361, by = 1)]) ^ (period[seq(from = 1, to = 361, by = 1)]/12))^(1/2))-1 Ten.Year.Fwd <- (((1 + spot.rate.curve[seq(from = 121, to = 481, by = 1)]) ^ (per

[R] Code works on Mac but not Windows

2015-05-10 Thread Glenn Schultz
dows build errors no method.  I have to pass a method = "ns" in the function.  If I pass the value for method to the function it will run with no error.  Any thoughts are appreciated. Best Regards, Glenn   #Default method for TermStructure   if(missing(m

[R] Package Build question for Bond Lab

2015-05-09 Thread Glenn Schultz
issue I need to resolve for BondLab.  I read the writing packages section on 1.5.3 on loan hooks but it really does not address this question. Best Regards, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

[R] Package Build Recommendations

2015-05-06 Thread Glenn Schultz
REMICs (CMOs).   They referenced via connection in the software via a connection string ~/users/BondLab.  I am looking for recommendations to create the directory and copy the appropriate folders with their data to a user directory on install.   Any help will be appreciated. Glenn   BondData Groups

[R] Building Package Help Files

2015-04-04 Thread Glenn Schultz
organize the help files under titles as follows: Passthrough Analysis - REMIC Analysis and Structuring - Prepayment Model - Is a scheme like this possible?  If so, how would I go about accomplishing this? Best Regards, Glenn __ R-help@r-project.org

[R] Package build help - thanks

2015-03-22 Thread Glenn Schultz
ry and move the examples to the appropriate folder?  For example, could I create a folder data and then move each of the below folders to data and on install move the "data folders" to say a bondlabdata folder? Best Regards, Glenn Non Standard Folders are below BondData - bond objects

[R] ggplot2 recycle color palette

2015-03-17 Thread Glenn Schultz
, Glenn cbbPalette <- c("#E69F00",                  "#56B4E9",                  "#009E73",                  "#F0E442",                  "#0072B2",                  "#D55E00",                  "#CC79A7",                  "

[R] ggplot2 help

2015-03-15 Thread Glenn Schultz
All,  I am doing something wrong but I don't see what.  When I plot in ggplot all the lines are on top of one another but the data is not.  Any help is appreciated. Thanks, Glenn  # I use this function to generate data Burnout <- function(beta1 =

[R] bigglm connected to a database

2015-03-03 Thread Glenn Schultz
any insights are appreciated. Best Regards, Glenn make.data <- function(connection, query, chunksize,...){       function(reset = FALSE) {       if (reset) {         if (got > 0) {             dbClearResult(result)             result <<- dbSendQuery(Train.Data, ModelDa

[R] vectorize data string analysis

2015-03-02 Thread Glenn Schultz
parse this using the function I have written.  Can this be vectorized or is this a loop deal? Best Regards, Glenn   #' FNMA Factor   #'    #' This function parses the FNMA factor file for load into   #' into a database table the FNMA factor file is non-delimited   #'

[R] Lubridate and NameSpace

2015-02-28 Thread Glenn Schultz
g function using lubridate:::%m+% within my function based on some discussion I found online.  This is likely the correct idea but I don't think I am calling the function correctly since it does not work in the code when I use the above syntax. Any suggestions are appreciated> Best Glenn

[R] BondLab Package

2015-02-14 Thread Glenn Schultz
Type: Package Title: A package for the analysis of structured products Version: 0.0.0 Date: 2013-12-08 Author: Glenn Schultz, CFA Maintainer: Glenn Schultz Description: The package provides a suite of software utilities for the analysis of Mortgage and Asset Backed securities LazyLoad: yes License

[R] Package build help

2015-02-08 Thread Glenn Schultz
s can be a handled by the namespace? Thanks, Glenn Found the following significant warnings:   Warning: replacing previous import by ‘lubridate::duration’ when loading ‘BondLab’   Warning: replacing previous import by ‘plyr::here’ when loading ‘BondLab’ _

[R] Package Build Suggestions

2015-01-24 Thread Glenn Schultz
Regards, Glenn __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] cyclic dependency when building a package

2014-11-30 Thread Glenn Schultz
. https://github.com/glennmschultz/BondLab.git I have been trying to figure this out for a couple of months to no avail. If anyone has familiarity with this issue I would certainly appreciate any help with the issue. Thanks, Glenn __ R-help@r

[R] optimx

2014-11-29 Thread Glenn Schultz
matmatrix = CIR.Mat.Matrix) close(CalCIR1) return(fit) Thank-you in advance, Glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

[R] need some help with this example

2013-10-28 Thread Glenn Schultz
I have a class Details that contains information needed by FirstSet to do some calculations then a super class that returns Details and FirstSet.  The problem seems to be in FirstSet where I use the function getAnumber(id).   setClass("Details",          representation(            ID = "charact

[R] [R-pkgs] acs package version 1.1: download and analyze census data from the ACS

2013-07-19 Thread Ezra Haber Glenn
onal support, worked examples, and more can be found on the CityState blog (<http://eglenn.scripts.mit.edu/citystate>), as well as through the acs.R user group mailing list -- visit <http://mailman.mit.edu/mailman/listinfo/acs-r> to subscribe and view archives. -- Ezra Haber Glenn, A

Re: [R] positioning of R windows

2013-04-18 Thread Glenn Stauffer
ways defaults to "My Computer"). But when the working directory is outside this user account, then the directory tree behaves normally. > -----Original Message- > From: Glenn Stauffer [mailto:gestauf...@gmail.com] > Sent: Tuesday, March 05, 2013 11:11 AM > To: 'Dunc

Re: [R] positioning of R windows

2013-03-05 Thread Glenn Stauffer
I'm sorry - yes I meant 2.15.3. But I think it probably does not matter. Others are not seeing the behavior that I am (with any version), so I don't think R is the problem. But I will post if I ever get it figured out. Thanks, Glenn Stauffer -Original Message- From: Dunc

Re: [R] positioning of R windows

2013-03-05 Thread Glenn Stauffer
older tree) does show the current folder for a split second before reverting back to the folder "Computer". But the tree always just selects "Computer" and below that lists the C drive and the D drive. Anyway, I am convinced now that it is not an R issue, but rather something abou

Re: [R] positioning of R windows

2013-02-28 Thread Glenn Stauffer
. No luck though on getting the "change directory" dialog box to begin at the current working directory the same manner as 'save' or 'open' dialog boxes. I'll update to the new R version Thanks, Glenn Stauffer -Original Message- From: r-help-boun...@r-p

[R] positioning of R windows

2013-02-27 Thread Glenn Stauffer
sy to jump up one folder, etc. Is there any way to make this the default behavior? I am using R 2.15.1 Thanks, Glenn Stauffer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Grouped data objects within GLS and Variogram

2012-11-24 Thread Matlack, Glenn
the reason. I notice that Christina Silva described the same problem in the R-Help log a few years ago (11/19/2002), but her question doesn't seem to have been answered. I greatly appreciate any advice or suggestions anyone can give me on this! Many thanks, Glenn Matlack Athens, Ohio

[R] [R-pkgs] acs package: analyze data from the U.S. American Community Survey

2012-03-19 Thread Ezra Haber Glenn
and/or <http://eglenn.scripts.mit.edu/citystate/2012/03/acs-package-updated-version-0-8-now-on-cran/>. -- Ezra Haber Glenn, AICP Lecturer in Community Development Department of Urban Studies and Planning Massachusetts Institute of Technology 77 Massachusetts Ave., Room 7

[R] test

2010-10-21 Thread Treacy, Glenn
-- ** Irish Life Investment Managers Limited is regulated by the Central Bank of Ireland. Irish Life Investment Managers Limited Registered Office: Beresford Court, Beresford Place, Dublin 1. Registered in Irelan

[R] Conversion of S+ libraries

2010-10-21 Thread Treacy, Glenn
Does anyone have any advice on converting S+ libraries to R packages? Glenn -- ** Irish Life Investment Managers Limited is regulated by the Central Bank of Ireland. Irish Life Investment Managers Limited

[R] Job for senior quantitative analyst in Dublin

2010-10-20 Thread Treacy, Glenn
Senior Quantitative Research Analyst Based in Irish Life Investment Managers, Lower Beresford Place, Dublin 1 Irish Life Investment Managers (ILIM), the investment management company within the Irish Life & Permanent Group manages assets of circa EUR30bn and provides fund management servi

Re: [R] RE : RE : R getting slower until it breaks...

2010-10-08 Thread Glenn Davis
There might be a file handle leak, i.e. files were never closed after being written. The Process Explorer program: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx can tell you. -- View this message in context: http://r.789695.n4.nabble.com/R-getting-slower-until-it-breaks-tp29655

[R] Trouble loading package

2010-03-27 Thread Glenn E Stauffer
My OS is Windows XP, and my R version is R.2.10.1 Thanks, Glenn ***** Glenn E. Stauffer Graduate Research Assistant Department of Ecology Montana State University Bozeman, MT 59717 406-994-5677 gestauf...@gmail.com __

Re: [R] Error in mvpart example

2010-02-27 Thread Glenn De'ath
Thanks for the info -- I'll check it out ASAP. Regards Glenn +++ Glenn De'ath Principal Research Scientist Australian Institute of Marine Science Ph: +61-7-4758-1747; +61-7-4753-4314 "In a world without walls and fences, who needs wi

Re: [R] large integers in R

2010-01-27 Thread Blanford, Glenn
Duncan, thanks. To the point, R supports -(2**31-1) to 2**31-1 or -2147483647 to +2147483647 -2147483648 is a valid signed integer but returns NA. Signed integers are -2147483648 to 2147483647 Glenn D Blanford, PhD NAIL lab, PM NSI, Fort Monmouth, NJ glenn.blanf...@us.army.mil Scientific Research

[R] large integers in R

2010-01-26 Thread Blanford, Glenn
Has there been any update on R's handling large integers greater than 10^9 (between 10^9 and 4x10^9) ? as.integer() in R 2.9.2 lists this as a restriction but doesnt list the actual limit or cause, nor if anyone was looking at fixing it. Glenn D Blanford, PhD <mailto:glenn.blanf...@us.

Re: [R] External signal in ODE written in C (using deSolve and approx1?)

2009-06-13 Thread Glenn Woodart
to get a working example in the vignette it would be great. Again, thank you for your brilliant work on implementing solvers for differential equations in R. Best wishes Glenn 2009/6/13 Thomas Petzoldt > Glenn Woodart wrote: > >> Dear list >> >> The deSolve package a

[R] External signal in ODE written in C (using deSolve and approx1?)

2009-06-12 Thread Glenn Woodart
now how to approach this problem, please let me know. Best wishes Glenn [[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.o

[R] round function seems to produce maximum 2 decimals

2009-05-20 Thread Glenn E Stauffer
but then the result no longer is numeric. Am I missing something simple? I am using R 2.9.0 on Windows XP. Thanks, Glenn #code h=12345.16711 h round(h,digits=1) round(h,digits=2) round(h,digits=3) round(h,digits=4) round(h,digits=5) signif(h,digits=9) format(h,nsmall=4) #results > h=12345

[R] PCA functions

2009-02-13 Thread glenn
Hi All, would appreciate an answer on this if you have a moment; Is there a function (before I try and write it !) that allows the input of a covariance or correlation matrix to calculate PCA, rather than the actual data as in princomp() Regards Glenn [[alternative HTML

[R] (no subject)

2009-02-13 Thread glenn
Very quick one please team; How do I return the number of possible unique subsets in a data set (not combinations i.e. not (1,2,3,4) and (4,3,2,1)) please ? e.g. In a list of integers 1 to 12, there is 495 sets with 4 elements in regards glenn [[alternative HTML version

[R] running totals in a list

2009-02-09 Thread glenn
very simple question I am sure sorry: for a list; test <-c(1,2,3) how do I total them up please to return the result 1,3,6 Regards Glenn [[alternative HTML version deleted]] __ R-hel

[R] standardize

2009-02-09 Thread glenn
Very quick newbie question sorry; How do I standardize a list of data please (other than do the calculation of course). Is there a quick way please ? glenn [[alternative HTML version deleted]] __ R-help@r-project.org

[R] (no subject)

2009-02-09 Thread glenn
[13] 49 19 -13 -2 25 39 [19] -12 -90 -1 15 -87 30 I can not seem to see what type of object this element is (is.list = FALSE) - also is there a way to take all the elements and just put them in just one series please Regards glenn [[alternative HTML

[R] subsets problem

2009-02-08 Thread glenn
n a single column of data. So far so good. How do loop through all values in the uniques list (say there is 50), perform an operationon Test1Test50, and then bolt all the lists together in a single list please ? Regards Glenn [[alternative HTML version dele

Re: [R] sapply

2009-02-08 Thread glenn
Bullseye ! thanks a lot Sundar -Original Message- From: Sundar Dorai-Raj [mailto:sdorai...@gmail.com] Sent: 09 February 2009 00:31 To: glenn Cc: r-help@r-project.org Subject: Re: [R] sapply I'm not sure what you really want, so perhaps a simple example would help (i.e. what a samp

[R] sapply

2009-02-08 Thread glenn
o and quant mod route Regards glenn [[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 pr

[R] as.xts error

2009-02-07 Thread glenn
data is coming from a spreadsheet via the excel function rputdataframe, and has 3 columns of dates (excel format) regards glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] does R plus 3.3 need vista ?

2009-02-06 Thread glenn
Hi all - has anyone ot and experienced problems with R+. Have downloaded the trail and it will not work -does it need vista (like it says on the box!) Thanks glenn [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Cor(df,method = "kendall")

2009-01-28 Thread glenn
return immediately ? In particular trying to use function in Excel (reval) and I am getting OLE error boxes as RGUI hangs. Many Thanks. Glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Run Script at Start Up

2009-01-24 Thread glenn
Dear All, A very quick newbie question sorry. I am running R on Windows and would like to know if I can store a .R file in a location that it gets run on start up. Or is there some file I can alter please? Regards Glenn [[alternative HTML version deleted

[R] Statistics books

2009-01-20 Thread glenn
Not strictly R sorry Looking for some new books on the topics of; Correlation, and Rank-Reduction in general If anyone has any suggestions I would appreciate it Amazon yielded some books from SAGE publishers which looked ok Regards Glenn [[alternative HTML version deleted

[R] Month tick marks on a plot()

2009-01-19 Thread glenn
Hi All, I have a small dataframe [dates, values) I am plotting with plot(df,type=²l²) And the date date covers a year. The graph only have marks at Œ2008¹ and Œ2009¹. How do I get the months labeled at the bottom please Thanks as always Glenn [[alternative HTML version deleted

[R] Combinations

2009-01-18 Thread glenn
Hi All, some help on this would be appreciated; Understood combinations(7,4) returns all the possible 4 part combinations out of 7. Is is possible to substitute the ³7² for a list of stuff you would like to see the mix of; c(³a²,...,²g²) say ? Thanks Glenn [[alternative HTML version

[R] Multiplication of dataframes

2009-01-18 Thread glenn
If I have 2 data frames; df1:dim(df1) = (1,10) df2:dim(df2) = (2000,10) Both with column header names, how do I multiply them together please. I.e create a dateframe dim() = (2000,1) Many Thanks in advance Glenn [[alternative HTML version deleted

[R] Minimization Problem

2009-01-18 Thread glenn
matrix problem; [x1,x2,x3,x4].[ -0.38 -0.52 0.68-0.29 ] [ -0.39 -0.42-0.12 0.49 ] [ -0.40 -0.20-0.45 0.26 ] [ -0.390.03-0.39-0.36 ] I hope the formatting comes out ok , I did this on a Mac ! Glenn

[R] List of Lists

2009-01-14 Thread glenn
data02, date == data03[1,]) Ie. data04 holds the data from data02 that matches a date in data03 How do I create a list data04 that instead rolls through all the elements of data03 and each element of data04 is a list Regards Glenn [[alternative HTML version d

[R] Removing duplicates from a list

2009-01-14 Thread glenn
For a list say; list1<-{1,2,3,4,5,2,1} How do I remove the duplicates please? My real list is 20,000 obs long of dates with many duplicates Regards Glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list ht

[R] Joining lists

2009-01-13 Thread glenn
Very simple one sorry: How do I join 2 lists please Thanks glenn [[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

[R]

2009-01-09 Thread glenn
a term (%) that when typed means the last returned value, so > % + 1 say would return the last outputted value +1 .is there an R equivalent please? Many thanks glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailing l

  1   2   >