search for: abcdefghij

Displaying 6 results from an estimated 6 matches for "abcdefghij".

Did you mean: abcdefghi
2012 Dec 15
1
How to limit string size when displaying data frames?
...et the maximum width of character columns when printing a data frame? I've looked into print(), format(), and options() and have been unsuccessful. For example, I'd like to achieve the results below without having to modify the data itself. > x <- data.frame(c1=rnorm(5), c2="ABCDEFGHIJKLMNOPQRSTUVWXYZ") > x c1 c2 1 0.7076495 ABCDEFGHIJKLMNOPQRSTUVWXYZ 2 -0.1572245 ABCDEFGHIJKLMNOPQRSTUVWXYZ 3 0.3515308 ABCDEFGHIJKLMNOPQRSTUVWXYZ 4 0.3492925 ABCDEFGHIJKLMNOPQRSTUVWXYZ 5 -0.3805869 ABCDEFGHIJKLMNOPQRSTUVWXYZ > x$c2 <- substr(x$c2, 1, 10) #O...
2013 Dec 13
1
substring() and propagation of names
Hi, In R < 3.0.0, we used to get: > substring(c(A="abcdefghij", B="123456789"), 2, 6:2) A B A B A "bcdef" "2345" "bcd" "23" "b" But in R >= 3.0.0, we get: > substring(c(A="abcdefghij", B="123456789"), 2, 6:2) [1] &qu...
2007 Dec 03
2
interaction with C++ code (PR#10487)
...nd g++3.4. I have a problem with character data that is passed back from C++ code. A small example is the following C++ code and R functions. #include <sstream> extern "C" { void extracttxt( char **txt, int *nchars) { std::ostringstream oss; oss << "abcdefghij"; const char *ltxt=oss.str().c_str(); for (int j=0;j<*nchars;j++) *txt[j]=static_cast<char>(ltxt[j]); } } # begin R code dyn.load("test.so") "testtxt" <- function() { nchars <- 80 txt <- .C("extracttxt" ,charact...
2010 Jul 21
3
String processing - is there a better way
...h(idx) ? for(i in 1:n) { ??? ysplit[[i]][starpos[[i]]] = "" ? } ? y[idx]<-unlist(lapply(ysplit, paste, sep='', collapse='')) ? return(y) } x<-c("AA*.*A,,,", "**a.a*,,,A", "C*c..", "**aA") y<-c("abcdefghi", "abcdefghij", "abcde", "abcd") CleanRead(x,y) [1] "abdfghi" "cdeghij" "acde"??? "cd" Is there a better way to do this? Part 2) My next step in the string processing is to take the characters in the output of CleanRead and subtract 33 from th...
2019 Feb 14
1
rsync rewrites all blocks of large files although it uses delta transfer
On Wednesday, February 13, 2019 6:25:59 PM EET Remi Gauvin <remi at georgianit.com> wrote: > If the --inplace delta is as large as the filesize, then the > structure/location of the data has changed enough that the whole file > would have to be written out in any case. This is not the case. If you see my original post you would have noticed that the delta transfer finds only
2009 Jul 23
6
SSH attacks from china
...951/password: 4 times 98765/password: 4 times ROOT%$#@!/password: 4 times \\-9/password: 4 times \\-97531/password: 4 times \\\\==--00998877/password: 4 times a1b2c3/password: 4 times aaron/password: 4 times abcdef/password: 4 times abcdefghij/password: 4 times abcdefghijklmnop/password: 4 times abel/password: 4 times ac/password: 4 times ad/password: 4 times adduser/password: 4 times adler/password: 4 times adley/password: 4 times administrator/password: 4 times adress/passw...