search for: att2

Displaying 14 results from an estimated 14 matches for "att2".

Did you mean: atl2
2007 Feb 22
4
Crosstabbing multiple response data
Using R version 2.4.1 (2006-12-18) on Windows, I have a dataset which resembles this: id att1 att2 att3 1 1 1 0 2 1 0 0 3 0 1 1 4 1 1 1 ratings <- data.frame(id = c(1,2,3,4), att1 = c(1,1,0,1), att2 = c(1,0,0,1), att3 = c(0,1,1,1)) I would like to get a cross tab of counts of co-ocurrence, which might resemble this:...
2007 Aug 25
5
How do I assign default values to model attribute
I have a model with a attribute named "code". Every time i create an instance I want the "code" to be initialized by making a call to "generate_code" method. How do i initialize model attributes in rails ?? thanks for help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2018 Mar 21
2
how to add a child to a child in XML
I am trying to add a child to a child using XML package in R. the following fails library(XML) node1 <- c("val1","val2","val3") names(node1) <- c("att1","att2","att3") root <- xmlNode("root", attrs=node1) node2 <- LETTERS[1:3] names(node2) <- paste("name",1:3,sep="") root <- addChildren(root,xmlNode("child1",attrs=node2)) node3 <- letters[1:3] names(node3) <- paste("name&...
2013 Jan 31
5
Modify objects in function
...arrived at a point where I have to think a little harder on implementation style (especially to spare users complex object handling). I have a function foo(), taking as input arguments two S4 objects of different class type foo <- function(o1, o2) { o1 at att1 <- producesomething() o2 at att2 <- producesomethingelse() } Of course, this functions does not change the objects in the global environment. Now I have two choices 1. Change the objects and return a list with both objects: foo <- function(o1, o2) { o1 at att1 <- producesomething() o2 at att2 <- producesomet...
2018 Mar 21
0
how to add a child to a child in XML
...On the other hand, you might consider using newXMLNode() instead of xmlNode() as it accepts a "parent = " argument. The alternative using newXMLNode() would look like... atts_root <- c("val1","val2","val3") names(atts_root) <- c("att1","att2","att3") root <- newXMLNode("root", attrs = atts_root) atts_child <- LETTERS[1:3] names(atts_child) <- paste("name",1:3,sep="") child <- newXMLNode("child",attrs = atts_child, parent = root) atts_grandchild <- letters[1:3] name...
2007 Sep 20
3
Ambiguities in vector
Hello all you helpful people out there! I am stil R Beginner using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 . Perhaps you haven?t understood my question in the mail yesterday. So I will try to describe my problem in a different way You see the tables. I would like to test the variables between the tables. But for some variables in some species , I have more than 1
2018 Mar 22
2
how to add a child to a child in XML
...On the other hand, you might consider using newXMLNode() instead of xmlNode() as it accepts a "parent = " argument. The alternative using newXMLNode() would look like... atts_root <- c("val1","val2","val3") names(atts_root) <- c("att1","att2","att3") root <- newXMLNode("root", attrs = atts_root) atts_child <- LETTERS[1:3] names(atts_child) <- paste("name",1:3,sep="") child <- newXMLNode("child",attrs = atts_child, parent = root) atts_grandchild <- letters[1:3] name...
2018 Mar 22
0
how to add a child to a child in XML
...d, you might consider using newXMLNode() instead of xmlNode() as it accepts a "parent = " argument. The alternative using newXMLNode() would look like... > > atts_root <- c("val1","val2","val3") > names(atts_root) <- c("att1","att2","att3") > root <- newXMLNode("root", attrs = atts_root) > > atts_child <- LETTERS[1:3] > names(atts_child) <- paste("name",1:3,sep="") > child <- newXMLNode("child",attrs = atts_child, parent = root) > > at...
2015 Feb 24
2
[LLVMdev] [RFC] Storing default function attributes on the module
...;re > overridable (i.e., they're overridable if they're target > defaults; they're not overridable if they've been explicitly > specified somehow). > > Here's some straw-man syntax: > > attributes #0 = { noreturn ssp? "att1"="1" "att2"="2"? } > > Where: > > - `noreturn` and `"att1"="1"` are required. > - `ssp` and `"att2"="2"` can be overridden (e.g., by `llc`). > > (Alternately, but equivalently: > > attributes #0 = { noreturn! ssp "a...
2018 Mar 22
1
how to add a child to a child in XML
...On the other hand, you might consider using newXMLNode() instead of xmlNode() as it accepts a "parent = " argument. The alternative using newXMLNode() would look like... atts_root <- c("val1","val2","val3") names(atts_root) <- c("att1","att2","att3") root <- newXMLNode("root", attrs = atts_root) atts_child <- LETTERS[1:3] names(atts_child) <- paste("name",1:3,sep="") child <- newXMLNode("child",attrs = atts_child, parent = root) atts_grandchild <- letters[1:3] name...
2015 Feb 24
2
[LLVMdev] [RFC] Storing default function attributes on the module
Hi Duncan, Been thinking about this a bit and a few comments/questions. I may have misunderstood some things in your mail though so please feel free to explain at me :) > Changing `clang` to store target defaults on the module will allow us to > continue to override them when running `llc`. The right precedence > would be: > > 1. Explicit attributes set on the function. >
2015 Feb 26
1
[LLVMdev] [RFC] Storing default function attributes on the module
...e., they're overridable if they're target >> defaults; they're not overridable if they've been explicitly >> specified somehow). >> >> Here's some straw-man syntax: >> >> attributes #0 = { noreturn ssp? "att1"="1" "att2"="2"? } >> >> Where: >> >> - `noreturn` and `"att1"="1"` are required. >> - `ssp` and `"att2"="2"` can be overridden (e.g., by `llc`). >> >> (Alternately, but equivalently: >> >> att...
2015 Mar 10
2
[LLVMdev] [RFC] Storing default function attributes on the module
...., they're overridable if they're target >> defaults; they're not overridable if they've been explicitly >> specified somehow). >> >> Here's some straw-man syntax: >> >> attributes #0 = { noreturn ssp? "att1"="1" "att2"="2"? } >> >> Where: >> >> - `noreturn` and `"att1"="1"` are required. >> - `ssp` and `"att2"="2"` can be overridden (e.g., by `llc`). >> >> (Alternately, but equivalently: >> >> at...
2004 Aug 18
0
[Bug 1605] New: Copy from NTFS to VFAT produces mkstemp and stat errors
...artition, I get tons of errors from "mkstemp" like these: mkstemp "/mnt/backup/lisa/g/Work/Mac_Home/CONFERENCE PAPERS/ISSPR/HLM ATT RUNS/\ .att19 out.m31kTI" failed: No such file or directory mkstemp "/mnt/backup/lisa/g/Work/Mac_Home/CONFERENCE PAPERS/ISSPR/HLM ATT RUNS/\ .att2 out.54lonG" failed: No such file or directory The NTFS partition is on a real Windows XP machine elsewhere on the network, mounted on the Linux box via samba. The copy command is: rsync -rtv /mnt/xp/machine /mnt/backup/lisa where /mnt/xp/machine is the samba-mounted XP NTFS disk and /mnt/ba...