search for: txt2

Displaying 13 results from an estimated 13 matches for "txt2".

Did you mean: txt
2011 Mar 21
3
Replacing Period in String
...periods as I have removed the comma, but instead the complete string is wiped out. I would appreciate it if someone could let me know how I communicate that I want to remove the period verbatim to R. Many thanks. --John Sparks > txt="This is a test. However, it is only a test." > txt2<-gsub(",","",txt) > txt2 [1] "This is a test. However it is only a test." > txt3<-gsub(".","",txt) > txt3 [1] "" >
2012 Aug 30
2
Help on Plot Title where text is "mixed" with numerical carachters
Dear All,   I have the following code set up:   x <-2000 y <-8 z <-3   I would need to use these numbers to show up in my plot title "mixed" with text. The x,y,z numbers would need to change, the text would not. So my title should look like this   "x txt1 y txt2 z txt3"   so if: txt1=hours txt2=minutes txt3=seconds   then my title of the plot should read:   2000 hours 8 minutes 3 seconds   any thoughts on how to do this would be greatly apreciated   thanks,   Andras [[alternative HTML version deleted]]
2010 May 05
2
readLines with space-delimiter?
Hi, I am reading a large space-delimited text file into R (41 columns and many rows) and need to do run each row's values through another R object and then write to another text file. So, far using readLines and writeLines seems to be the best bet. I've gotten the data exchange working except each row is read in as one 'chunk', meaning the row has all values between two quotes
2014 Jul 22
2
Ayuda Error in `colnames<-`(`*tmp*`, value = c(
...uot;", exe, "\" \"", pdf1, "\"", sep = ""), wait = F) > system(paste("\"", exe, "\" \"", pdf2, "\"", sep = ""), wait = F) > txt1<-sub(".pdf", ".txt", pdf1) > txt2<-sub(".pdf", ".txt", pdf2) > d1<-readLines(txt1, encoding="UTF-8") > d1<-iconv(enc2utf8(d1), sub = "byte") > d2<-readLines(txt2, encoding="UTF-8") > d2<-iconv(enc2utf8(d2), sub = "byte") > df<-c(d1,d2) >...
2012 Dec 19
2
read.csv reads more rows than indicated by wc -l
When I have a csv file that is more than 6 lines long, not including the header, and one of the fields is blank for the last few lines, and there is an extra comma on of the lines with the blank field, read.csv() makes creates an extra line. I attached an example file; I'll also paste the contents here: A,apple A,orange A,orange A,orange A,orange A,,, A,, ----- wc -l reports that this file
2002 Apr 29
0
SafeDisc FAQs
...Some other versions might work too. SafeDisc 2 is not supported yet. How does SafeDisc 1 work ? ========================== SafeDisc encrypts the real executable into a .icd file, and uses a wrapper to decrypt the executable. The wrapper contains 3 code sections: `.text', `.txt' and `.txt2'. `.txt' is encrypted. The wrapper starts by decrypting itself, using the checksum of `.text', the binary content of `.txt2' and some values which depend on debugger detection tests. If a debugger is loaded, if a software breakpoint is set in the first 8 bytes of any of the ker...
2004 May 16
1
importing text file with duplicate rows / indexing rows and columns
Could somebody advise me about importing a txt file as a frame? I am using the command: test <- read.delim ("~/docs/perl/expr_ctx.txt2", header=T, sep = "\t", row.names = 1) This gives me an error because there are duplicate rows. In the txt file, the columns are unique subjects and the rows are variables, so I had planned to transform the file after importing. The first row and column are text labels, which I co...
2010 Apr 24
1
Formatting numerical output
...#excludes range of time data between int * x and (int*x) + int lm.subdat <- lm(length~time, subdat) #regression rs.subdat <- summary(lm.subdat)$r.squared #getting R-squared information txt1 <- ("Excluded range: Time") #creating components of output message txt2 <- ("R^2 =") #creating components of output message lowend <- (int*x) highend <- (int*x + int) output <- c(txt1, lowend, highend, txt2, rs.subdat) print.noquote(output, sep="\t") } sink() Currently my output looks like: [1] Excluded range: Time 0...
2011 Dec 05
1
Toggle cASE
Hello R-help list,   I am looking for way to toggle the case of the characters like a flip-flop; that is from ''Hello'' to "hELLO" or vice versa.   I know that there are a number of functions like casefold, tolower, toupper, etc. but these functions change the case in an uniform way.   Thanks in advance,   Antonio Rivero Ostoic         Antonio Rivero Ostoic PhD Student,
2012 Jun 13
2
need help
hello could you help in solving the following problem I want to replace same consecutive words by a single word in a sentence.. for example --- my name name name is micky so I want the output like this--my name is micky I want this solution for a text file can you tell me the code for it?? thanking you in anticipation -- Shilpa Rai MSc.(2011-2013) Applied Statistics and Informatics Indian
2008 Aug 01
1
Properly Parsing Pre-Superscripts & Displaying Them With grid.text
...FALSE), ylim = c(0:80)) plot(pCl1) # This works fine but doesn't have everything I want: leg.txt1 <- paste("Based upon:\n", ": 75%\n", ": 25%", sep = "") grid.text(leg.txt1, 0.5, 0.5) # This paste doesn't work due to the expression statements: leg.txt2 <- paste("Based upon:\n", expression(^35*Cl), ": 75%\n", expression(^37*Cl), ": 25%", sep = "") # This doesnt' produce an error, but doesn't produce what is wanted either, # as the expression is taken (almost) literally: leg.txt3 <- paste("...
2008 Jan 14
4
Focus on TextCtrl
Hello. I have a problem with set focus on a TextCtrl in wxRuby. I must do something like Login TextCtrl and set focus on a next TextCtrl by clicking Tab key. -- Posted via http://www.ruby-forum.com/.
2006 Sep 20
1
ADS & getent
...i launch getent passwd; only local users are shown. Why? My other problem is when i create a file on a share (using a winXP client) file security is not the good one: ]# ll total 4 -rwxr--r-- 1 root ERITEST\domain users 8 sep 20 12:13 test.txt -rwxr--r-- 1 root ERITEST\domain users 0 sep 20 12:16 txt2 a) why root is the primary user instead of Administrator b)is there a way to set the primary group "ERITEST\domain users" to another one? c) maybe this problem is dependent of the first one (getent) Thanks for your help Guillaume In addition, i give you a sample of #testparm -v...