Displaying 4 results from an estimated 4 matches for "survey1".
Did you mean:
survey
2008 Jan 24
3
Reshaping a dataframe with conditional summary of columns - apply or reshape?
...appreciated.
The input example looks like this:
survey year count location var1 var2
1 1 2 A1 21.2 1
2 1 0 A1 15.6 1
3 1 29 A1 12.1 1
1 1 11 B3 9 2
3 1 5 B3 4.8 2
1 2 7 A2 20.1 4
2 2 2 A2 19.2 4
I need to rearrange it to look like this (the order of the columns is not
important):
location year survey1 survey2 survey3 var1summ var2
A1 1 1 0 2 16.3 1
B3 1 2 NA 1 6.9 2
A2 2 1 1 NA 19.7 4
The operations/conditions that I need are:
(A) The observations in "count" for each survey at each location in a given
year need to be reduced according to the following rules and then placed in
new c...
2008 Sep 29
2
turning comma separated string from multiple choices into flags
...I read the data with read.csv into R. To analyze the data, I have to
change that string into something like flags(indicator variables?).
That is, there should be 4 variables, of which values are either 1 or
0, indicating chosen or not-chosen respectively.
Suppose the data is something like,
> survey1
age favorite_magazine
1 29 Fast Company
2 31 Fast Company, Business Week
3 32 Havard Business Review, Business Week, The Economist
>
Then I have to chop the string in favorite_magazine colum...
2007 Aug 08
2
FW: The trixbox Revolution Continues! Sign up for the Webinar.
...dean at cognation.net
You were added to the system May 3, 2007.
Click here for more information
<http://echo4.bluehornet.com/subscribe/source.htm?c=bhKnjO3S0caW.&email=
dean at cognation.net&cid=105ab23bdcfebb496b833bf4db11024f> | Unsubscribe
<http://echo4.bluehornet.com/phase2/survey1/survey.htm?CID=ypniyt&action
=update&eemail=dean at cognation.net&_mh=8316fb751136f25ce5ff1f7461654597>
<http://echo4.bluehornet.com/imagelibrary/N-1686662876-979C4976A0579E088
A711D4CD3EC3723.jpg>
-------------- next part --------------
An HTML attachment was scrubbed......
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...I read the data with read.csv into R. To analyze the data, I have to
change that string into something like flags(indicator variables?).
That is, there should be 4 variables, of which values are either 1 or
0, indicating chosen or not-chosen respectively.
Suppose the data is something like,
> survey1
age favorite_magazine
1 29 Fast Company
2 31 Fast Company, Business Week
3 32 Havard Business Review, Business Week, The Economist
>
Then I have to chop the string in favorite_magazine colum...