[R] Dropping time series observations
JS Huang
js.huang at protective.com
Mon Feb 2 18:16:09 CET 2015
Hi,
I have a data frame named data and with the statement
data[5:length(data[[1]]),] I can get row 5 to the end of the data.
> data
role counts
1 Agent 220
2 Theme 169
3 Patient 67
4 Location 41
5 Destination 32
6 Recipient 31
7 Result 29
8 Instrument 27
9 Source 25
10 Experiencer 22
11 Topic 22
12 Stimulus 18
13 Attribute 15
14 Beneficiary 12
15 Initial_Location 12
16 Co-Agent 11
17 Co-Patient 11
18 Co-Theme 9
19 Goal 9
20 Asset 7
21 Cause 6
22 Material 5
23 Value 5
24 Product 4
25 Predicate 3
26 Trajectory 3
27 Extent 2
28 Time 2
29 Reflexive 1
> data[5:length(data[[1]]),]
role counts
5 Destination 32
6 Recipient 31
7 Result 29
8 Instrument 27
9 Source 25
10 Experiencer 22
11 Topic 22
12 Stimulus 18
13 Attribute 15
14 Beneficiary 12
15 Initial_Location 12
16 Co-Agent 11
17 Co-Patient 11
18 Co-Theme 9
19 Goal 9
20 Asset 7
21 Cause 6
22 Material 5
23 Value 5
24 Product 4
25 Predicate 3
26 Trajectory 3
27 Extent 2
28 Time 2
29 Reflexive 1
--
View this message in context: http://r.789695.n4.nabble.com/Dropping-time-series-observations-tp4702589p4702680.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list