search for: rstr

Displaying 9 results from an estimated 9 matches for "rstr".

Did you mean: rst
2008 Nov 06
1
How to get the length of an UTF-8 string
Hi there, I am intending to get the length of an UTF-8 string which contains some Japanese characters (let's say, rstr) in R language. I try to use the nchar(rstr) to get its length, however, it returns the "NA" for it contains some multi-byte characters. Is there any alternatives to return the length of this rstr? Any suggestion is appreciated. Long
2005 Dec 02
1
Compile error on FreeBSD 4.10 gcc 2.95.4
...al gem file not found: ferret*.gem Attempting remote installation of ''ferret'' Updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a while... index_io.c: In function `frt_indexin_refill'': index_io.c:80: syntax error before `rStr'' index_io.c:82: `rStr'' undeclared (first use in this function) index_io.c:82: (Each undeclared identifier is reported only once index_io.c:82: for each function it appears in.) index_io.c: In function `frt_read_byte'': index_io.c:103: syntax error before `res'' ind...
2009 Jan 24
1
Help with dudi.pca
...0.336 0.122 0.139 0.14 ... $ lln : num 0.798 0.643 0.863 0.835 0.823 ... $ rrn : num 0.789 0.702 0.894 0.895 0.923 ... $ asym2: num 0.177 0.304 0.108 0.187 0.274 ... $ asym3: num 0.0755 0.0975 0.0818 0.0651 0.13 ... > str(rownames(op)) chr [1:37] "abov-belw" "ampl-rstr" "angl-rndd" "ascn-dscn" ... > str(em3) 'data.frame': 37 obs. of 9 variables: $ B--: int 4 1 12 14 0 3 2 15 3 5 ... $ P--: int 4 1 2 3 5 15 1 0 3 1 ... $ U--: int 10 16 4 1 13 0 15 3 12 12 ... $ --B: int 5 13 10 15 6 1 5 16 5 8 ... $ --P: int 6...
2004 Jun 08
5
fast mkChar
Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields is the mkChar() function which on each call incurs a lot of garbage-collection-related overhead. I wonder if there is a "vectorized" version of mkChar, say mkChar2(char **, int
2006 Oct 10
4
Need help for coding an extension to ferret
...2INT(rb_funcall(rhit, id_doc, 0)); // // HERE I WOUlD LIKE TO LOAD THE DOCUMENTS, ID IS THE GOOD DOC_ID.. // I WOULD LIKE TO GET THIS IN FACT (ruby): // doc_id = INDEX.search(''query'').hits.first // INDEX[doc_id].load <== THAT''S WHAT I WOULD LIKE TO GET ! // } rstr = rb_str_new2(str); free(str); return (argv[0]); } of course, i''ve bound the method to the good object etc... Hope somebody''ll help ! Thank you by advance, Jeremie ''ahFeel'' BORDIER -- Posted via http://www.ruby-forum.com/.
2005 Nov 30
8
Compilation of ferret C-extension under Windows.
Hi, David. I have recently fixed ferret C sources and successfully compile extension with MSVC.Net The problem was that MS compiler is more stricter that GCC and require that all variables were declared before using. There was ~30 such declaration. I have fixed them all. But I am not sure that it works because tests failed with following error both on clean and patched versions. So seems that it
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
...ent, 1:ascii, 2:status*/ unsigned char length; /*for ascii, how many cmds*/ unsigned char rfmt; /*unit divider for measurement, bit position for status*/ unsigned char cmd[6]; /*UPS command bytes*/ unsigned char rbyteH; /*msb result*/ unsigned char rbyteL; /*lsb result*/ unsigned char rstr[256]; /*string result from multiple commands (lenght>1)*/ time_t when; /*time of last result*/ unsigned char init; /*used to check if struct block has something valid*/ unsigned char supported; /*if this feature is supported*/ } cmd_s; //fill struct //fs(0,&c[0],"lala1",...
2012 Apr 11
1
row.names in dunes and dunes.env?
Hello, I've got a small dataset on box turtle shell measurements that I would like to perform a detrended correspondence analysis on. I thought that it would be interesting to examine the morphometrics for each species in the area of overlap and in areas where neither species occurs.  I've taken a look at the dune and dune.env datasets in vegan. Using the str() command gives me  >
2007 Aug 03
0
StandardTokenizer Doesn''t Support token_stream method
...ource" link on the StandardTokenizer documentation for "new": http://ferret.davebalmain.com/api/classes/Ferret/Analysis/StandardTokenizer.html# You''ll see that the rdoc comment apparently lies :) That formal parameter name that should hold "lower" is named "rstr". Fishy. A quick look indicates that WhiteSpaceTokenizer has a similar mismatch with its documentation. Is there an idiomatic way to reuse analyzer chains? -- Posted via http://www.ruby-forum.com/.