similar to: String question

Displaying 20 results from an estimated 10000 matches similar to: "String question"

2006 Nov 30
3
writing function with ,... )
Hi to all I did not found the right hints for functions with the dot-dot-dot argument. Is it possible to write own functions with the tree dots and if yes what's wrong with the following example? test <- function(x, ...) { print (x) if (exists("y"))print(y) if (exists("z"))print(z) } test(4,y=2) With regards Carmen
2006 Nov 08
10
axis command and excel time format
Hi to all, I have some problems to get the times-scale to the x-axis the times are coming from an excel sheet f. e [1] "0:01:00" "0:02:00" "0:03:00" "0:04:00" "0:05:00" "0:06:00" "0:07:00" [8] "0:08:00" "0:09:00" "0:10:00" "0:11:00" "0:12:00" "0:13:00"
2007 Jun 08
2
pnorm how to decide lower-tail true or false
Hi to all, maybe the last question was not clear enough. I did not found any hints how to decide whether it should use lower.tail or not. As it is an extra R-feature ( written in http://finzi.psych.upenn.edu/R/Rhelp02a/archive/66250.html ) I do not find anything about it in any statistical books of me. Regards Carmen
2006 Dec 15
2
ks.test "greater" and "less"
Hello r-group I have a question to the ks.test. I would expect different values for less and greater between data1 and data2. Does anybody could explain my point of misunderstanding the function? data1<-c(8,12,43,70) data2<- c(70,43,12,8) ks.test(data1,"pnorm") ks.test(data1,"pnorm",alternative ="less") #expected < 0.001
2007 Jun 06
6
p-value from GEE
Hi to all, I found in the R-help archive how to calculate the p-value for a gee result: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html but there are two questions (I am afraid they are basic questions ...) 1. why is the result multiplicated with 2 2. how could I decide between lower.tail =TRUE and FALSE: example:
2008 Oct 31
1
gregexpr slow and increases exponentially with string length --> how to speed it up?
Dear All, I have a long string and need to search for regular expressions in there. However it becomes horribly slow as the string length increases. Below is an example: when "i" increases by 5, the time spent increases by more! (my string is 11,000,000 letters long!) I also noticed that - the search time increases dramatically with the number of matches found. - the perl=T option
2003 Jul 31
1
smtp over ssh probs
before I start, two notes. I alredy sent this mail to the other mailing list, but no answer has came back. also, I'm not subscribed to this list, so please cc me the answers. now, to business. I have a problem but I don't know exactly what. Or why, better. The scheme is like this: I don't have a direct connection to the inet, except for ssh to certain range of ip's at a
2009 Dec 20
1
how to count the total number of (INCLUDING overlapping) occurrences of a substring within a string?
Last one for you guys: The command: length(gregexpr('cus','hocus pocus')[[1]]) [1] 2 returns the number of times the substring 'cus' appears in 'hocus pocus' (which is two) It's returning the number of **disjoint** matches. So: length(gregexpr('aa','aaa')[[1]]) [1] 1 returns 1. **What I want to do:** I'm looking for a way to count
2011 Sep 27
2
searching several subsequences in a single string sequence
Hi all I am analyzing bird song element sequences. I would like to know how can I get how many times a given subsequence is found in single string sequence. For example: If I have this single sequence: ABCABAABABABCAB I am looking for the subsequence "ABC". Want I need to get here is that the subsequence is found twice. Any idea how can I do this? Thanks
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table.. so ive tried this: class ApplicationController.. session :off end class AccountController session :only, :login end and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just
2007 Aug 02
4
Finding multiple characters in the same string
Hi I have this problem where I need to find if there is any numbers in a string, this is no problem if theres only one number per string. I would then simply use the regexpr() funtion togheter with the substring function to extract the number. But regexpr only picks one number per string either from the beginning or the end, but not multiple. Can this be done? And how for example My string <-
2011 Mar 14
3
FTP accounts
Hello, I have setup a centos server running 5.5 and I have a problem with the FTP settings. Currently I have two FTP accounts based on that server, they lead to: /home/bella /home/carmen Currently the FPT accounts starts in the home directory when they are logged in. But they are able to see all directories on the server. What can I do to make sure they cant come out of there home directory?
2003 Sep 23
1
least squares regression line
I can't seem to find the command to find the least squares regression line for my bivariate data set. Can you please help? ~Carmen
2006 Jul 27
1
replace values in a distance matrix
Hi to everybody! I´m just a beginner in R, and I´m trying to replace values in a distance matrix with a concret condition: replace all values (elements) lower than 4.5 with value=18. I´ve tried this, but it doesn´t work... Dxy would be my 117 x 117 euclidean distance matrix M18 and M4.5 would be 117 x 117 matrices: M18<-matrix(rep(18,13689),nrow=117)
2005 Feb 21
1
error in using usrmgr.exe
Hello: I have set up samba PDC using samba 3.0.11. When I use the usrmgr.exe tool on NT4 machine to add user to the domain, it prompts and says: "The following error occurred changeing properties of the user mary: fail find the group" (The error msg actually appears as Chinese in my computer, I just translate the error message). Then I check with the samba log file and it said: group
2008 Jul 03
1
how to capture matching words in a string ?
I need to capture matching words in a string, any ideas ? I tried using gregexpr, but it was no help. In this example, I need to capture ID23423424 and ID324234325 > s <- "sID23423424 apple pID324234325 orange"> gregexpr("ID[0-9]+", s)[[1]][1] 2 20attr(,"match.length")[1] 10 11 _________________________________________________________________
2001 Oct 10
2
Pearson residuals (PR#1123)
Full_Name: Carmen Fernandez Version: 1.3.1 OS: Submission from: (NULL) (138.251.202.115) I think there is a problem when computing Pearson residuals, in that they seem to be computed at the raw residuals divided by the square root of the corresponding diagonal element of the weight matrix W evaluated at the last step of the iterative model fitting procedure (IWLS), instead of dividing by the
2019 Feb 20
2
Bug: time complexity of substring is quadratic as string size and number of substrings increases
Hi all, (and especially hi to Tomas Kalibera who accepted my patch sent yesterday) I believe that I have found another bug, this time in the substring function. The use case that I am concerned with is when there is a single (character scalar) text/subject, and many substrings to extract. For example substring("AAAA", 1:4, 1:4) or more generally, N=1000
2010 Sep 27
3
having some issues with factory_girl and bundler...
Hi All Need some brilliants minds here :) I''m using Rails 2.3.8 & ruby 1.8 (I know, I know... ) I''ve move my gems from .gems to Bundler, but I''m having some issues with Factory_girl when I rake spec "uninitialized constant Factory" I''m following the instructions from http://gembundler.com/rails23.html. Basically: - grab all config.gem and place
2005 Mar 27
3
BDC problem!? user can't get profile/map drive
Hello: I have set up a PDC using Samba 3.0.11 with openldap 2.2.23. I have set up a BDC as well (the smb.conf is same as those on PDC except the nebios name as "BDC" and the domain master is set as "no"). Then I try to shut down my PDC to check whether the client login through the BDC. I found that my client (on Window NT) are able to authenticated by BDC, but it keeps