Displaying 2 results from an estimated 2 matches for "clee".
Did you mean:
cee
2010 Oct 11
3
help with simple but massive data transformation
I have data that looks like this:
start end value
1 4 2
5 8 1
9 10 0
I want to transform the data so that it becomes:
startend value
1 2
2 2
3 2
4 2
5 1
6 1
7 1
8 1
9 0
10 0
----
I've
2010 Mar 10
2
modify the levels of a variable
If anyone can help with this, I would greatly appreciate it.
When I subset a dataframe, and then create a table of on of the column
variables, the levels of that variable are retained from the parent
dataframe. Anyone know how to
for example, say I have data like so:
data:
X Y
a 2
b 2
a 3
b 3
a 5
if I do....
data2=subset(data,X=="a")
I get the new data