[R] Transformation of nls() to nlme()

2008-09-01 Thread Dong-hyun Oh
;numeric" "numeric" "numeric" "numeric" "numeric" "numeric" di8l di9l di1k di2k di3k di4k di5k di6k "numeric" "numeric" "numeric" "numeric" "numeric" &q

Re: [R] problems formating scientific collaboration data

2008-08-27 Thread Dong-hyun Oh
Hi, name of the data.frame is assumed to be dt. cnt.tmp <- strsplit(dt$Author, " ") cnt <- sapply(cnt.tmp, length) paper.cnt <- dt$Paper[cnt] author <- unlist(cnt.tmp) year <- dt$Year[cnt] dt.new <- data.frame(Paper = paper.cnt, Author = author, Year = year) HTH, D

[R] Deleting NA in list()

2008-08-22 Thread Dong-hyun Oh
dvance. = Dong-hyun Oh Center of Excellence for Science and Innovation Studies Royal Institute or Technology, Sweden e-mail: [EMAIL PROTECTED] cel: +46 73 563 45 22 __ R-help@r-project.org mailin

[R] help.search warning?

2008-08-11 Thread Dong-hyun Oh
.4 and R-2.7.1. How to solve the above problem? Best, Dong-hyun Oh __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,

[R] On creating grouped data set.

2008-07-21 Thread Dong-hyun Oh
Dear UseRs, I would like to know the way to create grouped data set such as Oats data.frame in nlme package. Specifically, I need to create a grouped data set with PBIB data.frame in SASmixed package. Any help? Looking forward to hearing from you. Best,

Re: [R] Find classes of each column of data.frame()

2008-07-01 Thread Dong-hyun Oh
many thanks. On Jul 1, 2008, at 4:00 PM, Henrique Dallazuanna wrote: sapply(your_data, class) On Tue, Jul 1, 2008 at 10:50 AM, Dong-hyun Oh <[EMAIL PROTECTED]> wrote: Dear UseRs, I would like to know the way to find classes of each column of data.frame(). Thank you in a

Re: [R] Find classes of each column of data.frame()

2008-07-01 Thread Dong-hyun Oh
Many thanks. On Jul 1, 2008, at 3:57 PM, Romain Francois wrote: sapply( iris, class ) Dong-hyun Oh wrote: Dear UseRs, I would like to know the way to find classes of each column of data.frame(). Thank you in advance. = Dong

[R] Find classes of each column of data.frame()

2008-07-01 Thread Dong-hyun Oh
Dear UseRs, I would like to know the way to find classes of each column of data.frame(). Thank you in advance. = Dong-hyun Oh Center of Excellence for Science and Innovation Studies Royal Institute or Technology, Sweden e-mail

Re: [R] create new column with colnames resulting from paste()

2008-06-26 Thread Dong-hyun Oh
Hi, Fortunately, I found a way. -- > dt <- data.frame(a = c(1, 2, 3), b = c(3, 2, 2), c = c(1, 3, 5)) > > for(i in 1:2){ >dt[, paste("test", i, sep = "")] <- rep(i, 3) > } ----- Thanks. Best, Dong-hyun Oh

[R] create new column with colnames resulting from paste()

2008-06-26 Thread Dong-hyun Oh
5 1 2 Any help? Thank you in advance. Best, = Dong-hyun Oh Center of Excellence for Science and Innovation Studies Royal Institute or Technology, Sweden e-mail: [EMAIL PROTECTED] cel: +46 73 563 45 22 __

[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
f parameters I used (beta, delta, gamma, sigma2). Thank you in advance. Sincerely, Dong-hyun Oh [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

[R] optim() and starting values.

2008-06-16 Thread Dong-hyun Oh
ptim$par --- How can I set up concrete starting values? Any advices will be appreciated. Looking forward to hearing from you. Sincerely, Dong-hyun Oh __ R-help@r-project.org mailing list https://stat.et

[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
parameters I used (beta, delta, gamma, sigma2). Thank you in advance. Sincerely, Dong-hyun Oh __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.ht

[R] function similar to str_replace() in php.

2008-02-15 Thread Dong-hyun Oh
Dear expeRt, I would like to know whether a function similar to str_replace() in php exists in R. Looking forward to hearing from you. Best, = Center of Excellence for Science and Innovation Studies, Royal Institute of Technology Drott

[R] Subset results of tapply

2008-02-07 Thread Dong-hyun Oh
Dear UseRs, I would like to extract only p.value by performing wilcox.test with tapply function. Example data.frame is as follows: > tmp name year DttDt2t2 Dgt Dgt2ec tcpc 1AUS 1991 1.162935 1.141352 1.168011 1.193882 1.0189098 0.9601735 0.

[R] help.search and indexing

2008-01-07 Thread Dong-hyun Oh
the solution, but i don't know how to do. Best, Dong-hyun Oh = Center of Excellence for Science and Innovation Studies, Royal Institute of Technology, Sweden e-mail: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] cell phone

[R] How to know created time of object in R?

2007-11-05 Thread Dong-hyun Oh
Dear UseRs, I would like to know the created time and date of specific object. Is there any function for it? Thank you in advance. Sincerely, __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] subset data.frame with constraint of many values?

2007-10-24 Thread Dong-hyun Oh
Dear UseRs, Let us assume that I have data.frame named as dt. dt is as follows: abcd 1345 2332 1342 3245 4536 3257 2578 . . I want to subset dt with fileds a h

[R] inverser terrain.colors

2007-10-19 Thread Dong-hyun Oh
Dear UserRs, I draw filled contour plot with filled.contour function. By default, colors of filled.contour is terrain.colors which alters from green (the lowest level) to white (the highest level). I want the colors to alter from white (the lowest level) to green (the highest level). How can

[R] Deleting for() loop in function

2007-10-10 Thread Dong-hyun Oh
Dear UseRs, I wrote following function in order to solve Data Envelopment Analysis. Reason for posting is that the function is slow when nrow(dat) is large. I wonder if other functions could substitute the for() loop in the code, such as mapply(). Can anybody help to rewrite the dea() function