Displaying 20 results from an estimated 30000 matches similar to: "help with functions"
2009 Sep 01
2
cbind objects using character vectors
Dear list,
I have a character vector such vec.names<- c("a", "b")
It happens that I have also two R objects called "a" and "b" that I would
like to merge. Is it possible to
do something like cbind(vec.names[1], vec.names[2]) ending up with the same
result as cbind(a,b)
Bellow is a reproducible example of what I need to to:
dat<-
2019 Jul 04
4
cannot set filesystem permissions on shares
> >>>> Run this : getfacl /home/users
> >>> getfacl: Removing leading '/' from absolute path names
> >>> # file: home/users
> >>> # owner: root
> >>> # group: A\\domain\040admins
> >>> user::rwx
> >>> user:root:rwx
> >>> user:10512:rwx
> >>> group::rwx
> >>>
2020 Sep 30
4
some domains resolving issues
Hello.
I have two records in dialplan:
exten => testA,1,Dial(PJSIP/outgoing/sip:thetestcall at sip.linphone.org)
exten => testB,1,Dial(PJSIP/outgoing/sip:thetestcall at iptel.org)
Calling testA works fine while testB fails with "CONGESTION".
Adding debug for console shows that pjsip_resolver.c does
`New queries added, performing parallel resolution again`
for linphone after
2005 Mar 05
1
Problem with plotting size/location on variation of star/segment plot
Dear R gurus,
I'm running into a problem with some modified segment plots I've coded
using stars(). What I am trying to do is superimpose two series of data
along with radial axes markers in a 2x2 graphics frame. This is working
fine now, except for the hitch: my plots overfill the frame and are not
centered within it (on my runs they always end up looking like they've
been budged
2005 Oct 24
0
error messages in matrix multiplication
Hello,
I am hoping for some advice on using R - my experience with statistical
programs has been limited to SPSS.
I have been using a textual analysis program and wanted to add some rigour
to making a choice between two models of self-reported cannabis effects. To
do this, I need to compare the two resulting word co-occurence matrices.
The program itself,doesn't offer this as an option
2019 Jul 03
4
cannot set filesystem permissions on shares
> > On the file serever:
> > Collected config --- 2019-07-03-10:27 -----------
> >
> > Hostname: srv
> > DNS Domain: a.b.hu
> > FQDN: srv.a.b.hu
> > ipaddress: 10.0.3.15 192.168.0.8
> > -----------
> > Samba is running as a Unix domain member
> > -----------
> >
> > This computer is running Debian 10.0 x86_64
> >
2012 Mar 30
1
mode & mask
dear all
trivial kind of question for which I do apologize, but it's
sort of puzzling
in a share when a windows client creates something samba
sets it as 755, yet another user can still delete, in this
case a folder
which part of configuration fixes it so it would behave as
expected?
what I have by default is:
acl check permissions = Yes
acl group control = No
acl
2009 Nov 18
3
Re ading multiple Excel 2007 files with a loop
I have several hundred Excel 2007 data files in a folder. I would like to
read every file in a single given folder using a loop.
I have searched the FAQ, the forum archives here, other or older R boards
and the R Import / Export documentation, and have asked some very
knowledgeable R users without learning of a solution. I hope someone here
can help.
I understand that the most common
2007 Jul 17
0
write.dcf/read.dcf cycle converts missing entry to "NA" (PR#9796)
Full_Name: Bill Dunlap
Version: 2.5.0
OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 6)
Submission from: (NULL) (24.17.60.30)
If you read a dcf file with read.dcf(file,fields=c("Field",...))
and the file does not contain the desired field "Field",
read.dcf puts a character NA for that entry in its output
matrix. If you then call write.dcf, passing it the output
of
2010 Jan 29
2
Explanation w.r.t. rbind, please!
This is what I tried:
> num.vec <- c(12.34,56.78,90.12,34.56)
> names(num.vec)<-c("first","second","third","fourth")
> num.vec
first second third fourth
12.34 56.78 90.12 34.56
> seq<-(1:4)
> num.mat<-rbind(num.vec,seq)
> num.mat
first second third fourth
num.vec
2005 Nov 11
2
Rsync, subversion and directories
Hi all,
I'm attempting to build a backup system using rsync and subversion.
I have a samba share which I would like to replicate via rsync. The
replicated copy is under subversion control to store a 'history'.
This appears to work well until a directory is removed on the primary
(non-backup) file system.
The rsync command which I assumed would do the job:
$ rsyc -zrv
2013 Oct 11
3
matrix values linked to vector index
Hi,
In the example you showed:
m1<- matrix(0,length(vec),max(vec))
1*!upper.tri(m1)
#or
?m1[!upper.tri(m1)] <-? rep(rep(1,length(vec)),vec)
#But, in a case like below, perhaps:
vec1<- c(3,4,5)
?m2<- matrix(0,length(vec1),max(vec1))
?indx <- cbind(rep(seq_along(vec1),vec1),unlist(tapply(vec1,list(vec1),FUN=seq),use.names=FALSE))
m2[indx]<- 1
?m2
#???? [,1] [,2] [,3] [,4] [,5]
2013 Dec 10
0
[LLVMdev] libcang python bindings and working with macros question
How do I obtain the data that a macro points to, both expanded and
unexpanded.
in example I have a file named "blah.c" with the following.
"""
#define TESTA 1
#define TESTB 2 + TESTA
"""
I modified util.py's get_cursor to look at the displayname also, as
spelling won't match the macroname.
"""
for cursor in children:
if
2013 Dec 11
0
[LLVMdev] libcang python bindings and working with macros question
How do I obtain the data that a macro points to, both expanded and
unexpanded.
in example I have a file named "blah.c" with the following.
"""
#define TESTA 1
#define TESTB 2 + TESTA
"""
I modified util.py's get_cursor to look at the displayname also, as
spelling won't match the macroname.
"""
for cursor in children:
if
2007 Jul 18
1
(PR#9796) write.dcf/read.dcf cycle converts missing entry
BIll,
Thanks.
I am seeing some problems here, for example when all the fields are
missing, or all the fields in a row are missing. I've fixes for those,
and will commit to R-devel shortly.
On Tue, 17 Jul 2007, bill at insightful.com wrote:
> Full_Name: Bill Dunlap
> Version: 2.5.0
> OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 6)
> Submission from: (NULL)
2009 Jul 05
2
From "list" to "matrix"
Suppose, I have following
vec <- vector("list", length=3)
for (i in 1:3) vec[[i]] <- matrix(rnorm((i+3)*2), (i+3))
vec
Now I want to change the type of "vec" from list to a matrix with (4+5+6)
rows and 2 columns. How can I do that?
Thanks and regards,
--
View this message in context: http://www.nabble.com/From-%22list%22-to-%22matrix%22-tp24345922p24345922.html
Sent
2006 Aug 22
2
listing a sequence of vectors in a matrix
Hi,
I'm having trouble applying the matrix function. I'd like to be able to
create a matrix of vectors filled in by rows, which are not all the same
length, and so I need it to fill in NAs where applicable.
It's easiest to explain with a simple example:
Suppose vec = c(3,4,5). How can I form a matrix of the vectors 1:vec[j]
for j=1:3?
i.e. 1 2 3 NA NA
1 2 3 4
2012 Oct 08
1
Any better way of optimizing time for calculating distances in the mentioned scenario??
Dear All,
I'm dealing with a case, where 'manhattan' distance of each of 100
vectors is calculated from 10000 other vectors. For achieving this,
following 4 scenarios are tested:
1) scenario 1:
> x<-read.table("query.vec")
> v<-read.table("query.vec2")
> d<-matrix(nrow=nrow(v),ncol=nrow(x))
> for (i in 1:nrow(v)){
+ d[i,]<-
2017 Jul 25
0
[Questions] About small files performance
Dear all
Recently, i did some work to test small files performance for gnfsv3
transport. Following is my scenario.
#####environment#####
==2 cluster nodes(nodeA/nodeB)==
each is equipped with E5-2650*2, 128G memory and 10GB*2 netcard
nodeA: 10.254.3.77 10.128.3.77
nodeB: 10.254.3.78 10.128.3.78
==2 stress nodes(clientA/clientB)==
each is equipped with E5-2650*2, 128G memory and 10GB*2
2004 May 26
2
Samba 3 and LDAP - Error loading profiles
Hi,
I'm setting up Samba with ldap backend and everythin appears to be working
correctly except for profiles.
Using:
samba-3.0.2
openldap-2.1.26
smbldap-tools-0.8.4
When a user 'testa' tries to logon from a Win2K system that has joined the
domain he gets the following error message:
"Windows did not load your roaming profile and is attempting to log you on
with your local