Displaying 4 results from an estimated 4 matches for "taz_vac_feet".
2008 Dec 12
1
Creating a vector
...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 cands
candslength=length(cands)
#Test Location Choice Model selected TAZ
for(i in i:candslength){
#Renames randomly generated TAZ's object
Loc_Mod_TAZ=can...
2008 Nov 25
2
creating a new vecotr in a for loop
...rom main script to Development density function
format
Dev_Size=Dev..At
#This is my "y" value in the example i gave above, this is the value that i
need put into a # vector, a vector that should have as
many values as there are number of candidates
TAZDetermine_FEET=TAZ_VAC_FEET[TAZ_VAC_FEET$TAZ==Loc_Mod_TAZ,2]
#Creates new vector based on adaquate vacancy in the TAZ and the
development to be located
Newcands=subset(Loc_Mod_TAZ, TAZDetermine_FEET>=Dev_Size)
}
Thanks for the help
Cheers,
JR
--
View this message in context: http://www.nabble.com/creating-a-...
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
2009 Jan 24
1
Environment change?
...] 205
Now besides the fact that the values and length is different, does that fact
that there are quotes around each value change the way R deals with the
values. I am getting an error when i try and use the object that contains
the first list's values. The error is:
Error in `[.data.frame`(TAZ_VAC_FEET, TAZ_VAC_FEET$TAZ == Loc_Mod_TAZ, :
(list) object cannot be coerced to type 'integer'
Now the object Loc_Mod_TAZ would be equal to one of the first list values in
a loop like:
Candidates[i]=Loc_Mod_TAZ. So again the question is does R treat these two
lists the same. Thanks and sorry...