[R] Keeping the attributes of an observation

2010-02-14 Thread John Lipkins
Hey R list, Can someone help me with following question? I can create a listing of the unique observations in a dataframe by using: df <- df [order(df $start),] df $first_ob[!duplicated(df $ID)] <- "1" df $first_ob[duplicated(df $ID)] <- "0" Now I want to hold specific attributes of the first o

[R] Unique observations

2009-11-25 Thread John Lipkins
Hey R list, A beginners question. How can I do the following: In my research population it is possible that several items can appear several times, measured on different moments in time. This is being supplied in a total list with all observations identified by a number (per item) and a moment of

[R] table () for more variables

2009-07-04 Thread John Lipkins
Dear All, I want to create a table for several variables. As example. I have a dataframe with following data: Gendertransport driving 1 0 1 0 1 0 1 0 1 Now I want to crea

[R] maps maptools

2009-06-22 Thread John Lipkins
Hey, A basic question. Is there anyone that knows a good text on using the R packages map and maptools for R? I have read the references for both but having trouble getting started. What I want to do is to load a map (.shp file) and display statistics on this maps using colours. Thanks in advanc

[R] Dealing with a counted variable

2009-06-19 Thread John Lipkins
Dear all, I sometimes receive data which has a following layout: Age urban   count 34    X 13 64    3 In which count represents the amount of times a certain observation has been fulfilled. How ever when using this data in R I’m confronted with the fact that R c