Displaying 20 results from an estimated 3000 matches similar to: "Aggregate weights for a unique set of rows"
2011 Mar 11
2
Using missing() in a S4 method with extra arguments
Hi all,
I have a function which makes use of missing() to determine which
arguments are provided in the call - basically, there are two sets of
arguments that map to different strategies the function uses to fulfill
its task. After conversion to an S4 generic I've run into the problem
that if a method uses extra arguments that are not in the signature of
the generic, usage of missing()
2011 Feb 21
1
Problem with documentation of user-defined operator (S4 method)
Dear list members,
I have defined a binary operator %append% with methods for some S4
classes. In my documentation file, I want to list the methods explicitly
by using e.g.:
\S4method{\%append\%}{RecLinkData,RecLinkData}(x, y)
In the HTML documentation this comes out right as
## S4 method for signature 'RecLinkResult,RecLinkResult'
x %append% y
, but R CMD check
2010 Nov 15
1
Package with multiple shared libraries
Dear R-devel members,
I would like to compile a package with two seperate shared libraries.
For example, in a package 'foo', a file 'bar.so' built from a distinct
set of source files should be installed in addition to the default
'foo.so' (or .dll on windows). Does anyone know about a way to achieve
this without having a custom Makefile, e.g. via 'Makevars'?
2010 Dec 07
3
How to find out if a data frame has automatic row names?
Hi all,
I just stumbled across the difference between explicit and 'automatic'
row names for data frames. Is there a quick way to find out if a data
frame has automatic row names or not? Of course I know this for data
frames that I create myself, but what if a function needs to extract
this information for an argument?
The following example shows that this property is not easily
2011 May 03
1
[R] Sweave stops when opening X11 device fails
Hi all,
I am posting this again because I got no reply on r-help. Maybe the
devel-list is the right place for this kind of question.
I've run into the following problem with Sweave: I frequently run Sweave
from a xterm console within an X session owned by a different user, i.e.
my colleague is logged in on this computer and I do "su" with my
username and start R and Sweave
2006 Nov 14
2
dividing vectors into bins with equal widths
Hi R-users,
I am trying to divide a vector (say X) into equal frequency bins. If one uses the hist()
function, then a histogram is plotted, but with bins of equal widths, and not with bins
having the same number of data points.
I have then tried the histogram() function as follows:
histogram(X, nint=10, breaks=NULL, equal.widths=F)
This works as I want. However, I can't extract which
2011 Jul 13
1
How to remove last 3 letters
Hello to everybody
I have vector of drug dosage in string format
1.5 mg , 50 mg , 100 mg , 0.5 mg ...
The task is to remove last free symbols: ' mg'
Any suggestions are highly appreciated
2011 Mar 15
2
Feature request: txtProgressBar with ability to write to arbitrary stream
Hi all,
I use txtProgressBar to monitor progress of large computations. What I
miss is the ability to redirect the progress bar to a stream other than
stdout, specifically to the message stream. This would be useful for
running Sweave scripts: When redirected to stderr, the bar could be
visible even though console output is diverted to the output file (and
there would be no cluttering of the
2011 Mar 31
1
Assign Names of columns in data.frame dinamically
Hello List.
I have many files of ECG, each one with 7 column and I need only the
second column and the name of each ECG. I am doing this but althought
I have various days trying this i haven't gotten, so I ask help with
this, if somebody cans help me I'll be so thankfully.
--------------------------------------------------------------------------------------------------------
2011 Apr 19
1
Where did my packages go ?
Running linux 10.04 ubuntu.
Looks like Ubuntu automatically updated to version 2.13. I was running
version 2.12 until today. But now I'm getting error messages when I use the
require or library command and one of the packages I've downloaded in the
past. For example:
> require(quantmod)
Loading required package: quantmod
Warning message:
In library(package, lib.loc = lib.loc,
2011 Dec 02
2
help in dbWriteTable
hi
I need some help in dbWriteTable.
I'm not able to insert the rows in the table if the column order are not
same in the database and in the dataframe which i'm inserting. Also facing
issue if the table is already created externally and inserting it thru
dbWrite.
is there some way that we can sepecify the rownames in the dbwrite..or any
method which will solve my problem
--
View
2011 Apr 20
2
user input
Dear users,
I have looked on different sources and found different functions to
prompt the user to provide input. However, I couldn't find one that does
exactly what I'm looking for.
select.list() and menu() are nice because a graphic window appears to
prompt the user. However, the user can only choose from a predefined
list of choices. readline() and scan() are more free in the
2009 Jan 17
9
[LLVMdev] Criticism of garbage collection support in LLVM
This may be of interest:
http://lhc-compiler.blogspot.com/2009/01/case-against-cllvm.html
People implementing a new Haskell compiler explain why LLVM is an
unsuitable target for them.
2011 Apr 09
1
How do I make this faster?
I was on vacation the last week and wrote some code to run a 500-day
correlation between the Nasdaq tracking stock (QQQ) and 191 currency pairs
for 500 days. The initial run took 9 hours(!) and I'd like to make it
faster. So, I'm including my code below, in hopes that somebody will be able
to figure out how to make it faster, either through parallelisation, or by
making changes. I've
2011 Apr 08
3
random sampling with levels and with replacement
Dear all,
i have a dataset of about 400 records , with a variable that has two levels 40 bad and 360 good among other variables,how do i come up with10 random samples that have the composition of as the main sample but maintaining the 40 bad 360 good with replacement, i recently discovered that my random samples generated dont maintain the ratio. My code is as :
mysample <-
2011 Jan 04
2
RSQLite to input dataframe
Dear r helpers,
At first, I apologize for raising a query which seems to be a stupid interpretation on my part. I am trying to learn SQLite.
Following is an example given in the RSQLite.zip file (Page # 4)
drv <- dbDriver("SQLite")
tfile <- tempfile()
con <- dbConnect(drv, dbname = tfile)
data(USArrests)
dbWriteTable(con, "arrests", USArrests)
On the similar
2003 Aug 13
6
5.1-R-p2 crashes on SMP with AMI RAID and Intel 1000/Pro
Dear Sirs.
It seems to me a never ending story. We run a box with a TYAN Thunder
2500 Dual SMP mainboard, 2GB ECC Tyan certified memory, AMI Enterprise
1600 RAID adapter and additional Intel 1000/Pro server type (64 bit)
GBit LAN NIC. With FreeBSD 4.8 this was stable, but to achive this
state was really hard! It is a story similar to that what happend when
we changed towards FreeBSD
2011 May 31
3
Compiling C-code in Windows
Hello ALL!
I am an Linux user (Debian testing i386), with very dusty
Win-experience. Nevertheless, my colleagues and I are making some
package in R, and I built C-routines to speed up things.
I followed instruction how to compile C for R (very useful link:
http://www.stat.lsa.umich.edu/~yizwang/software/maxLinear/noteonR.html,
and links listed there). Everything works like a charm in Linux. I
1999 Jun 15
7
quotas: documentation? Properties?
System: samba 2.0.4b on Solaris 2.x
Starting point: PC's "Properties" window on a share of home directories;
diskspace Used/Free "pie-chart" and figures.
A colleague asked me yesterday whether this properties window could
display the diskspace information, using the user's UNIX quota rather than
the physical space on the disk.
Our environment has potentially 14,000
2011 Apr 05
1
super basic questions about S4 classes
Apologies for asking something that is probably super obvious, i just started
with S4 classes and i guess i am not finding documentation that layout the
grammar rules and give enough examples. Some questions i am having are these
1. I understand that main method of writing a member function is to write a
generic function and setMethod for this particular object. This, however,
presumes that there