Displaying 2 results from an estimated 2 matches for "taz_vac_acres".
2008 Sep 24
2
Calling object outside function
...eosnt work and it errors that the object cannot be found. Do
i use attach? this didnt seem to work either. I just want to call an
object defined in a function outside of the function. Hope you can help
Cheers,
JR
#Function to create hypothetical numbers for process testing
Testdata=function(TAZ_VAC_ACRES,Loc_Mod_TAZ,Dev_Size,TAZDetermine,Dev_Size){
#Loads TAZ and corresponding vacant acres data
TAZ_VAC_ACRES=
read.csv(file="I:/Research/Samba/urb_transport_modeling/LUSDR/Workspace/BizLandPrice/data/TAZ_VAC_ACRES.csv",header=TRUE);
#Test Location Choice Model selected TAZ
Loc_Mod_TAZ =...
2008 Sep 30
1
conditional loop
...umber generator to select another number until
complies with the requirement. I have tried below but my while loop doesnt
do what i would like. I cant seem to find a good resource for my problem,
any help would be much appreciated.
Cheers,
JR
#Loads TAZ and corresponding vacant acres data
TAZ_VAC_ACRES=
read.csv(file="C:/LUSDR/Workspace/BizLandPrice/data/TAZ_VAC_ACRES.csv",header=TRUE);
#Test Location Choice Model selected TAZ
while(TAZDetermine <= Dev_Size){
#Randomly generates test TAZ from 100 to 844
RndTAZ=sample(100:844,1,replace=T)
#Renames randomly generated TAZ's o...