search for: newid

Displaying 20 results from an estimated 77 matches for "newid".

Did you mean: newide
2016 Jan 26
2
Corregir mismo ID para individuos diferentes en una serie temporal
..."T", "U", "V", "W", "X", "Y", "Z", "CC", "AA", "BB", "Y") ref_df <- data.frame (ID, Year, new_ID) ref_df rep_val <- rep(0, nrow(df)) new_df <- data.frame(ID=rep_val, Year=rep_val, newID=rep_val, hmyears=rep_val) for(i in 1:nrow(df)) { #Cero print(i) if(i==1) { new_df$ID[i] <- df$ID[i] new_df$Year[i] <- df$Year[i] new_df$newID[i] <- df$ID[i] new_df$hmyears[i] <- 1 } else { #Uno coin <- which(df$ID[i]==df$ID[1:(...
2016 Jan 26
2
Corregir mismo ID para individuos diferentes en una serie temporal
...t;, "T", "U", "V", "W", "X", "Y", "Z", "CC", "AA", "BB", "Y")ref_df <- data.frame (ID, Year, new_ID)ref_df rep_val <- rep(0, nrow(df))new_df <- data.frame(ID=rep_val, Year=rep_val, newID=rep_val, hmyears=rep_val )for(i in 1:nrow(df)) { #Cero if(i==1) { new_df$ID[i] <- df$ID[i] new_df$Year[i] <- df$Year[i] new_df$newID[i] <- df$ID[i] new_df$hmyears[i] <- 1 } else { #Uno coin <- which(df$ID[i]==df$ID[1:(i-1)]) print(c...
2016 Jan 25
4
Corregir mismo ID para individuos diferentes en una serie temporal
...Rubén Codigo usadodatabase es la base de datos con la serie temporalID_original es el identificado original que tiene cada individuoMonth_Capt es la variable que me indica en que momento fue capturado cada individuo y por tanto si es posible o no que el individuo sea el mismo a lo largo del tiempo. newID <-sapply(unique(database$ID_original), function(x) c(0,cumsum(diff(database$Month_Capt[database$ID_original==x]))%%48))names(newID)<-(unique(database$ID_original)) new_df<-data.frame(database$ID_original,database$Month_Capt,IDcond=NA,new_ID=NA)for(i in unique(database$ID_original)){ new_d...
2010 Feb 26
2
Problem accessing sub-methods of functions stored in a vector
...access sub-functions declared within list() in a function, this only works directly. When I try to access these within an array only the first declared sub-function is run. For example I have the function: agent <- function(id) { # MANY VARIABLES DECLARED list( set_id = function(newid) { id <<- newid }, get_id = function(newid) { return(id) }, # LOTS MORE SUB FUNCTIONS ) } If I create a variable to hold this function, I can then access all the subfunctions without problem Example: myAgent = agent(1) myAgent$get_id() # Works fine...
2013 Jan 21
1
Percentiles with R for a big data.frame
Dear R users, I came up to a problem dealing with percentiles in R. >From my previous questions: I do have a big data.frame, with lots of columns and rows. The following command enables me to calculate means for all data frame. dat1$newID<-rep(1:(nrow(dat1)/12),each=12) #if nrow(dat1)/12 is integer dat2<-with(dat1,aggregate(cbind(dat1[,1:71]),by=list(newID),mean)) What I need is to calculate percentiles for each group (there are 12 values in a group). I tried the following: duomenai<-with(dat1,aggregate(cbind(dat1[,1:71]...
2010 Aug 01
0
order by newid()
I want to get a set of records in random order. Will Car.order(''newid()'') work? Is there a better way to do this? Rails 3. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+...
2018 May 29
2
Scripting the next UID/GID number to use
Hello,     I'm developing a script to create a user and pass along all the necessary unix attributes required. I'm successful except when I go to increment msSFU30MaxUidNumber or msSFU30MaxGidNumber. I'm not sure how to use ldbedit to script this process. Any guidance would be great. Thanks. - James
2018 May 29
4
Scripting the next UID/GID number to use
...> Something like this: > > # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber > # Input : $1 $2 > # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) > # $2: Next Number > # > # Output : Nothing > _updatemax () { > echo "Updating $1" > > newid="dn: CN=$domainNETBios,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,$domainDN > changetype: modify > replace: $1 > $1: $2" Actually, you would want to use (something like this, not tested): changetype: modify add: $1 $1: $2 delete: $1 $1: $2 This is called a constrained u...
2008 Jan 03
0
Wx::Menu, get parent menu functions?
...lass, name = nil, id = -1, parent_menu = nil, title = "", style = 0) super(title, style) @name = name #string name @id = id #integer id @parent_menu = parent_menu #MyMenu parent_menu if @id == -1 @id = mymasterclass.newid() #generates newid (WxPython?) #for reference #def newid() # new_id = Wx::ID_HIGHEST + @@i_highest_counter # @@i_highest_counter = @@i_highest_counter + 1 # return new_id # end #============= end end def get_name() return @name end def get_id()...
2012 Mar 16
1
help to split a ID column in a data.frame and create a new ID column
...c(1,2,3,4,5),ID=c("Area_1","Area_2","Area_3","Area_4","Area_5")) > mydf value ID 1 1 Area_1 2 2 Area_2 3 3 Area_3 4 4 Area_4 5 5 Area_5 I need to convert the *ID *in the following version > mydf value ID newID 1 1 Area_1 AreaSample1 2 2 Area_2 AreaSample2 3 3 Area_3 AreaSample3 4 4 Area_4 AreaSample4 5 5 Area_5 AreaSample5 some people know the right function to split ID and create a new column Thanks in advance Gianni [[alternative HTML version deleted]]
2013 Jan 18
2
A smart way to use "$" in data frame
Hello all, I have a data frame dataa: newdate newstate newid newbalance newaccounts 1 31DEC2001 AR 1 1170 61 2 31DEC2001 VA 2 4565 54 3 31DEC2001 WA 3 2726 35 4 31DEC2001 AR 3 2700 35 The follow...
2006 Sep 26
1
extended ACLs and Samba
...this subfolder many user have dedicated access rights to single files. Sometimes a project member change and the new one should get the same rights as the old one. But here is my problem. With the following line i can easy change the owner of files: find /samba/project -user oldid -exec chown newid {} ";" But i don't know how i can do this with users, they not owner of the file, but they have in the extended ACL a user:john:rwx entry How can i search the complete tree, find all files with a user entry and change this from oldid to new id? I tried somthing with getfacl and s...
2013 Jan 05
5
Need help on dataframe
Dear R users, I came up to a problem by taking means (or other summary statistics) of a big dataframe. Suppose we do have a dataframe: ID V1 V2 V3 V4 ........................ V71 1 6 5 3 2 ........................ 3 2 3 2 2 1 ........................ 1 3 6 5 3 2 ........................ 3 4 12 15 3 2 ........................ 100
2006 Feb 16
2
looping through tasks
...ach year assign( eval(myvar), data.frame(cbind(mydata[,c("var1", eval(myvar))],c(eval(y))))) colnames(eval(myvar))<-c("person","score","year") } I"m getting the error, " Error in "colnames<-"(`*tmp*`, value = c("newid", "score", "year")) : attempt to set colnames on object with less than two dimensions Whether I set up a data frame or not doesn't matter. As you might guess, what I want to do at the end is rbind the little files, and the lack of consistent column names causes the pr...
2011 Sep 20
2
Converting ID Numbers to Unique ID Number
First off, let me apologize for the elementary question. I'm obviously a novice. Here's a stripped version of my problem. March foreign id = 1234, my id = 1 foreign id = 1235, my id = 2 foreign id = 1236, my id = 3 So we are adding new people for April, and things don't necessarily come in order: April foreign id = 1236 foreign id = 5000 foreign id = 1234 foreign id = 1235 foreign
2005 Jun 26
1
strange problem on regconizing /dev/sda and /dev/hda
...interface ide4... Probing IDE interface ide5... Using cfq io scheduler ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: max request size: 1024KiB hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63 hda: cache flushes supported hda: hda1 hda2 hda3 hda4 < hda5 > ide-floppy driver 0.99.newide usbcore: registered new driver hiddev usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.0:USB HID core driver mice: PS/2 mouse device common for all mice md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 2048...
2008 May 22
9
building a many-to-many structure in javascript
hi, for some purpose, I need a "in-javascript database", maybe built with some Prototype $H function calls for creating "tables" but what about junction tables, I mean those which express many-to- many relations between two entity tables ? I though using concatenation of strings with a separator, for example "key1 key2" "1234-56" or "ABC \n 789"
2009 Oct 10
1
documentation bug?
Hi, I'm thoroughly RTFM'ing in order to find out what I'm doing wrong <http://lists.samba.org/archive/samba/2009-October/thread.html#151046> and I noticed that links from the *Samba-HOWTO-Collection* to the *manpages-3* don't work... the problem is that both documentation sets are on different directories but links don't include a path (nor absolute, nor relative).
2019 Feb 16
3
Changing UID numbers
Hello everyone - Update: Many thanks to Matt Miller for the tip on usermod options. That worked very well! I did not know those options existed and would never have thought to look for them. After making and testing backups, I started with my main workstation. Rebooted in runmode=3, then ran the usermod -u and -g options. I did this in two runs. I first had to uninstall docker since it
2006 Sep 11
3
Is RAMDISK required for domU boot?
...talled. blkif_init: reqs=64, pages=704, mmap_vstart=0xdf800000 netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx Registering block device major 8 ide-floppy driver 0.99.newide usbmon: debugfs is not available usbcore: registered new driver libusual mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind has...