similar to: Function output difficulties

Displaying 20 results from an estimated 2000 matches similar to: "Function output difficulties"

2011 Jan 10
5
Changing a logical matrix into a numeric matrix
Hi, I would like to turn my TRUE/FALSE matrix into a 1/0 matrix (i.e. True=1 and False=0) [,1] [,2] [,3] [1,] TRUE FALSE FALSE [2,] TRUE TRUE FALSE [3,] TRUE TRUE TRUE [,1] [,2] [,3] [1,] 1 0 0 [2,] 1 1 0 [3,] 1 1 1 Is there a quick way of doing this without a loop? Thanks Emma -- View this message in context:
2011 Jan 06
5
How to join matrices of different row length from a list
Hi, I have several matrix in a list, for example: e [[1]] [,1] [,2] [1,] 1 3 [2,] 2 4 [[2]] [,1] [,2] [1,] 1 4 [2,] 2 5 [3,] 3 6 [[3]] [,1] [,2] [1,] 2 1 I would like to join them by column i.e. [,1] [,2] [,3] [,4][,5] [,6] [1,] 1 3 1 4 2 1 [2,] 2 4 2 5 NA NA [3,] NA NA 3 6 NA NA I have tried
2010 Nov 04
2
Matrix Manipulation
Hi, Is there a quick way to go from this matrix: > A [,1] [,2] [,3] [1,] 1 1 1 [2,] 2 2 2 [3,] 3 3 3 [4,] 4 4 4 [5,] 5 NA 5 [6,] NA NA 6 [7,] NA NA NA to this matrix: > B [,1] [,2] [,3] [1,] 1 NA NA [2,] 2 NA 1 [3,] 3 1 2 [4,] 4 2 3 [5,] 5 3 4 [6,] NA 4 5 [7,] NA NA 6
2011 Jan 07
2
Summing over specific columns in a matrix
Hi, I would like to sum some specific columns in my matrix- for example, my matrix looks like this: [,1] [,2] [,3] [,4] [,5] [1,] 1 NA NA NA NA [2,] 2 1 NA 1 NA [3,] 3 2 1 2 1 [4,] 4 3 2 3 2 [5,] NA NA NA 4 3 [6,] NA NA NA 5 NA I would like to find the sum of the first two columns, the second two columns and
2009 Apr 14
4
cbind
I have a list of numbers with NAs as below: > A[,1] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [19] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [37] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [55] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [73] NA NA NA 62 78 98
2003 Jun 20
1
User can delete file when they have no read/write access
Im haveing a problem with my profiles share on my Samba 2.2.3 PDC server. I have a share like this: [profiles] path = /home/samba/profiles writeable = yes create mask = 0700 directory mask = 0700 browsable = no valid users = root,@smbusers The roaming profile works just fine with windows2k, and the users can't read the other profiles (they get a "access
2016 Dec 09
4
trouble installing centos 6.8
Dear all, I'm having trouble installing Centos 6.8, in a VM using VirtualBox, and hoping that someone on this distribution can help. I'm running VirtualBox Version 5.1.4 r110228 (Qt5.5.1). I downloaded .iso files for Centos 6.8: - CentOS-6.8-x86_64-bin-DVD1.iso - CentOS-6.8-x86_64-bin-DVD2.iso I proceeded to set up a new VM, selecting Linux / RedHat 64 bit. I selected the DVD1 iso
2016 Dec 09
3
trouble installing centos 6.8
On Fri, 9 Dec 2016 12:46:11 -0700 Emma M Birath wrote: > > I proceeded to set up a new VM, selecting Linux / RedHat 64 bit. I > > selected the DVD1 iso file above as "IDE Primary Master" and the DVD2 > > as "IDE Secondary Master". I have personally always had the best luck by installing the Live CD, and then customizing the installation from there. This
2023 Sep 22
1
[PATCH 6/9] drm/vc4: Annotate struct vc4_perfmon with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct vc4_perfmon. [1]
2023 Sep 22
1
[PATCH 6/9] drm/vc4: Annotate struct vc4_perfmon with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct vc4_perfmon. [1]
2023 Sep 22
1
[PATCH 6/9] drm/vc4: Annotate struct vc4_perfmon with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct vc4_perfmon. [1]
2010 Nov 30
2
excluding factors from sampling
Hello, I am trying to write a function that first requires randomly sampling items from a set of factors. I need to be able to sample from that same set of factors, but exclude the ones that have already been sampled previously. For example, suppose I have a set of items a-j (a,b,c,d,e,f,g,h,i, and j) and randomly sample a, c, and f from that group. How do I sample again from the larger group
2008 Dec 05
3
Logical inconsistency
Dear colleagues Please could someone kindly explain the following inconsistencies I've discovered when performing logical calculations in R: 8.8 - 7.8 > 1 > TRUE 8.3 - 7.3 > 1 > TRUE Thank you, Emma Jane [[alternative HTML version deleted]]
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
I don't think it's the same problem as you described. By printing I meant calling printf function and passing my global variable as one of the arguments. My code: Instruction* InstructionVisitor::incrementGlobalKey(Instruction* I) { IRBuilder<> Builder(I->getContext()); Builder.SetInsertPoint(I->getNextNode()); GlobalVariable* key =
2011 Apr 17
1
KDC and samba4
Hi, I'm using GIT pull from a few days ago. I am trying to get ssh working with kerberos when samba is the KDC. I am having trouble getting my machine keytabs to work. Here's some of the problems I have: 1) root at morannon:~# samba-tool export keytab /tmp/test.keytab added interface ip=192.168.1.11 nmask=255.255.255.0 added interface ip=127.0.0.1 nmask=255.0.0.0 added interface
2002 Mar 07
2
Access denied error
I have installed SAMBA (latest version) on my solaris machine, and I have gone through all the specified steps to configure it. I am trying to view the share (just "home") from a DOS window in Windows 2000, using : > net view \\myUNIXbox and am getting : System Error 5 has occurred. Access is denied Any suggestions greatly appreciated. Please reply to me at
2024 Feb 15
2
2024 X.Org Board of Directors Elections Nomination period is NOW
We are seeking nominations for candidates for election to the X.Org Foundation Board of Directors. All X.Org Foundation members are eligible for election to the board. Nominations for the 2024 election are now open and will remain open until 23:59 UTC on 26 February 2024. The Board consists of directors elected from the membership. Each year, an election is held to bring the total number of
2011 Dec 07
1
using sample
Hi, Can anyone help sort out the problem with the following script - I am a R newbie and I am self taught. obs.all = c() for(i in 1:386){ if (n.sim[i]>0){ obs = (1:133429)[event.details[,2] == i] obs.all = c(obs.all, sample(obs[obs < n.sim[i]], size = n.sim[i], replace=T)) } Basically, in the sample bit, I only want to get obs.all if the value of
2004 Oct 28
1
plot.baysian error = only 0's may mix with negative subscripts
Dear R users and developers After upgrading to Windows XP and R 1.9.1 and 2.0, I retried to execute plot.baysian() to a data set that I had used previously to plot with no problem in win2000 R1.8. The error I get is: Error in points(Mbar[-index], lods[-index], pch = ".") : only 0's may mix with negative subscripts Thanx in advance Dino P.S. I allready sent this message
2005 Mar 17
2
Repeated Measures, groupedData and lme
Hello I am trying to fit a REML to some soil mineral data which has been collected over the time period 1999 - 2004. I want to know if the 19 different treatments imposed, differ in terms of their soil mineral content. A tree model of the data has shown differences between the treatments can be attributed to the Magnesium, Potassium and organic matter content of the soil, with Magnesium being the