Displaying 20 results from an estimated 700 matches similar to: "ASCII map?"
2010 Jun 01
3
problem with intToChar
Hi, Dear R- community,
I am use the intToChar function to convert the integers to letters. But the
output is mess. Can you guys give some suggestions? Thanks!
> outcome.predict
[1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 7 4 4 4 4 4 4
4 4
[26] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 7 4 4 4 4 4 7 4 4
4 4
[51] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
2007 May 14
1
Native implementation of rowMedians()
Hi,
I've got a version of rowMedians(x, na.rm=FALSE) for matrices that
handles missing values implemented in C. It has been optimized for
memory and speed. To avoid coercing integers to doubles, and hence
allocate an additional 200% memory, there is one C function for
integers and one for doubles.
The rowMedians() implementation is currently sitting in my non-CRAN
package R.native
2010 Nov 19
3
all extended ASCII characters exist for R console output?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101119/71f56846/attachment.pl>
2006 May 05
4
str() with attr(*, "names") is extremely slow for long vectors
Hi,
I noticed some time ago that, for instance, named vectors that are
really makes str() really slow when displaying the names attribute. I
don't know exactly when this started, but it wasn't the case say 1-2
years ago. Example (on a WinXP 1.8GHz):
> s <- 1:1000; names(s) <- s
> system.time(str(s))
Named int [1:1000] 1 2 3 4 5 6 7 8 9 10 ...
- attr(*, "names")=
2010 Mar 26
1
Discrete values in levelplot?
Dear all,
I am trying represent a matrix of discrete values. At the moment I am using levelplot from the lattice package, but it seems to only work with numerical values. Is there an option in levelplot that will allow me to assign a color to a discrete value, or another package that will do the same?
To clarify, with levelplot I can represent a matrix such as:
[,1] [,2] [,3] [,4]
[1,]
2005 Jul 15
2
R v2.1.0 patched (>2005-05-09) for Windows?
I'm trying to troubleshoot a case where R crashes on Windows. It does
not occur at all with my R v2.1.0 patched (2005-05-09), but happens on R
v2.1.1 (patched or non-patched) in many different cases. The R
v2.2.0dev (2005-07-15) also got this problem (although it won't crash on
the below example). I previously reported this
2005 Dec 14
1
About help on 'mahalanobis'
Hi,
help on 'mahalanobis' (in the stats package in Rv2.2.0) now says:
"Description:
Returns the Mahalanobis distance of all rows in 'x' and the vector
mu='center' with respect to Sigma='cov'. This is (for vector 'x')
defined as
D^2 = (x - mu)' Sigma^{-1} (x - mu)"
It does return D^2 as written. However,
2002 Feb 20
2
How to get the penalized log likelihood from smooth.spline()?
I use smooth.spline(x, y) in package modreg and I would like to get
value of penalized log likelihood and preferable also its two parts. To
make clear what I am asking for (and make sure that I am asking for the
right thing) I clarify my problem trying to use the same notation as in
help(smooth.spline):
I want to find the natural cubic spline f(x) such that
L(f) = \sum_{k=1}{n} w[k](y[k] -
2001 Mar 07
1
Minor bug in maketitle.pl (with bug correction) (PR#864)
Full_Name: Henrik Bengtsson
Version: rw1022
OS: Windows Me
Submission from: (NULL) (216.175.126.55)
When ${R_HOME}/share/perl/maketitle.pl tries to generate a TITLE that is longer
than $lc-3 (=13) characters long, it repeats the package name on line two.
Example: Now it generates an output like:
com.braju.graphics
com.braju.graphics Bla bla bla...
But, I believe it should
2008 Feb 27
1
Warnings generated by log2()/log10() are really large/takes a long time to display
x <- rnorm(1e6);
y <- log(x); # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
$ NaNs produced: language log(x)
- attr(*, "dots")= list()
- attr(*, "class")= chr "warnings"
y <- log2(x); # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
str(w);
## List of 1
## $ NaNs produced: language
2008 Dec 22
3
Convert ASCII string to Decimal in R (vice versa) was: Hex
Hi Dieter,
Sorry my mistake. I wanted to convert them
into Decimal (not Hexadecimal).
Given this string, the desired answer follows:
> ascii_str <- "ORQ>IK"
79 82 81 62 73 75
> ascii_str2 <- "FDC"
70 68 67
- Gundala Viswanath
Jakarta - Indonesia
On Mon, Dec 22, 2008 at 5:49 PM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:
> Gundala
2007 Aug 29
1
R CMD check recursive copy of tests/
>From NEWS of R v2.6.0 devel:
o R CMD check now does a recursive copy on the 'tests' directory.
However, R CMD check does not run *.R scripts in such subdirectories
(as I thought/hoped for), only those directly under tests/, This may
or may not be intentional. If true, maybe the above should be
clarified as:
o R CMD check now does a recursive copy on the 'tests' directory
2014 Dec 06
1
R CMD check --as-cran and (a)spell checking
Does anyone know if it is possible to add a dictionary file of known
words that becomes part of the *built* package to tell 'R CMD check
--as-cran' not to report these words as misspelled. I want this
dictionary to come with the *.tar.gz such that it will be available
regardless where the package is checked. For instance, currently I
get:
* using log directory
2001 Mar 22
1
Call by reference: Was: Object orientation?
To reply to Yves Gauvreau question (Jan 24, 2001) about how to set values
within function, it is possible to do without without using the "<<-"
assignment operator or other nasty tricks. I had the same problem and I did
a nasty workaround two weeks ago implementing the functionality of reference
variables, but today I "ran into" the [R] help page for ".Alias".
2009 Oct 13
2
No funtions for character code?
Hello,
Do you have a function returns codes of given characters?
Best Regards,
hyunjo
[[alternative HTML version deleted]]
2001 Jul 06
1
Title of bundled packages in the library index (PR#1017)
Full_Name: Henrik Bengtsson
Version: 1.3.0
OS: Windows Me
Submission from: (NULL) (216.175.122.171)
I realized that the title of packages in the library index when they are in a
bundle is the title of the bundle and not the package.
It looks like the TITLE file, which apparently is used for generating the
library index, takes the value of the bundle's title and not the package's
title.
2009 Nov 11
2
typo in docs for unlink()
The VALUE section in the help for 'unlink' says:
| 0| for success, |1| for failure. Not deleting a non-existent file is
not a failure, nor is being unable to delete a directory if |recursive =
FALSE|. However, missing values in |x| result are regarded as failures.
The last phrase doesn't make sense to me. Should it be either "missing
values in x are regarded as
2006 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea
I have 3 simple files to show example ( below ).
index.rhml : If I put "?nial" inside the textarea, then submit to
:action => post
post.rhml : wrote
?nial
195
"\303\251nial"
//
params[:comment][:message] return => ?nial
params[:comment][:message][1] return => 195 ! ( 195 is not
2010 Jan 25
3
Matching a character in a string
Hello.
Sorry for this very basic question but I didn't find (of didn't understand)
the answer either in the help or in the online guide.
I have a string, let's say "hello". I want to know if there is some
character in it, let's say an 'o'.
I tried
> charmatch("o", strstplit("hello",""))
but it gives NA (why??)
Thinking it may
2016 Mar 12
2
R-3.2.4 Mac/Linux different in < on characters
Linux:
> x<-c("0","1");y<-c("a","-1"); x<y
[1] TRUE TRUE
Mac:
x<-c("0","1");y<-c("a","-1"); x<y
[1] TRUE FALSE
On both systems, LC_COLLATE/LC_CTYPE/LANG are set to en_US.UTF-8
In Java,FWIW, I get the Mac answer if I use String.compareTo and the
Linux answer if I use Collator.compareTo, but