Displaying 20 results from an estimated 100 matches similar to: "slow computation of functions over large datasets"
2009 Nov 30
1
RSQLite does not read very large values correctly
Hello,
I am trying to import data from an SQLite database to R.
Unfortunately, I seem to get wrong data when I try to import very large
numbers.
For example:
I look at the database via SQLiteStudio(v.1.1.3) and I see the following
values:
OrderID Day TimeToclose
1 2009-11-25 29467907000
2 2009-11-25 29467907000
3 2009-11-25 29467907000
Now I run this R Code:
>
2009 Jan 14
2
runs.test in by() statement
Hi everybody
I am a recent convert from SAS so please excuse me if this is all very
obvious:
I want to use the runs test {runs.test() in package tseries} to test the
randomness of a certain variable in a survey for each interviewer. I tried
to us the by() statement but it doesn't seem to work with runs.test() as the
function.
Here is what I have: Consider a data frame with two variables and
2008 Mar 04
2
summarizing replicates with multiple treatments
I have a dataframe with several different treatment variables, and
would like to calculate the mean and standard deviation of the
replicates for each day and treatment variable. It seems like it
should be easy, but I've only managed to do it for one treatment at a
time using subset and tapply. Here is an example dataset:
> `exampledata` <-
structure(list(day = c(1L, 1L, 1L, 1L, 1L,
2004 Jul 22
3
Replace only Capital Letters
Dear All,
I have these data:
exampledata <- c("This is one item", "This is Another One", "And so is
This")
I would like to find each occurence of a blank space followed by a Capital
Letter and replace it by a blank space, a left curly brace, the respective
Capital Letter, and then a right curly brace.
I thought the following will do:
gsub(pattern = "
2012 Oct 05
1
avoid <<- in specific case
Hi all,
I improved a function drawing horizontal histograms (code below) which uses barplot and works fine.
It does,however, need to assign a function to the global environment to later find the actual location on the vertical axis, and not the number of bars used by barplot.
Hopefully, running the examples below will illustrate that.
As said, it works perfectly fine and does exactly what I
2011 Jan 20
2
adding text to y-axis per row of panels (lattice)
Dear all,
Being a newbie to R, I've trawled through many old posts on this list
looking for a solution to my problem, but unfortunately couldn't quite
figure it out myself. I'd be very grateful if someone here on this
list could perhaps help me out.
I have a lattice plot with several panels and would like to add some
text next to the y-axis on the right hand side of each row of
2009 Nov 21
1
what do i do to fix missing packages...see error
> exampledata <- rnorm(10000)
> summary(exampledata)
Min. 1st Qu. Median Mean 3rd Qu. Max.
-4.030000 -0.666200 -0.023390 -0.009384 0.664700 4.092000
> desc <- function(mydata) {
+ require(e1071)
+ quantls <- quantile(x=mydata, probs=seq(from=0, to=1, by=0.25))
+ themean <- mean(mydata)
+ thesd <- sd(mydata)
+ kurt <-
2017 Nov 29
3
Removing a data subset
Say I have a dataset that looks like
Location Year GW_Elv
MW01 1999 546.63
MW02 1999 474.21
MW03 1999 471.94
MW04 1999 466.80
MW01 2000 545.90
MW02 2000 546.10
The whole dataset is at http://doylesdartden.com/ExampleData.csv
and I use the code below to do the graph but I want to do it without MW01.
How can I
2011 Mar 21
1
value changed after paste() function
Hi all,
I am new user in R, I am trying to to use paste function to concatenate
strings which has been fetched from database table(postgres database), the
following are my code:
when i do:
> sqlFetch(channel,'transactions')
outputs are following(only parts, there are around 200 transactions in
total)
orderid productname price quantity discount
1 T10248 potato 1.80
2012 Jan 22
1
hook for configuring checking of \example{} sections of the documentation during R CMD check
Dear all,
In a new package, I try to check the examples given in the \example section of the Rd files.
However, the examples cannot be run if the package is not instructed, during startup time, in the place where some data are to be found ( with system.file("exampleData", "xyz", package="rcqp").
Is there any hook available, or a place where some code might be
2007 May 08
1
Looking for a comprehensive descriptive statistics package
Hi all,
I'm looking for a package that will give me comprehensive set of
descriptive statistics, including skew and kurtosis. Also, is there a
similar package that will provide multivariate descriptive statistics as
well? Thanks in advance,
David
--
===========================================================================
David Kaplan, Ph.D.
Professor
Department of Educational
2011 Jun 07
1
XML segfault on some architectures
Hi,
I found an architecture-specific segfault problem with the XML package. I originally found the problem using the parseKGML2Graph function in the Bioconductor KEGGgraph package, but as far as I can tell the underlying issue seems to be with the xmlTreeParse which is called by parseKGML2Graph.
I'm trying this piece of code, from the xmlTreeParse help page:
library(XML)
fileName <-
2003 Apr 11
1
Fwd: Setting up ADSI
I sent this yesterday from my wrong email account.
yeah,
Thank you. I screwed up by only looking at adsi.conf, and not
asterisk.adsi.
Once I saw that, things started falling into place.
Are you able to pass arguments to the phone so that for every call
there is unique data on the screen. I see that works for caller
id with $Call1p and $Call1s, but what If I obtain an OrderID
from my
2010 Jul 06
1
Error in affypdnn package
Dear all,
I am a PhD student working with Affymetrix HGU133atag array for analyzing the Latin square experiment.
I was trying to generate gene expression index for hgu133atag array for PDNN model. While extracting the chiptype specific data structure, I got the following error-
> library(affypdnn)
Loading required package: affy
Loading required package: Biobase
Welcome to Bioconductor
2015 Oct 31
1
Example input data with example output using relative pathway in vignette of R package?
I'm putting together an R package. I would like to show example code in the
vignette, where example data files (included in the package) are used to
generate an (example) output file.
I read about using example data in Hadley Wickham's post (
http://r-pkgs.had.co.nz/data.html), and believe I should keep my example
data as raw data, as it must be parsed to generate the output.
So, I
2017 Nov 29
0
Removing a data subset
Reading in the data from the file
x <- read.csv( "ExampleData.csv", header = TRUE, stringsAsFactors = FALSE )
Subsetting as you want
x <- x[ x$Location != "MW01", ]
This selects all rows where the value in column 'Location' is not equal to "MW01". The comma after that ensures that all columns are copied into the amended data.frame.
Rgds,
2014 Dec 15
3
Significant memory leak when using XML on Windows
Thanks a lot for answering. Before I get into it, please note that
everything below bears the big capture "Thanks for trying to help me at
all".
1) Yeah, those examples - quite hard to satisfy everyone's needs ;-) While
the one side complained that my past examples regarding this issue were not
informative enough, others didn't like the more elaborated version (as
seems to be
2017 Aug 02
2
[LNT] new server instance http://lnt.llvm.org seems unstable
Actually I just remember LNT has a page for viewing the log:
http://lnt.llvm.org/log
...
OperationalError: (OperationalError) (2006, 'MySQL server has gone away') 'SELECT `NT_Run`.`ID` AS `NT_Run_ID`, `NT_Run`.`MachineID` AS `NT_Run_MachineID`, `NT_Run`.`OrderID` AS `NT_Run_OrderID`, `NT_Run`.`ImportedFrom` AS `NT_Run_ImportedFrom`, `NT_Run`.`StartTime` AS `NT_Run_StartTime`,
2012 Oct 25
6
How to tie orders taken to specific CDR records
Our phone operators work off of an Asterisk queue. They take calls from
customers and take orders with our back end systems. What I need to be
able to do is tie the orders taken to the specific CDR record that
reflects the call from which the order originated.
The typical/sample CDR table doesn't have a primary key. I can add an
auto-generated PK, but the CDR is not written until the
2017 Aug 03
2
[LNT] new server instance http://lnt.llvm.org seems unstable
On Wed, Aug 2, 2017, at 21:55, Tobias Grosser via llvm-dev wrote:
> This started since about 1-2 weeks, I guess. I am not sure about it
> either, but seems unfortunate. Maybe we run into some kind of timeout?
And another one :(
http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly/builds/1986/steps/lnt.nightly-test/logs/stdio
2017-08-03 00:24:44 CRITICAL: Results were not