Displaying 20 results from an estimated 300 matches similar to: "unique function works funny"
2011 Aug 02
2
Memory limit in Aggregate()
Dear all,
I am trying to aggregate a table (divided in two lists here), but get a
memory error.
Here is the code I'm running :
sessionInfo()
print(paste("memory.limit() ", memory.limit()))
print(paste("memory.size() ", memory.size()))
print(paste("memory.size(TRUE) ", memory.size(TRUE)))
print(paste("size listX ", object.size(listX)))
2007 May 08
3
Median
Hello.
I need calculate the median of several column of a data.frame, in a new
column of this data frame, but the median operator only calculate from a
vector.
I have made a functionc that calculate the median but it is very slow.
Are there any method in any package to calculate this?
Best regards.
Jose Sierra.
A B C
-0.01678042
2009 Oct 12
1
Creating object referant from argument name
Hi all. I'd like to define an object within a function based on an argument
to that function.
Specifically, I've got:
do.something<-function(input){
id<-substring(input,3,3)
j<-list1
if(id==2)j<-list2
if(id==3)j<-list3
if(id==4)j<-list4
...}
Instead of all these if() arguments, I was hoping to use something like:
2010 Jan 30
0
[LLVMdev] Redefining function
Hi Conrado,
> I couldn't find the solution to my problem (if it has one) in the
> mailing list or the source code. The problem is: how can I redefine a
> function that's been called already by some other function?
why do you want to do this?
> Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I
> think it could be clang instead).
>
> File1.c:
2018 Mar 22
0
Change args count in CallInstr
Hello,
I have a CallInstr for "functionA". I renamed it to "functionB" but I want
to decrease number of arguments as functionA accepts e.g two and functionB
just one.
So far, I dont find any function to just replace args / set args size. Any
idea?
Maybe other solution...
Is there any way to create a new CallInstr for functionB, copy things from
CallInstr of functionB a copy
2009 Jan 14
2
coercing a list into matrix
Dear list,
I have a list of number sequences. Each number sequence has different
numbers of elements. Is there a quick way (other than to iterate
through the entire list) way to coerce list to matrix with NAs filling
in the short sequences?
An example of what I mean is this:
A <- list(c(3,2,3),c(6,5))
I'd like to get A so that it is
3 2 3
6 5 NA
Best,
Ken
2009 Jul 16
2
quoting expressions in a list
Dear R-help,
I am having quite a difficult time coming up with what I want to do involving named lists.
I have a list of logical expressions, and I would really like it if the "names" of the components of the list were identical to the corresponding logical expression.
So, as an example:
df.example <- data.frame(a = 1:10, b = rnorm(10, 5))
list.example <- list(df.example$a
2010 Jan 29
2
[LLVMdev] Redefining function
Hi everybody.
I've just started learning about LLVM and didn't get too far studying the
core.
I couldn't find the solution to my problem (if it has one) in the mailing
list or the source code. The problem is: how can I redefine a function
that's been called already by some other function?
Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I think
it could be clang
2011 Jul 08
0
[LLVMdev] Inter-module calls
Is there a preferred approach for an LLVM-based JIT-compiler to make
calls from run-time generated functions in module A to bitcode-loaded
functions in module B?
A naive CallInst across the boundary fails verification. Calling it as
an external function fails to resolve, even if both ModuleA and ModuleB
are in the same ExecutionEngine. I can think of two ways around this:
1. Create a
2011 Jul 08
0
[LLVMdev] Inter-module calls
Is there a preferred approach for an LLVM-based JIT-compiler to make
calls from run-time generated functions in module A to bitcode-loaded
functions in module B?
A naive CallInst across the boundary fails verification. Calling it as
an external function fails to resolve, even if both ModuleA and ModuleB
are in the same ExecutionEngine. I can think of two ways around this:
1. Create a
2010 Jan 30
2
[LLVMdev] Redefining function
Hi Duncan,
> I couldn't find the solution to my problem (if it has one) in the mailing
>> list or the source code. The problem is: how can I redefine a function
>> that's been called already by some other function?
>>
>
> why do you want to do this?
>
To implement something that is common in Lisp. Suppose I have a program that
is running and can't be
2007 Nov 02
0
applying duplicated, unique and match to lists?
Dear R developers,
While improving duplicated.array() and friends and developing equivalents for the new ff package for large datasets I came across two questions:
1) is it safe to use duplicated.default(), unique.default() and match() on arbitrary lists? If so, we can speed up duplicated.array and friends considerably by using list() instead of paste(collapse="\r")
2) while
2011 Jul 21
3
R versions and PostScript files
Dear R users,
I have a desktop computer and a laptop, both of them with Ubuntu Lucid. The
former has R2.10 installed from Ubuntu repositories (this is the most recent
version in the repositories), while the latter has R2.13 from the CRAN
repositories.
I noticed that postscript files generated with R2.10 are "better" than
files generated with the latest release of R, in particular for
2003 Mar 11
2
Scripts netlogon
Hi people
The script of netlogon is not loaded with login (exactly configured and
its respctivas folders and archives they exist and they are with permission
777, view smb.conf) scripts is being loaded manually.Anybody know why?
Connectiva 8,0
Samba 2,2,7
W2k Stations incapacitated criptografia.
It follows below smb.conf:
[global]
workgroup = MEDITEc
server string = Meditec Server %v
hosts
2003 Mar 05
1
Final problems in the samba
In a domain PDC Samba the following problems exist:
1-The script of netlogon is not loaded with login (exactly configured and
its respctivas folders and archives they exist and they are with permission
777, view smb.conf) scripts is being loaded manually.Anybody know why?
2-After the user if to login in, when it try acess any folder in
the server the Samba asks user and password again, (the
same
2010 Mar 18
1
R takes long time to open
Hello.
Until today I've been using R2.9 and since today R2.10 (on a PC).
In both of them it takes about 20 sec for the prompt to appear IN R
console after I start R. And every time it says: "Previous saved work
space restored" - even if I have not saved any workspace or, in case
of R2.10 - even though I have not used it once.
In the older versions - R would start within 2-3 sec.
Is
2012 Jul 23
1
duplicated() variation that goes both ways to capture all duplicates
Dear all
The trouble with the current duplicated() function in is that it can
report duplicates while searching fromFirst _or_ fromLast, but not
both ways. Often users will want to identify and extract all the
copies of the item that has duplicates, not only the duplicates
themselves.
To take the example from the man page:
> data(iris)
> iris[duplicated(iris), ] ##duplicates while
2007 Apr 23
1
data recoding problem
Hi R experts,
I have a data recoding problem I cant get my head around - I am not that
great at the subsetting syntax. I have a dataset of longitudinal
toxicity data (for multistate modelling) for which I want to also want
to do a simple Kaplan-Meier curve of the time to first toxic event.
The data for 2 cases presently looks like this (one with an event, the
other without), with id representing
2003 Aug 01
0
Moving from a machine with 2.2.1a to another machine with 2.2.5
Hi!
We are trying to move from an old machine running SAMBA 2.2.1a to a new machine running RH8 and SAMBA 2.2.5.
We tar'ed all shares and moved them over and we then copied /etc/passwd , /etc/group, smbpasswd , secrets.tdb , smb.conf to the new machine.
A clip of the global section of smb.conf looks like this:
[global]
domain master = yes
logon path = \\%N\profiles\%u
encrypt passwords =
2011 Feb 22
1
error with 'hash' library
Hello,
I'm using R2.10 on Windows 2000 and I'm having trouble installing the 'hash'
library. This is the error I get:
> library(hash)
_ _
___ _ __ ___ _ __ __| | __ _| |_ __ _
/ _ \| '_ \ / _ \ '_ \ / _` |/ _' | __/ _' |
| (_) | |_) | __/ | | | (_| | (_| | || (_| |
\___/| .__/ \___|_| |_|\__,_|\__,_|\__\__,_|