search for: char2

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

Did you mean: char
2012 Oct 14
3
Pivot Table "like" structure
...JKL", "KK", "KL", "KMM", "OKC", "TYU"), class = "factor"), Char1 = structure(c(1L, 2L, 1L, 3L, 4L, 2L, 3L, 5L), .Label = c("A", "B", "C", "D", "M"), class = "factor"), Char2 = structure(c(1L, 2L, 1L, 2L, 3L, 4L, 4L, 2L), .Label = c("ABCD", "EFGH", "FGHJ", "GGGG"), class = "factor"), Char3 = structure(c(1L, 1L, 2L, 3L, 1L, 1L, 2L, 3L), .Label = c("ASDFG", "DDDDD", "EEEEEE"), c...
2003 Sep 02
3
How to avoid automatic coercion to factor?
I have a function that manipulates a list of numeric and character components of equal length and wants to return a data.frame. EG, f<-function() { a<-list(Int1=1:5,Char1=letters[1:5],Char2=letters[6:10]) b<-data.frame(a) } How can I get the columns Char1, Char2, (...CharN) returned coerced to character and not factor? It appears that I could coerce individual columns by b$CharI<-as.character(b$CharI). Is there a less ugly way of doing this? Thanks, Steve Dutky 301-545-4113...
2012 Nov 26
1
error in plot(table(c('a','a')))
...table of characters with only 1 value I get an error (Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ). With more than one value I don't get errors, neither with integers (even if only 1 value): tbl.char1 <- table(c('a','a')) tbl.char2 <- table(c('a','a','b')) tbl.int1 <- table(c(1,1)) # error: plot(tbl.char1) # no errors: plot(tbl.char2) plot(tbl.int1) sessionInfo() R version 2.14.0 (2011-10-31) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_...
2012 Nov 26
1
error in plot(table(c('a','a')))
...table of characters with only 1 value I get an error (Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ). With more than one value I don't get errors, neither with integers (even if only 1 value): tbl.char1 <- table(c('a','a')) tbl.char2 <- table(c('a','a','b')) tbl.int1 <- table(c(1,1)) # error: plot(tbl.char1) # no errors: plot(tbl.char2) plot(tbl.int1) sessionInfo() R version 2.14.0 (2011-10-31) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_...
2008 May 15
2
Adding columns to dataframe
Hi, I have a dataframe SDF1 that looks like this: Char1 Char2 Char 3 W.2007.02 W.2007.09 W.2007.16 W.2008.13 A C1 F1 F2 F3 A C2 F4 B C3 F5 F6 I have another dataframe SDF2 with 163 cols that has the following column names Char1 Char2 Char 3...
2006 Aug 14
0
NEWBIE QUESTION - recode in Ruby
...hile i < value.length curchar = text_decrypt_symbol(value, i) ^ enc++ result += curchar.chr if enc > 255 enc = 0 end i+=2 end return result; end def text_decrypt_symbol(value, value2) char1 = value[value2, 1] char2 = value[value2+1, 1] return (char1.chr - 100)*16 + char2.chr - 100; end Apparently the .chr method requires an integer to work. Anyone have any advice?
2009 Apr 03
1
Discriminant Analysis - Obtaining Classification Functions
...R. I have some plant samples (divided into several groups) on which I measured a few quantitative characteristics. Now, I need to infer some classification rules usable for identifying new samples. I have used the function lda from the MASS library in a usual fashion: lda.1 <- lda(groups~char1+char2+char3, data=xxx) I'd like to obtain the classification functions for the particular groups, with the aid of which I could classify unknown samples. I know I can use predict.lda to classify such samples, but I need to obtain some equations into which I could simply put the measured values of an...
2002 Aug 14
0
re: using mac-addr for selecting configfile now working
...eax and al,0Fh cmp al,10 - jae .high -.low: add al,'0' - jmp short .char -.high: add al,'A'-10 -.char: stosb + jae .high2 +.low2: add al,'0' + jmp short .char2 +.high2: add al,'A'-10 +.char2: stosb pop eax - loop .hexify_loop + loop .hexify_loop2 ; ; Begin looking for configuration file @@ -730,7 +752,7 @@ .no_option: ; Have to guess config file name -...
2010 Sep 07
1
DO NOT REPLY [Bug 7667] New: "devices" regression test fails on x86_64-apple-darwin10
...rces/rsync/testtmp/devices/rsync.chk 2010-09-07 15:17:06.000000000 +0300 +++ /Users/cartman/Sources/rsync/testtmp/devices/rsync.out 2010-09-07 15:17:06.000000000 +0300 @@ -1,6 +1,7 @@ .d..t...... ./ cDc.t...... block cDc........ block2 +cD+++++++++ block3 cD+++++++++ char cD+++++++++ char2 cD+++++++++ char3 test 4 failed ----- devices log ends -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
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
2004 Nov 23
3
Problem with read.xport() from foreigh package (PR#7389)
Full_Name: Ruskin Chow Version: R 2.0.1 OS: Windows 2000 Submission from: (NULL) (203.169.154.66) Data imported from SAS using read.xport() in package foreign are converted to <NA> when the SAS data field consists of character strings that are only one character long. This is apparently a previously reported bug and perhaps fixed in some platform other than Windows (rw2001).Some