search for: uhmann

Displaying 11 results from an estimated 11 matches for "uhmann".

2009 Sep 29
3
sort dates within a factor
Dear List, I have the following data: >> test <- data.frame(date = as.Date(c('2007-01-01','2008-03-24','2003-03-02','2008-05-03','2002-05-23','2001-06-30','2005-12-04')), nr = c(2000,2000,2000,2001,2002,2003,2003)) test date nr 1 2007-01-01 2000 2 2008-03-24 2000 3 2003-03-02 2000 4 2008-05-03 2001 5 2002-05-23 2002 6
2009 Jun 16
2
tapply with cbinded x
Dear List, why does this not work? df <- data.frame(var1 = c(3,2,1), var2 = c(6,5,4), var3 = c(9,8,7), fac = c('A', 'A', 'B')) tapply(cbind(df$var1, df$var2, df$var3), df$fac, mean) Thank you, Stefan
2008 Nov 05
2
access (exactly/only) one dimension of a multidimensional table
Dear list, I have a multi(3)dimensional table, which is printed as two tables: > table.a , , = female not at all a little medium heavy no 53 27 8 6 yes 30 67 61 66 , , = male not at all a little medium heavy no 31 20 11 5 yes 5 19 34 25 How can I access (manipulate)
2009 Nov 05
2
sort of cumulative counting in a vector
Dear list, I need help, since I can not come up with an easy solution to convert this vector test <- c('p','p','t','t','t') to [1] NA NA 1 2 3 which means the occurences of 't' should be summed up at the corresponding positions. The solution should also be able to handle the following scenarios: test2 <-
2010 Jul 23
2
start and end times to yes/no in certain intervall
Hi List, I have start and end times of events structure(list(start = c("15:00", "15:00", "15:00", "11:00", "14:00", "14:00", "15:00", "12:00", "12:00", "12:00", "12:00", "12:00", "12:00", "12:00", "12:00", "12:00", "12:00",
2008 Dec 11
5
Extracting the name of an object into a character string
Dear List, I am writing a function in R with the facility to store models for later use in scoring. It would be very useful if I could include in the name of the file stored the name of the model object being stored, this name being chosen by the user in the function call. A simple function to store the name of an object as a character string would fit the bill, but I have not found one. name()
2009 Feb 19
1
code patterns in vector
Dear List, I have this column/vector: vec <- c("function", "missing", "string") and want to compute a second column/vector: - value if the pattern "unc" is found: 1 - value if the pattern "iss" is found: 2 - value if none of the patterns is found: 0 This should be the result: > vec2 [1] 1 2 0 Any help? Tried it with grep, but the output
2009 Aug 14
1
RODBC does not like table names >11/12 characters
Hi List, I used to access a Paradox database using RODBC, but since last week I am not able anymore to fetch any table which has a name longer than 11 or 12 characters. Here is the the pattern of my code, nothing spectacular: library(RODBC) channel2<-odbcDriverConnect('DSN=xxx') #table names with up to 11 characters still work sqlFetch(channel2, 'abcdefghijk') #table names
2009 Sep 15
1
quoting a table name due to a special character in sqlQuery (RODBC)
Dear List, I have a problem with RODBC on a Paradox-DB, sqlQuery, and special characters in table names. Unfortunately, some of the latter include the underscore <_>. And I am not able to change them. That's not a problem, when I quote the table name: > sqlQuery(channel2, 'SELECT * FROM "anmeldung-alt"') Btw, if I swap ' and " it does not work: >
2008 Aug 19
4
spatial probit/logit for prediction
Hello all, I am wondering if there is a way to do a spatial error probit/logit model in R? I can't seem to find it in any of the packages. I can do it in MATLAB with Gibbs sampling, but would like to confirm the results. Ideally I would like to use this model to predict probability of parcel conversion in a future time period. This seems especially difficult in a binary outcome model
2009 Jun 01
1
installing sn package
...a column by name? (Zeljko Vrba)   13. Re: How to exclude a column by name? (Peter Dalgaard)   14. Re: Multiple ANOVA tests (Mike Lawrence)   15. Re: r-plot (Gavin Simpson)   16. Re: Intra-observer reliability (Gavin Simpson)   17. Re: Intra-observer reliability (Jim Lemon)   18. file.move? (Stefan Uhmann)   19. Re: Intra-observer reliability (Shreyasee)   20. Re: Intra-observer reliability (Shreyasee)   21. Re: Constrained fits: y~a+b*x-c*x^2, with a,b,c >=0 (Liaw, Andy)   22. Re: How to exclude a column by name? (Henrique Dallazuanna)   23. Re: r-plot (Richard.Cotton@hsl.gov.uk)   24. Re: Harmo...