Displaying 20 results from an estimated 20000 matches similar to: "Simple Date problems with cbind"
2007 Jan 31
0
Fwd: Re: Simple Date problems with cbind
--- John Kane <jrkrideau at yahoo.ca> wrote:
> Date: Wed, 31 Jan 2007 08:32:03 -0500 (EST)
> From: John Kane <jrkrideau at yahoo.ca>
> Subject: Re: [R] Simple Date problems with cbind
> To: marc_schwartz at comcast.net
>
> My thanks to Marc, Tony Plate, Phil Spector & Mark
> Leeds.
>
> I totally missed the significance of the Y not y
> issue
>
2009 Apr 22
4
Problem with "apply"
Hi R users,
I am trying to assign ages to age classes for a large data set (123,000 records), and using a for-loop was too slow, so I wrote a function and used apply. However, the function does not properly assign the first two classes (the rest are fine). It appears that when age is one digit, it does not get assigned properly.
I tried to provide a small-scale work-up (at the end of the
2004 Oct 01
2
multiple dimensional diag()
Hi
I have two arbitrarily dimensioned arrays, "a" and "b", with
length(dim(a))==length(dim(b)). I want to form a sort of
"corner-to-corner" version of abind(), or a multidimensional version
of blockdiag().
In the case of matrices, the function is easy to write and if
a=matrix(1,3,4) and b=matrix(2,2,2), then adiag(a,b) would return:
[,1] [,2] [,3] [,4] [,5]
2004 Sep 08
3
do.call("[", ...) question
Hi again everyone
I have an arbitrarily dimensional array "a" and a list "jj" of length
length(dim(a)). The elements of jj are vectors of indexes.
How do I use do.call() to extract a[ jj[[1]], jj[[2]], jj[[3]], ...] ?
Toy example follows:
a <- matrix(1:30,5,6)
jj <- list(5:1,6:1)
I want the following
a[ jj[[1]],jj[[2]] ]
How do I do this?
OBAttempts:
2013 Apr 17
4
[LLVMdev] Loop vectorizer behaviour for 2D arrays and parallel annotation
Hello,
I am trying to vectorize the following loop but the vectorizer says:
"Found a possible write-write reorder" and does not vectorize.
Why?
for (j=0; j < 8; j++)
{
jj = j << 3;
m2[j][0] = diff[jj ] + diff[jj+4];
m2[j][1] = diff[jj+1] + diff[jj+5];
m2[j][2] = diff[jj+2] + diff[jj+6];
m2[j][3] = diff[jj+3] + diff[jj+7];
m2[j][4] = diff[jj ] -
2011 Mar 03
3
top and allocation issues
In a context where exceptions are caught, I ran
the fragment:
cerr << "allocating" << endl;
char* arr[100];
for (int jj = 0; jj < 10; ++jj)
{
cerr << "jj = " << jj << endl;
arr[jj] = new char[2000000000];
sleep (30);
}
sleep (10);
for (int jj = 0; jj < 10; ++jj)
delete[] arr[jj];
cerr
2000 Dec 10
1
seq(0.05,0.95,by=0.002) and logical error
Regardless of which version -- 1.1.1 or 1.2.0 (2000-11-27) -- with a fresh
"directory" (i.e. no .RData), I am getting an extremely weird result.
R : Copyright 2000, The R Development Core Team
Version 1.2.0 Under development (unstable) (2000-11-27)
> jj _ seq(0.05,0.95,by=0.002)
> sum(jj==0.75) ## WRONG ANSWER
[1] 0
> 0.05 + 350*.002 ## Double check that 0.75 is in jj
[1]
2009 May 14
2
[LLVMdev] alias analysis results
Hi there,
I am trying to understand how AliasAnalysis works out in LLVM. I used
the following simple test-case (test4.c):
--
void test()
{
int *jj, *kk;
int aa = 100;
jj = &aa;
*jj = 300;
}
int main()
{
test();
return 0;
}
--
Then I did "llvm-gcc -emit-llvm -c -o test4.bc test4.c" to get bc. I
tried the following 2 ways to get what I expect to get as
2009 Oct 23
1
access elements of a named list using a factor
Hi
I have a factor 'f' and a named list 'jj'.
I want names(jj) to match up with levels(f).
How do I use levels(f) to access elements of jj?
> f <- factor(c("pigs","pigs","slugs"))
> f
[1] pigs pigs slugs
Levels: pigs slugs
>
> jj <- list(pigs=1:10,slugs=1:3)
My attempts to produce jj$pigs all give errors:
>
2005 Jun 13
3
extracting components of a list
Hi
how do I extract those components of a list that satisfy a certain
requirement? If
jj <- list(list(a=1,b=4:7),list(a=5,b=3:6),list(a=10,b=4:5))
I want just the components of jj that have b[1] ==4 which in this case
would be the first and
third of jj, viz list (jj[[1]],jj[[3]]).
How to do this efficiently?
My only idea was to loop through jj, and set unwanted components to
NULL,
Samba share not working: getpwuid(1000) failed, Failed to finalize nt token & NT_STATUS_UNSUCCESSFUL
2019 Nov 26
3
Samba share not working: getpwuid(1000) failed, Failed to finalize nt token & NT_STATUS_UNSUCCESSFUL
I have a small home network with server and 5 clients all on an internal
LAN with private IPs.
Samba, Version 4.7.6-Ubuntu, file sharing is not working on the server
for any of the 5 clients. I have tried both mount.cifs and smbclient.
The same errors are thrown in the server's samba logs for all connection
attempts, regardless of how the client tries to connect: getpwuid(1000)
failed,
2004 Jan 14
1
arrows on contour lines
Hello everybody
I'm using contour() to draw streamlines of potential flow, eg
jj <- seq(from= -4, to=4,len=20)
jj <- outer(jj,jj,function(x,y){x})+1i*outer(jj,jj,function(x,y){y})
f <- function(x){x^2}
contour(Im(f(jj)), nlevels=44 , labels="")
How best to put arrows on the contour lines to show the direction of flow?
(ie I want contour lines looking like
2015 Jan 07
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 07/01/15 10:51, Jason Long wrote:
> Thank you.
> I changed my "krb5.conf" as below :
>
>
> [logging]
> default = FILE:/var/log/krb5libs.log
> kdc = FILE:/var/log/krb5kdc.log
> admin_server = FILE:/var/log/kadmind.log
>
> [libdefaults]
> default_realm = JASONDOMAIN.JJ
> dns_lookup_realm = false
> dns_lookup_kdc = true
> ticket_lifetime = 24h
2015 Jan 06
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 06/01/15 06:17, Jason Long wrote:
> Thanks.
> My domain name is "jasondomain.jj" and backend is "jasondomaini".
No, your realm name is "jasondomain.jj" and it would seem that your
domain name is "jasondomaini", the domain name can also be known as the
'workgroup' name.
Set smb.conf to match this:
[global]
workgroup =
2012 Jul 13
1
R combining many vectors of predictable name into one date frame
G'day R (power) users,
I have a many vectors, called:
ib1
ib2
ib3
...
ib100
and I would like them in one data frame (df) such that:
> df
ib1 ib2 ib3 ib4 ..... ib100
x x x x x
x x x x x
x x x x x
I have attempted:
hold.list <- list(objects(pattern="ib"))
df <- data.frame(hold.list)
but that
2009 May 15
1
[LLVMdev] alias analysis results
Hi Eli, thanks for the answers helping out.
I tried to understand further - got another example:
void test()
{
int *jj, *kk;
int aa = 100;
jj = &aa;
*jj = 300;
kk = jj;
*kk = 400;
}
int main()
{
test();
return 0;
}
bc looks like the following (only test() part)
define void @test() nounwind {
entry:
%aa = alloca i32 ; <i32*> [#uses=2]
%kk =
2007 Apr 17
1
no visible binding for global variable
Hello everyone
I am trying to get one of my packages through R's QC.
The package is clean for me under R-2.4.1, R-2.5.0, and
R-devel, but Kurt gets
>
> * checking R code for possible problems ... WARNING
> hypercube: no visible binding for global variable ?f?
Function hypercube() [cut-&-pasted below] is intended to
return an adjacency matrix for an n-dimensional
2015 Jan 05
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 05/01/15 11:09, Jason Long wrote:
>
>
> Thank you.
>
> My Windows is Windows server 2008 R2.
> About realm name, My domain name is "JASONDOMAIN.JJ".
> My Windows not have any Workgroup Name. It is Domain.
>
>
> Thanks
>
>
>
>
> On Monday, January 5, 2015 1:05 AM, Rowland Penny <rowlandpenny at googlemail.com> wrote:
> On 05/01/15
2010 Jun 11
4
script question
Hi all,
in a script if I have:
VERSION="3.2.0"
I can do:
echo jj-$VERSION-jj
and get jj-3.2.0-jj
however if I do:
echo jj_$VERSION_jj
I get jj_
How do I get the $VERSION to work with the underscores like the dashes do.
Thanks,
Jerry
2015 Jan 05
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 05/01/15 07:02, Jason Long wrote:
> Thanks a lot.
> I changed the below lines to correct domain name :
>
> idmap config JASONDOMAIN : range = 10000-999999
> idmap config JASONDOMAIN : schema_mode = rfc2307
>
> and after join, the command "net rpc testjoin" show same error :
>
> Unable to find a suitable server for domain JASONDOMAINI
> Join to domain