Displaying 2 results from an estimated 2 matches for "raceprofiling".
2010 Dec 06
1
Loading .RData from Internet
Dear All,
Can you please suggest me a correct way to load the following R data frame
from the internet and save it to the hard drive?
The following is what I tried:
> raceprofiling <-
> read.table("http://rss.acs.unt.edu/Rdoc/library/twang/data/raceprofiling.RData")
> save(raceprofiling, file = 'raceprofiling.RData')
However, when I used dim() to check the dataset, I got:
> dim(raceprofiling)
[1] 11085 1
The correct dimension should be 5000 an...
2010 Dec 09
3
hi have a question about merging.
...e female observations come rst, then the male observations. This resultingdataset should be the same size as the original.
this is what i did so far:
# loading the R data frame over the internet
and saving it to your hard drive
>rp<-url("http://rss.acs.unt.edu/Rdoc/library/twang/data/raceprofiling.RData")
>load(rp)
>str(raceprofiling)
#this shows that in the RData file there are
5000 obs. of 10 variables.
# For
the fourth dataset, please show how to save a dataset of males only (the
variable male=1)
#to a new #data frame.
>attach(raceprofiling)
>s<...