Displaying 18 results from an estimated 18 matches for "myattr".
Did you mean:
mattr
2008 Oct 29
0
Propagate vector attributes to data frame
Hello,
I've got a function that takes a numeric vector (x), computes a
transformation value (myAttr) for x, transforms x according to myAttr
and then sets myAttr as an attribute of x before returning x, so I can
easily know what myAttr was used (basically it's a power transformation
and myAttr is the lambda).
myFunction.numeric <- function(x, ...) {
myAttr <- calcMyAttr(x, ...)
x <...
2019 Nov 18
2
BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"
...t;>
> >>
> >> > Should I report this one to Bugzilla?
> >> yes, please.
> >>
> >> > /Henrik
>
> > A shorter example is
>
> >> p1 <- .Primitive('+') ; p2 <- p1 ; attr(p1, "myattr") <- 1 ; p2
>
> > function (e1, e2)? .Primitive("+")
> > attr(,"myattr")
> > [1] 1
>
> beautiful ; thank you, Tomas !
>
> > Builtins have referential semantics in R (like e.g. environments, but
> > also s...
2019 Nov 18
2
BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"
...-------
>
> > Is this expected?
>
> no. (at least not by 99.999% of R users)
>
>
> > Should I report this one to Bugzilla?
> yes, please.
>
> > /Henrik
A shorter example is
> p1 <- .Primitive('+') ; p2 <- p1 ; attr(p1, "myattr") <- 1 ; p2
function (e1, e2)? .Primitive("+")
attr(,"myattr")
[1] 1
Builtins have referential semantics in R (like e.g. environments, but
also some other types).
Tomas
>
> ______________________________________________
> R-devel at r-project.org mailing li...
2019 Nov 26
0
BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"
For what it's worth, the current behavior seems to have begun starting
with version 3.6.0. If I run in version 3.5.3:
> p1 <- .Primitive('+') ; p2 <- p1 ; attr(p1, "myattr") <- 1 ; p2
function (e1, e2)? .Primitive("+")
> On 11/18/19 10:45 AM, Martin Maechler wrote:
> >>>>>>/Tomas Kalibera />>>>>>/on Mon, 18 Nov 2019 09:36:14 +0100 writes: />/> On 11/18/19 9:18 AM, Martin Maechler wrote: />/>>...
2019 Nov 18
0
BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"
...o. (at least not by 99.999% of R users)
>>
>>
>> > Should I report this one to Bugzilla?
>> yes, please.
>>
>> > /Henrik
> A shorter example is
>> p1 <- .Primitive('+') ; p2 <- p1 ; attr(p1, "myattr") <- 1 ; p2
> function (e1, e2)? .Primitive("+")
> attr(,"myattr")
> [1] 1
beautiful ; thank you, Tomas !
> Builtins have referential semantics in R (like e.g. environments, but
> also some other types).
> Tomas
[aarh.. I...
2018 Dec 15
4
Disabling LLVM_ATTRIBUTE_ALWAYS_INLINE for development?
...tringRef, I get 'error: Couldn't lookup symbols:
__ZN4llvm9StringRefC1EPKc'.
As an example, most recently this happened to me when playing around
with llvm::AttributeSet, having attached lldb to an opt built with
-DCMAKE_BUILD_TYPE="Debug":
(lldb) e $AS.hasAttribute("myattr")
error: Couldn't lookup symbols:
__ZN4llvm9StringRefC1EPKc
Despite having built in a "Debug" configuration,
LLVM_ATTRIBUTE_ALWAYS_INLINE makes it very difficult to debug LLVM.
How do you all deal with or work around this problem? Is there a good
way to do so? If not, w...
2011 Nov 23
1
Losing custom attributes
...ase help me to insert a new
row at frist or middle position so that my custom attribute is not lost.
Here is what I did.
age<-c(15,20,18)
weight<-c(40,42,30)
### creating my data frame ####
mydata <- data.frame(age,weight)
### creating data frame level attribute ####
attr(mydata,"myattr")<-c("myinfo")
### creating col level attribute for 'age' column ###
attr(mydata$age,"mycolattr")<-c("mycolinfo")
#### Checking attributes ###
attributes(mydata)
attributes(mydata$age)
### creating new row #####
newrow <- data.frame(age=16,...
2019 Nov 17
2
BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"
$ R --vanilla
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
...
> str(base::`+`)
function (e1, e2)
> plus <- structure(base::`+`, class = "plus")
> str(plus)
function (e1, e2)
- attr(*, "class")= chr "plus"
## Hmm ...
>
2011 Nov 23
2
SPSS F-test on change in R square between hierarchical models
...position so that my custom attribute is not lost.
>
> Here is what I did.
>
> age<-c(15,20,18)
> weight<-c(40,42,30)
>
> ### creating my data frame ####
> mydata <- data.frame(age,weight)
>
> ### creating data frame level attribute ####
> attr(mydata,"myattr")<-c("myinfo")
>
> ### creating col level attribute for 'age' column ###
> attr(mydata$age,"mycolattr")<-c("mycolinfo")
>
> #### Checking attributes ###
> attributes(mydata)
> attributes(mydata$age)
>
> ### creating new r...
2016 Apr 14
2
Previously extended schema not working in 4.4.0
...,DC=uk: 0x00020002
MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00020001
MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00000000
ERROR: incorrect attributeID values in replPropertyMetaData on
MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
Not fixing incorrect value 0x00290004 with 0xbd27f4d3 for myAttr in
replPropertyMetaData on MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
[this is repeated many times, for multiple objects]
[ sometimes ERROR: duplicate attributeID values ]
Please use --fix to fix these errors
Checked 4083 objects (110 errors)
Before I run again with --fix...
- I will take a...
2018 Dec 16
3
Disabling LLVM_ATTRIBUTE_ALWAYS_INLINE for development?
...__ZN4llvm9StringRefC1EPKc'.
> >
> > As an example, most recently this happened to me when playing around
> > with llvm::AttributeSet, having attached lldb to an opt built with
> > -DCMAKE_BUILD_TYPE="Debug":
> >
> > (lldb) e $AS.hasAttribute("myattr")
> > error: Couldn't lookup symbols:
> > __ZN4llvm9StringRefC1EPKc
> >
> > Despite having built in a "Debug" configuration,
> > LLVM_ATTRIBUTE_ALWAYS_INLINE makes it very difficult to debug LLVM.
> >
> > How do you all deal with or...
2014 Nov 07
4
[Bug 10925] New: non-atomic xattr replacement in btrfs => rsync --read-batch random errors
https://bugzilla.samba.org/show_bug.cgi?id=10925
Bug ID: 10925
Summary: non-atomic xattr replacement in btrfs => rsync
--read-batch random errors
Product: rsync
Version: 3.1.0
Hardware: All
URL: http://article.gmane.org/gmane.comp.file-systems.btrfs
/40013
OS: All
2016 Apr 14
2
Previously extended schema not working in 4.4.0
...g,DC=uk: 0x00020001
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00000000
> >
> ERROR: incorrect attributeID values in replPropertyMetaData on
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
> >
> > Not fixing incorrect value 0x00290004 with 0xbd27f4d3 for myAttr in
> > replPropertyMetaData on
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
> >
>
> Going back over the results of 'samba-tool dbcheck', it struck me
> just now
> that the errors flagged up only appear on objects previously created
> using
> my exte...
2018 Dec 17
2
Disabling LLVM_ATTRIBUTE_ALWAYS_INLINE for development?
...;> > > As an example, most recently this happened to me when playing around
>> > > with llvm::AttributeSet, having attached lldb to an opt built with
>> > > -DCMAKE_BUILD_TYPE="Debug":
>> > >
>> > > (lldb) e $AS.hasAttribute("myattr")
>> > > error: Couldn't lookup symbols:
>> > > __ZN4llvm9StringRefC1EPKc
>> > >
>> > > Despite having built in a "Debug" configuration,
>> > > LLVM_ATTRIBUTE_ALWAYS_INLINE makes it very difficult to debug LLVM.
&g...
2016 Apr 14
0
Previously extended schema not working in 4.4.0
...=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00020001
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00000000
>
ERROR: incorrect attributeID values in replPropertyMetaData on
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
>
> Not fixing incorrect value 0x00290004 with 0xbd27f4d3 for myAttr in
> replPropertyMetaData on MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk
>
Going back over the results of 'samba-tool dbcheck', it struck me just now
that the errors flagged up only appear on objects previously created using
my extended schema - these are exactly the same type of er...
2016 Apr 14
0
Previously extended schema not working in 4.4.0
...have now run 'samba-tool dbcheck --cross-ncs --fix' and it has
successfully fixed some errors; there were 110 previously, however there
are still 69 remaining after a second pass of dbcheck --fix.
The remaining errors seem to be mainly of this form:
ERROR: duplicate attributeID values for myattrib in replPropertyMetaData on
MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk
Fix replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk
by removing the duplicate value 0x00290003 for myattrib (keeping
0xbd27f44d5)? [YES]
[...]
ERROR: incorrect attributeID values in replPropertyMetaD...
2018 Oct 15
2
sys.call() inside replacement functions incorrectly returns *tmp*
...) )
massign (r, theta) = cart2polar (x, y)
Now, I'm considering a multiple assignment operator, so something like:
c (theta, r) $<-$ cart2polar (x, y)
And while we're on the topic, I'm also considering an attribute operator
(to access object attributes), something like:
myobject%$%myattribute
This would be similar to . in C++/Java or @ in S4.
And seems like something obvious that's missing from R.
Implementing an attribute read this way is easy, however, implementing an
attribute assignment this way (without language level support) is difficult.
kind regards
Abs
[[alterna...
2016 Apr 11
5
Previously extended schema not working in 4.4.0
Hi,
About a year ago (I think I was using v4.2.x at the time), I extended the
schema of my Samba AD. This worked just fine and since then I have been
able to create and edit objects from my custom schema via ADSIEdit. This
worked fine under 4.3.x as well - the last such object I successfully
created was just over two months ago, at which point I was running some
variant of 4.3.x (probably 4.3.5).