Displaying 4 results from an estimated 4 matches for "bizlandprice".
2009 Mar 26
2
loading and manipulating 10 data frames-simplified
...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 <-
read.csv(file="I:/Research/Samba/urb_transport_modeling/LUSDR/Workspace/BizLandPrice/data/Bin_lookup_values/Bin1_lookup.csv",head=FALSE);
#Separates Acres data from main data and converts acres to square feet
Bin1_Acres=Bin1_main[[1]]*43560
#Separates TAZ data from main data
Bin1_TAZ=Bin1_main[[2]]
#Separates TAZ data from main data and converts acres to square feet
Bin1_T...
2008 Nov 07
1
For Loop - loading 10 sets of data and calculating
...reproduce it in my own code. Hope my question is clear and i hope
someone can offer some guidance.
Cheers,
JR
for (i in 1:10) {
#-------
#Loads bin data frame from csv files with acres and TAZ data
Bin$i_main <-
read.csv(file="I:/Research/Samba/urb_transport_modeling/LUSDR/Workspace/BizLandPrice/data/Bin_lookup_values/Bin$i_lookup.csv",head=FALSE);
#Separates Acres data from main data and converts acres to square feet
Bin$i_Acres=Bin$i_main[[1]]*43560
#Separates TAZ data from main data
Bin$i_TAZ=Bin$i_main[[2]]
#Separates TAZ data from main data and converts acres to square feet
B...
2008 Sep 24
2
Calling object outside function
...n 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 = 120
#Create test Development
Dev_Size=58
#Determines vacant acres by TAZ
TAZDetermine=TAZ_VAC_ACRES[TAZ_VAC_ACRES$TAZ==Loc_Mod_TAZ,2]
#Displays number of vacant acres in Location Choice Model se...
2008 Sep 30
1
conditional loop
...s 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 object
Loc_Mod_TAZ = RndTAZ
#Create test Development...