search for: housesize

Displaying 3 results from an estimated 3 matches for "housesize".

Did you mean: holesize
2009 Mar 23
3
Replacing a few variable values within a DataFrame...
I would like to replace a few varaibles within a data frame. For example, in the dataframe below (contrived) I would like to replace the current housesize value only if the Location is HSV. However, I would like to leave the other values intact. I tried "ifelse", but I don't really need the else condition. test_data2_df<-data.frame(Variables=c("SQR Footage","SQR Footage","SQR Footage","SQR F...
2009 May 29
2
Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified
...the the addition of duplicate entries is not caught by the setdiff(...). Is this expected behavior? If so, is there another method or approach that should be used to identify duplicate row entries between two different data frames? Thanks in advance for any feedback. Test1_DF<-data.frame(HouseSize=c(1:100)) Test2_DF<-rbind(Test1_DF, Test1_DF) setdiff(Test1_DF, Test2_DF) integer(0) setdiff(Test2_DF, Test1_DF) integer(0) However, Test3_DF<-data.frame(HouseSize=c(1:25)) setdiff(Test1_DF, Test3_DF) [1] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [17] 42 43 44 45...
2009 Oct 29
2
Recommendation for dealing with mixed input types in CSV
Currently I have a CSV with mixed input types that I am trying to read in and reformat without having to list off all the column names.? Below is an example of the data: HouseColor, HouseSize, HouseCost Blue, 1600, 160e3 Blue, 1600, 160e3 Actually I have about 60 columns like this, so imagine the above repeated about 30 times column-wise.? Luckily the ones in scientific notation are grouped together, i.e. columns 11-56. Using read.csv or as.numeric, is there?a way to convert all th...