similar to: Question on apply() with more information...

Displaying 20 results from an estimated 1000 matches similar to: "Question on apply() with more information..."

2006 Jul 21
1
Merge two dataframes of different column length and row length by two columns at a time
Hello, I have two dataframes of the following structures: str(a) `data.frame': 1354896 obs. of 14 variables: $ V1 : int 0 1 2 3 4 5 6 7 8 9 ... $ V2 : int 0 0 0 0 0 0 0 0 0 0 ... $ V3 : int 74 12305 103 12337 46 57 12446 90 12097 79 ... $ V4 : num 11.8 1529.2 17.8 1579.4 6.7 ... $ V5 : int 88 11040 104 11557 56 58 11040 74 10991 81 ... $ V6 : num 15.5 1921.3 20.3
2006 Jul 28
1
Calculate x-values from a spline
Hello, I calculate splines from messured points(x,y) of an unknown function f(x). e.g. x <- c(0.004115, 0.012345, 0.037037, 0.111110, 0.333330, 1.000000) y <- c(37, 50, 45, 60, 50, 66) w <- c(0.8540541, 0.8320000, 0.8822222, 0.7983333, 0.8220000, 0.8151515) as weights f <- smooth.spline(x,y,w) Now I have y-values and want to calculate the x-value(s) from this spline. There is no
2007 Jun 08
4
match rows of data frame
Hi R-experts, I have a data frame (A) , and a subset (B) of this data frame. I am trying to create a new data frame which gives me all the rows of B, plus the 5th next row(occuring in A). I have used the below code, but it gives me all 5 rows after the matching row. I only want the 5th. FiveDaysLater <- A[c(sapply(match(rownames(B),rownames(A)), seq, length=6))),] Any guidance much
2005 Dec 13
1
correct C function usage
Hello, I am not sure if I am interfacing with C correctly and _safely_ or if there is a better way esp. with regards to terminating the "returned" array. I am trying to fill an int array with values whose actual size is determined in the C function and is always maximally as large as length(values). I also don't understand the purpose of $ab in the example: conv <- function(a,
2009 Sep 10
1
trouble with custom type on 0.24.8
I''m having trouble getting a simple custom type to work. Clients are giving me the following error: "Could not retrieve catalog: Could not find resource type zypper_repo at /etc/puppet/manifests/nodes/mgt.pp:33 on node <host.fqdn>" The custom type is present in the /var/lib/puppet/lib/puppet/type directory on both clients and server (via pluginsync), but it''s
2007 Aug 18
0
Offline Folders on Win XP issues.
Hi, I have searched for a problem similar to mine, but haven't seen it reported. Problem: Using offline folders on Win XP, I can: * Synchronize * Work locally on Win XP * Synch back to Samba I cannot: * Open OpenOffice files marked as offline *when I'm connected* to my samba server. I get a "file not found" response when double-clicking in an Win Explorer window. However, the
2010 Dec 09
4
String to array
Hello, how convert x in xarray (numbers)? > x [1] "0 - 13" > y [1] "11 - 23" > z [1] "220 - 9" > xarray [1] 0 13 > yarray [1] 11 23 > zarray [1] 220 9 Thanks, RMB
2020 Apr 28
0
[PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance
From: Mike Stunes <mstunes at vmware.com> To avoid a future VMEXIT for a subsequent CPUID function, cache the results returned by CPUID into an xarray. [tl: coding standard changes, register zero extension] Signed-off-by: Mike Stunes <mstunes at vmware.com> Signed-off-by: Tom Lendacky <thomas.lendacky at amd.com> [ jroedel at suse.de: - Wrapped cache handling into
2017 Nov 30
0
[PATCH v18 05/10] xbitmap: add more operations
On Thu, Nov 30, 2017 at 10:35:03PM +0900, Tetsuo Handa wrote: > According to xb_set_bit(), it seems to me that we are trying to avoid memory allocation > for "struct ida_bitmap" when all set bits within a 1024-bits bitmap reside in the first > 61 bits. > > But does such saving help? Is there characteristic bias that majority of set bits resides > in the first 61 bits,
2004 Mar 02
0
an extension to 'array'
1. I want to extend the 'array' class, and prefer to use S4 in the belief that this is the best structure for new projects (as the documentation says). I actually wish to do something similar to the excellent Oarray by Jonathan Rougier, but as this class is S3, I can't see how to extend it by S4. Am I being dumb here? 2. Seeking then to define a similar class in S4, my principal
2020 May 06
0
[PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance
On 5/6/20 1:08 PM, Mike Stunes wrote: > > >> On Apr 28, 2020, at 8:17 AM, Joerg Roedel <joro at 8bytes.org> wrote: >> >> From: Mike Stunes <mstunes at vmware.com> >> >> To avoid a future VMEXIT for a subsequent CPUID function, cache the >> results returned by CPUID into an xarray. >> >> [tl: coding standard changes, register zero
2004 Oct 01
1
cumsum over a list or an array
Hello list, my question is related to svd of a matrix: b=matrix(rnorm(50),10,5) mysvd=svd(b) I would like to compute each xi where xi = di* ui %*% t(vi). I do it by : xlist=sapply(1:ncol(b), function(x1,y) y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd,simplify=F) # result is a list xarray=array(sapply(1:ncol(b), function(x1,y) y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd),c(nrow(b),ncol(b),ncol(b))) #
2020 Jan 16
1
[PATCH 2/2] Win::Hivex::Regedit: Ignore comments
--- perl/lib/Win/Hivex/Regedit.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm index 2b17036..f0dbb50 100644 --- a/perl/lib/Win/Hivex/Regedit.pm +++ b/perl/lib/Win/Hivex/Regedit.pm @@ -153,8 +153,8 @@ sub reg_import #print STDERR "reg_import: parsing <<<$_>>>\n";
2010 Oct 06
1
R getting slower until it breaks...
Hello R-users, I'm currently facing a pretty hard problem which I'm hopping you'll be able to help me with. I'm using R to create images. That alone is not the problem, the problem is that I'm using R to create 168 000 images... My code (which is given below) use different package (raster and rgdal) to import a image (size 20gig) and divide it into 168 000 pictures that are
2003 Aug 07
2
Newbie Issue
Hi All, I recently purchased the Asterisk Developer's Kit (TDM) to try out Asterisk. After following the directions in the Digium's FAQ topic entitled "Q. How do I configure my TDM40B and X100P?", I'm receiving the following error: WARNING[1074428608]: File chan_zap.c, Line 6748 (load_module): Ignoring rxwink ERROR[1074428608]: File chan_zap.c, Line 6692 (load_module):
2020 May 20
2
[PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance
On Tue, Apr 28, 2020 at 05:17:14PM +0200, Joerg Roedel wrote: > From: Mike Stunes <mstunes at vmware.com> > > To avoid a future VMEXIT for a subsequent CPUID function, cache the > results returned by CPUID into an xarray. > > [tl: coding standard changes, register zero extension] > > Signed-off-by: Mike Stunes <mstunes at vmware.com> > Signed-off-by: Tom
2020 May 20
2
[PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance
On Tue, Apr 28, 2020 at 05:17:14PM +0200, Joerg Roedel wrote: > From: Mike Stunes <mstunes at vmware.com> > > To avoid a future VMEXIT for a subsequent CPUID function, cache the > results returned by CPUID into an xarray. > > [tl: coding standard changes, register zero extension] > > Signed-off-by: Mike Stunes <mstunes at vmware.com> > Signed-off-by: Tom
2003 Sep 09
1
Samba3: group mapping with samba PDC, LDAP account flags
Hello again, this mainly affects documentation: a) net groupmap is a fine thing. Though: is it optional or do I have to map some groups for proper client operation ( W2k/XP pro) ? If so, which Windows groups have to be mapped? b) There are "Account flags" both visible in the LDAP directory as well as in pdbedit's output. The examples always refer to UX, while smbpasswd just sets
2003 Sep 18
1
smbpasswd -a ldapsam problem
Hello, I noticed the following issue: when I add the default configuration for ldapsearches from the Howto collection ?10.4.4.6, example 10.2 ldap filter = (&(uid=%u)(objectclass=sambaSamAccount)) to smb.conf I cannot run smbpasswd -a [username] anymore. It works fine without the ldap filter statement. I noticed that the ldap queries are different with ldap filter activated ( from the
2002 Feb 25
1
Solution: Samba-2.2.3a and Win95?
Hi out there, i got a very good hint to the solution of the problem with the error-message: 2002/02/25 15:38:52, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 10.170.20.8: code = 0x0 The hint was from Demerson Zounar: > I faced this problem some time ago, and the solution was an absence of the > parameter netbios name in smb.conf.