Displaying 20 results from an estimated 5000 matches similar to: "format backslash behaviour"
2002 Sep 26
3
error with complex solve (PR#2068)
Full_Name: John Peters
Version: 1.5.1
OS: Windows 2000
Submission from: (NULL) (130.155.2.3)
solve(a,b) with two arguments gives an error if a is complex and b is a vector:
> a_matrix(c(1,2+3i,3,2),ncol=2)
> a
[,1] [,2]
[1,] 1+0i 3+0i
[2,] 2+3i 2+0i
> b_c(2,2+1i)
> solve(a,b)
Error in solve.default(a, b) : A must be a complex matrix
> is.complex(a)
[1] TRUE
>
1999 Jun 20
1
as.numeric with trailing spaces (PR#213)
For R bugs:
"as.numeric" fails on strings with trailing spaces:
(OK in Splus 3.4).
> as.numeric(c("2"," 3","4 "," 5 "))
Warning: NAs introduced by coercion
[1] 2 3 NA NA
>
occurs in both "rw0641b" and "R-base-0.64.1-4-i386.rpm".
Thanks for R
----------------------------------------------------------------------------
1999 Jul 21
4
reluctant to read win95 directory (PR#231)
Using rw0642 under win95, on executing from a directory on the c: drive:
system("command.com /c dir", intern=T)
there is a whirring from drive a: (empty), then the message appears in a
dos box:
General failure reading device aLP!!?
Abort, Retry, Fail?
Repeating the command a few times finally results in success with no
whirring, after which there are no failures (even
2011 May 08
2
Error in AnnotationDbi package - makeProbePackage
Dear all,
We have developed our own Affymetrix chip (Custom Express Array, PM-only
with two species).
I want to analyse the data with the limma package, but for that I need to
built my own CDF package,
probe package and built the filters to analyse one specie or another.
I'm using the makeProbePackage available in the AnnotationDbi (for a
R-2.13.0) but I got the following error message:
1999 Apr 13
1
No subject
Hello,
I just tried the rw0640 version for Windows95.
If I type
link.html.help()
a
1:
appears. Does anyone knows what to type in after that,
it seems that some input is required?
Thanks
CHRISTOPH
*********************************************************
Christoph Kalinowski
Catholic University of Eichstaett
Department of Business Administration
Auf der Schanz 49
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example.
I modified a little to fit my real data, I got an error massage.
Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
Group length is 0 but data length > 0
On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] <
ml-node+s789695n4657196h87@n4.nabble.com> wrote:
> Hi,
> Try this:
>
1999 Apr 14
1
Re: R-0.64.0 for Win9X/WinNT
----------
> De : Guido Masarotto <guido at hal.stat.unipd.it>
> A : r-announce at stat.math.ethz.ch
> Objet : R-0.64.0 for Win9X/WinNT
> Date?: mardi 13 avril 1999 10:08
>
>
> Windows binaries and source at CRAN (binaries/windows/Windows-NT/base)
> have been updated to R-0.64.0.
Thank you very much Guido and Brian!
On my machine (with MikTeX installed), I use
2004 Aug 27
3
gsub, backslash and xtable
R Version 1.9.1 (2004-06-21)
Mac OS X.3.5 Dual 2GHz PowerPC G5
GUI = "AQUA"
I have a data.frame comprising percentiles with the column headings
containing % characters, e.g.
> (pp <- colnames(temp2))
[1] "5%" "10%" "25%" "50%" "75%" "90%" "95%"
I use xtable to convert the data.frame to Latex but I want to
2011 Dec 20
1
Convert ragged list to structured matrix efficiently
Hi All,
I'm wanting to convert a ragged list of values into a structured matrix for
further analysis later on, i have a solution to this problem (below) but
i'm dealing with datasets upto 1GB in size, (i have 24GB of memory so can
load it) but it takes a LONG time to run the code on a large dataset. I
was wondering if anyone had any tips or tricks that may make this run
faster?
Below is
2011 Oct 16
2
question: ragged array
Hello,
I have a big problem which I’m just not able to solve.
I created the following mean value from the following dataset structure:
Id |value
1 | 2
1 | 3
1 | 4
2 | 2
2 | 1
3 | 5
4 | 3
etc.|etc.
with the command:
mean_rating <- tapply(ratok$value, ratok$project_id , mean,simplify = FALSE)
this gives me a ragged array:
> mean_rating [1]
$`14`
2012 Oct 10
4
own function: computing time
Hi all,
I wrote a function that actually does what I want it to do, but it tends to be very slow for large amount of data. On my computer it takes 5.37 seconds for 16000 data points and 21.95 seconds for 32000 data points. As my real data consists of 18000000 data points it would take ages to use the function as it is now.
Could someone help me to speed up the calculation?
Thank you, Tonja
2013 Mar 10
0
max row
HI,
Using
c11<- 0.01
c12<- 0.01
c1<- 0.10
c2<- 0.10
One possible problem is that:
dim(res5)
#[1] 513? 20
res6<-aggregate(.~m1+n1+m+n,data=res5[,c(1:6,9:12,21:24)] ,max)
#Error in `[.data.frame`(res5, , c(1:6, 9:12, 21:24)) :
?# undefined columns selected
A.K.
________________________________
From: Joanna Zhang <zjoanna2013 at gmail.com>
To: arun <smartpink111 at
2011 Nov 04
3
replace double backslash with singel backslash
I want to replace \\ with \ in:
str <-
"C:\\DOKUME~1\\u0327336\\LOKALE~1\\Temp\\RtmpQ5NJ8X\\TIRIS_PICS\\1_Img.jpg"
and tried:
gsub("\\\\", "\\", str)
but this removes the \\ without replacing them by \
Any help much appreciated,
Kay
-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------
2004 Sep 13
1
Adding ranks to a repeatedly ragged array
How can I add an extra column containing the rank
to a ragged array indexed by more than one grouping
factors?
E.g. with the barley dataset:
How can I to add an additional column ``rank''
containing the rank of the ``yield'' of
the different varieties in relation to the indices
``year'' and ``site'' to the barley dataframe?
I achieved to calculate the ranks with:
2012 Mar 07
1
gsub: replacing double backslashes with single backslash
Hello everybody,
this might be a trivial question, but I have been unable to find this using
Google. I am trying to replace double backslashes with single backslashes using
gsub. There seems to be some unexpected behaviour with regards to the
replacement string "\\". The following example uses the string C:\\ which should
be converted to C:\ .
> gsub("\\\\",
2008 May 09
4
Gnome-terminal's backslashes look like Ws with a horizontal line through -- how to get a backslash?
Hello!
I've just started trying gnome-terminal (instead of xterm) because of
its "tabbing" facility. However, I note that with it backslashes appear
something like a W with a horizontal line through it. Any known way to
get a backslash to appear as a backslash?
To see what I mean, use gnome-terminal with
echo '\'
in bash, ksh, etc.
Regards,
Chip Campbell
2011 May 07
2
write.table vs. read.table and the argument "fill"
Just wondering how come read.table lets you specify fill=TRUE for ragged
arrays, but so far as I can tell, no equivalent for write.table?
Not a big deal, since I'm perfectly comfortable w/ write and scan and
the other file I/O goodies. "A foolish inconsistency..." and all that.
Carl
2011 Apr 29
1
regular expression in gsub() for strings with leading backslash
Hello,
Can anyone help on gsub() in R? I have a string like something below, and
wanted to delete all the strings with leading backslash, including "\xa0On",
"\023, "\xab", and many others. How should I write a regular expression
pattern in gsub()? I don't care how many characters following backslash.
txt <- "Is This Thing\xa0On? http://bit.ly/jAbKem
2006 Feb 01
3
inserting one backslash
Hello, I am not very familiar with regular expressions and escaping. I
need to replace the %-signs in a character vector with elements as
"income 0%-33%# to be replaced by "income 0\%-33\%" (for later use in
LaTeX). Using
gsub("%","\\%","income 0%-33%")
does not give the desired result. However, gsub("%","\\\\%","income
2008 Aug 04
3
backslash in character string?
Dear list,
After searching many old posts, I can't find the solution to a simple problem.
can someone tell me how to create a character string with multiple backslashes, as in:
file_dir <- c("C:\files\data\")
I need to create this string and then paste it to many files names for batch processing in another software program. R won't accept the backslash and removes