Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
When I encounter memory errors, I like to see the size of the objects in memory, so I modified one of the examples: z <- sapply(ls(), function(x) object.size(get(x))) as.matrix(rev(sort(z))[1:10]) This...
All, I am not understanding the scoping used in foreach when it is used inside a function. I keep getting "could not find function" errors for functions that are in memory when I try to use foreach within a function...
I asked Jeff Horner that question a while back and he said it was Linux only. He doesn't have time to create a windows version. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces...
I modified an example in the object.size help page to create a function I want to be able to run: "mysize" <- function() { z <- sapply(ls(), function(w) object.size(get(w))) as.matrix(rev(sort(z))[1:5]) } mysize...
Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close: > fnd<-"Open fnd 'test'" > cat(fnd) Open fnd 'test'> > But instead of Open...
I have a matrix called mat and y is the column number of my response and x is a vector of the column numbers of my terms. The variable name of y can change, so I don't want to...
I have a string that contains a number and when I convert it to a number I loose precision and I would like to know if there is a way to avoid that. Here is my example: p <- "1087.003489...
Marc's links lists many packages. Of those, I would recommend XLConnect. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Marc Schwartz Sent: Monday, September 12, 2011...
All, I would like to figure out how to pass variable names to the dplyr function mutate. For example, this works because hp is one of the variable names on mtcars: mutate(mtcars, scale(hp)) Let's says I want...
I would like to learn how to parse a mixed text/xml document I downloaded from the sec.gov website (see example below). I would like to parse this to get the value for each xml tag and then access...
All, I am storing a string of email addresses in a table and when I retrieve them using a RODBC statement such as: test = sqlQuery(xf, "select specialist from roger_sector_specialist")$specialist 'test' is of mode list and includes...
You could break the data into chunks, so you cbind and save 50,000 observations at a time. That should be less taxing on your machine and memory. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r...
All, I have managed to download files from web sites and ftp sites using R, so just for fun I tried to do so from the SEC's ftp site using the following code: ftp <- "ftp://anonymous:test at ftp...
I cannot get a database connection in R to my MS SQL Server database. In S-Plus 6.2 I have used the following successfully: rawdata <- importData(type="DIRECT-SQL", user="xfl2", password="xfl2", server="rinnycs0059", database="xf", table="", sqlQuery...
I wrote simple function to copy data from/to excel using the clipboard. These should also work from one window to the next: # To read from clipboard "fromExcel" <- function() {read.table("clipboard-128", header=TRUE, sep="\t")} "toExcel" <- function(x...
All, Could anyone recommend a package that allows the user to constrain the coefficients from a multiple regression equation? I tried using the gl1ce function in lasso2, but couldn't get it to work. I created a contrived example to...
All, I am trying to get the XLConnect package to work on one of my servers and I am getting an error that XLConnectJars cannot create the java virtual machine. The server is a 32-bit Windows Server 2003 machine...
Running R 2.4.1 in batch mode on a Windows Server 2003 machine occasionally gives me the following error in the ".Rout" file: Loading required package: tcltk Loading Tcl/Tk interface ... Unable to register TclNotifier window class This application...
Saskay, Thanks so much for that example. It worked fine on my system. I didn't realized SNOW worked on windows. I will have to read more about it. Thanks again, Roger -----Original Message----- From: r-help-bounces at r...
Unless I am making a user error, it seems that rollapply stops working with some functions after the PerformanceAnalytics packages has been loaded. I provide reproducible code below: test <- xts(1:10, order.by=Sys.time()+(1:10)) "w" <- function...
Can't find what you're looking for? Try searching with Google .