search for: tazs

Displaying 20 results from an estimated 70 matches for "tazs".

Did you mean: tabs
2009 Mar 26
2
loading and manipulating 10 data frames-simplified
I have to load 10 different data frames and then manipulate those 10 data frames but would like to do this in a more simplified code than what i am doing. I have tried a couple of approaches but cannot get it to work correctly. So the initial (bulky) code is: #Bin 1 #------- #Loads bin data frame from csv files with acres and TAZ data Bin1_main <-
2009 Apr 29
2
Re moving unwanted double values in list
I have a procedure that goes sorts out some numbers based on specidifed criteria and for some reason the list contains double values in some of the rows such as: TAZs <- [[84]] [1] 638 [[85]] [1] 643 [[86]] [1] 644 732 [[87]] [1] 651 801 i would like to check list TAZs for double values and remove any if present. I have tried if (length(TAZDs==2)) rm(TAZDs[2]) but no luck. I cant find nor think of another way. Any help would be helpful. Thanks in a...
2008 Dec 12
1
Creating a vector
...op and add a "TAZDetermine_FEET" to a new vector ("TAZDs") each time the loop goes round but i cant seem to make it work using what i know. Probably simple so sorry and any help will be much appreciated, been struggling with this for too long. Cheers, JR #test location model TAZs TAZS=101:108 #Builds test Vacant TAZ vector TAZDEVS=c(125481,174581,556789,14755776,9984275,1324587,12457841,4511475) #Builds dataframe simulating TAZ_VAC_FEET TAZ_VAC_FEET=data.frame(TAZS,TAZDEVS) #Candidate TAZs from location shoice model cands=c(101,102,107,108) #Create Object of length of c...
2007 Jan 25
1
issue with ivtv & wctdm zaptel drivers (TDM PCI Master abort)
Hi, I'm experiencing an issue with my x86_64 machine containing a Hauppauge PVR-500 (ivtv) and a Digium TDM400p (wctdm, part of zaptel) PCI cards. Independently of each other both cards work fine, but once the wctdm driver is loaded and mythtv tries to record something on the PVR-500 the wctdm driver freaks out. The error message is see is "TDM PCI Master abort" printed over and
2012 Apr 03
2
Grouping and/or splitting
I have a dataframe imported from csv file below: Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 2,1,1,96 2,1,2,4 2,1,3,2 2,2,1,58 There are three groups identified based on the combination of first and second columns. How do I split this data frame? I tried aa <- split(inpfil, inpfil[,1:2]) but it has problems. Output desired is aa[1] Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 aa[2]
2008 Sep 30
1
conditional loop
I am looking up a number based upon a randomly selected number and then proceed to the rest of my code if the corresponding value is greater than or equal to yet another value. so if Dev_Size = 14 and my randomly selected number is 102 and i am looking up 102 in the following table 100 21 101 4 102 9 103 52 104 29 So i select the the corresponding value of 102, which is 9 and
2008 Sep 24
2
Calling object outside function
What i thought was a simple process isnt working for me. After i create an multiple objects in a function (see below), how to i use those objects later in the program. I tried calling the function again and then the object i wanted and it worked the first time but now it doesnt( i think i defined the object outside the function accidently so then it worked but when run properly it doesnt). I
2010 Feb 23
1
select row based on highest value
Please consider the following #Data to use Props<-c("p754921","p754921" ,"p754921","p75506" ,"p75506" ,"p75506","p75506","p75508","p75508","p75508","p75508","p75508") TAZ<-c(38,37,37,171,171,282,171,46,46,169,169,169) Area<-c(109828.04, 128134.71, 46469.57,
2007 Feb 27
0
Optimizing the loop for large data
Rusers: I am trying to apply a quadratic discriminant function to find the best classification outcomes. 1 is assigned to the values greater than a threshold value; and 0 otherwise. I would like to see how the apparent error rates and the optimal error rate change with increasing threshold values. I have a 1000*10 data matrix: n=1000 and p=10. Here is what I wrote so far, but seems to be
2012 Jan 13
2
More issues with apply
Hi all, Please consider the following: DataSet1.. <- data.frame(Bldgtype=c("SFDM","SFDM","SFDM","SFDM","SFDM","SFDM","APT"), Taz=c("254","254","254","564","564","564","564"),stringsAsFactors = FALSE) PeriodResType_Zx <-
2008 Nov 25
2
creating a new vecotr in a for loop
...x vector based on the values of y but the function i am using is the subset function and i cant do it without y being a vector itself and it is currently only a one value object. #Creates test Candidates Vector Candidates=c(100,101,102,103,104,105) #Creates object equaling the number of candidate TAZs from the main script Location Choice Model NumCands1=length(Candidates) Dev..At=9999999 for(i in 1:NumCands1){ #Renames Location Choice Model generated TAZ's object Loc_Mod_TAZ=Candidates[i] #Converts Development size from main script to Development density function format Dev_Size=D...
2010 May 28
1
Data frame manipulation
Hello All, Please consider the following: TotEmp<-c(19,6,1,1,8,44,2,33,48,1) ClusterType<-c("AGF","CNS","OSV","RTL","RTL","TRN","REL","ACC_CLUST","RTL","WHL") Taz<-c(0,0,0,100,100,100,101,101,102,103)
2008 Nov 07
1
For Loop - loading 10 sets of data and calculating
I am trying to simplify my code by adding a for loop that will load and compute a sequence of code 10 time. They way i run it now is that the same 8 lines of code are basically reproduced 10 times. I would like to replace the numeric value in the code (e.g. Bin1, Bin2....Bin10) each time the loop goes around. Below i tried doing this with a simple for loop and adding the string character before
2010 Mar 24
0
Getting choropleth map intervals correct
...a TAZ. The below data will work but you will have to set your directory for the shape file. Never did this before so hopefully this works. ResProbs is just supposed to be a value between 0-1, sorry if that more complicated than it needed to be. TazFile <- "*directory*/TAZ.shp" TazShape <- readShapeSpatial(TazFile) TazShape<-TazShape[order(TazShape$TAZ_NUM),] ResTaz<-25:666 ResProbs<-rnorm(642,0:1) ResProbs[ResProbs>1]=.5 ResProbs[ResProbs<-1]=.2 ResProbs<-abs(ResProbs) ResProbs..<-data.frame(ResTaz,ResProbs) names(ResProbs..)<-c("Taz",&q...
2010 Jan 21
2
Create a multi dimensional array from a data frame
Hello all, I have data from a csv that i need to coerce into a multi dimensional array. As you can see from my sample code i have yet to master building efficient code. I can sort of do what i want but its very cumbersome code and i know there is a better way to do it, i am just not expereinced enought yet. So for the following: #Create Data h1i1a1<-sample(1:20, 5, replace=TRUE)
2009 Jan 07
1
Re moving Numeric,0 from dataframe
...the posting rules by not posting sample code but i tried building some sample test code for this problem based on my working code and it wasnt producing what i wanted so hopefully a brief explanation and my result will allow you guys enough information to offer some advice. My result: allTAZprobs TAZS [1,] Numeric,0 640 [2,] 0.4385542 641 [3,] 0.2876207 642 [4,] Numeric,0 643 [5,] Numeric,0 649 [6,] Numeric,0 650 [7,] 0.7543349 652 [8,] Numeric,0 654 is a dataframe that is built after about 4 iterative processes of looking up some numbers in different tables and plugging...
2004 Jul 12
2
Problem with wine and Photoshop 7.0
To start off here is my version: drew@taz:~/downloads [14:26:56] -> wine -v Wine 20040505 When I run photoshop like this: wine "C:\\Program Files\\Adobe\\Photoshop 7.0\\Photoshop.exe" I get a little window form with an "OK" button that has "Adobe Photoshop 7.0" as it's title. I click OK, and it quits out. Any suggestions ? - Drew
2008 May 02
2
FAQ: setting thunderbird to talk to dovecot
Let's say I have a postfix box, named mail.thespider.com, which is setup to handle virtual mailbox domains. One of these domains will handle is, thespider.com, and my email address in that domain is boris at thespider.com. As I setup dovecot, I can telnet to the pop3 port (110) and test it by logging in as boris at thespider.com (I would try the imap port but I do not know how to login to imap
2010 Feb 22
1
matching on two criteria
Howdy y'all, I am looking to use the match function to match a data attribute to another data frame but i need it to do so on two criteria to ensure an appropriate match. The following matches incorrectly. I know the example looks pointless but its just an example. Perhaps there is another way of doing this? Thanks #Sample Data Props<-c("p754921","p754921"
2008 Nov 26
1
Creating a vector based on lookup function
I am still searching for a solution to what i think is a simple problem i am having with building a vector in a for loop. I have built a more understandable example so hopefully that will help..help you, help me, if you know what i mean. dev=400 #test location model TAZs to reference cands=c(101,105,109) #Create Object of length of cands candslength=length(cands) #TEST TAZ Vector CANDS=(100:110) #Test Dev Vector TAZDEVS=c(120,220,320,420,520,620,720,820,920,1020,1120) #Creates datframe of CANDS and DEVS TAZLIST=data.frame(CANDS,TAZDEVS) for(i in 1:candslengt...