Displaying 20 results from an estimated 900 matches similar to: "Backslash"
2005 May 27
4
Chars as numbers
Is there a proper function for transforming
a character to a number instead of using
i=match('c',letters)
# 3
Thanks.
Josef Eschgf??ller
--
Josef Eschgf??ller
Dipartimento Matematico
Universita' di Ferrara
http://felix.unife.it
2005 Apr 25
3
Data frames
I have two questions about data frames:
(1) How can one extract a simple matrix
from a data frame? I tried
Matrixfromdf = function (frame,without=1)
{a=frame[colnames(frame)[-without]]
v=unlist(a,use.names=F)
matrix(v,ncol=ncol(a))}
but it works well only for without=1,
perhaps also because the function in (2)
gives probably a different meaning to
the first column.
(2)
2005 Apr 06
2
Precision
How precise is R numerically? For example I
wrote the following function for calculating
the volume of the ball inscribed in the
unit cube in m dimensions. In order to see what
happens in 40 dimensions, I created an output
of 24 digits. But how many are precise?
Thanks
Josef Eschgf?ller
Ferrara
---------------------------------------
Vol = function (m)
{if (m<=1) 1
else Vol(m-2)*pi/(m+m)}
2005 May 19
3
Drawing a circle
Hi.
I need to draw a circle whit center (a,b) and radio r. So I use the
R code below
a<-1.975 # valore x del centro
b<-1.215 # valores y del centro
r<-1.46 # radio
x1<-seq(a-r,a+r,by=0.01); #los valores de x
yp<-sqrt(r^2-(x1-a)^2)+b; # los valores y a partir de la ra??z positiva
yn<-(-1)*sqrt(r^2-(x1-a)^2)+b; # los valores y a partir de la ra??z negativa
x<-c(x1,x1);
2004 Jun 16
0
Jobs openings in Italy
I apologize if this post is not relevant to this mailing list, but I
feel it might be of interest for many of you and did not find any other
more suitable R-list.
We are seeking for a couple of post-docs at University of Ferrara,
Italy. The posts are in microarrays data mining and are for people with
a degree in Statistics, IT or related. A documented interest in
biological problems,
2008 Aug 06
1
Matching a period in grep...
Hi folks,
Can anyone enlighten me as to why I get the following when I search for
".csv" at the end of a string?
> grep("\.csv$","Blah.csv",value=TRUE)
[1] "Blah.csv"
Warning messages:
1: '\.' is an unrecognized escape in a character string
2: unrecognized escape removed from "[\.]csv$"
R reference for regular expressions says
2011 Apr 07
1
Two questions about metacharacter in regexprs and function return
for the script, please kindly see the script below. At line 10 and line 13,
my problems occurs.
The first one is I try to retrieve the gene official name from a column of a
table. The pattern of official name is something starting with gene_name.
For detail problems, please see the according lines.
Any suggestions are appreciated
example of matching source (extract the Nnat, sometime it would
2014 Apr 24
1
The regular expressions in compareVersion()
Hi,
I guess the backslash should not be used as the separator for
strsplit() in compareVersion(), because the period in [.] is no longer
a metacharacter (no need to "escape" it using a backslash):
https://github.com/wch/r-source/blob/trunk/src/library/utils/R/packages.R#L866-L867
> compareVersion
function (a, b)
{
....
a <- as.integer(strsplit(a, "[\\.-]")[[1L]])
2001 Apr 26
1
list.files wildcard
Hello all,
I have a simple question:
I have filenames that look like these:
"n031ku09.10msmeanc" "n031ku10.10msmeanc" "n031ku11.10msmeanc"
[22] "n031ku12.10msmeanc" "n031ti01.10msmeanc" "n031ti02.10msmeanc"
I also have a set of the same without the "c" at the end.
When I run list.files(".",
2011 Aug 30
2
url prep function (backslash issue)
Greeting R
Community,
I am a
windows user so this problem may be specific to windows. I often want to source
files from within R
such as:
C:\Users\Rinker\Desktop\Research & Law\Data\School Data 09-10. To source
this file I need to go
through the
path and replace all the backslashes (\) with forward slashes (/). I usually do
this in MS Word
using the
replace option, however, I'd like
2002 Apr 11
3
new acf package
I'm a PhD student and I'm working with covariance function. I'm interested
to know if exist some packages in R to calculate and plot the
bidimensional Autocovariance Function. the input matrix is a matrix that
describe a spatial location over a 2-D space and I want to use it in the
same way I can use a time serie in the 1-D acf.
Thanks,
Nicola.
2002 Apr 11
3
new acf package
I'm a PhD student and I'm working with covariance function. I'm interested
to know if exist some packages in R to calculate and plot the
bidimensional Autocovariance Function. the input matrix is a matrix that
describe a spatial location over a 2-D space and I want to use it in the
same way I can use a time serie in the 1-D acf.
Thanks,
Nicola.
2019 Jan 25
0
[klibc:update-dash] expand: Do not quote backslashes in unquoted parameter expansion
Commit-ID: afc40b4eb057b08d8cc2eebefdf6cac05849e8ae
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=afc40b4eb057b08d8cc2eebefdf6cac05849e8ae
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 28 Mar 2018 18:37:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] expand: Do not quote
2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not quote backslashes in unquoted parameter expansion
Commit-ID: 6b0cf885180cfb08f7ec5139e67e581bbba5d6be
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6b0cf885180cfb08f7ec5139e67e581bbba5d6be
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 28 Mar 2018 18:37:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: expand: Do not
2013 Feb 05
2
R Regular Expressions - Metacharacters
I thought that I can use metacharacters such as \w to match word characters
with one backslash. But for some reason, I need to include two backslashes.
> grepl(pattern='\w', x="what")
Error: '\w' is an unrecognized escape in character string starting "\w"
> grepl(pattern='\\w', x="what")
[1] TRUE
I can't find the reason for this
2019 Jun 12
2
Wildcard patterns in `--undefined` linker option
On Tue, Jun 11, 2019 at 10:54 PM Peter Smith <peter.smith at linaro.org> wrote:
> On Tue, 11 Jun 2019 at 14:31, Rui Ueyama via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> >
> > Hi,
> >
> > I got a feature request from an internal customer of lld, but I don't
> know whether we should implement it or not, so I'd like to get opinions
>
2018 Feb 02
0
Re: [ovirt-users] Slow conversion from VMware in 4.1
Hello Richard,
unfortunately upgrading virt-v2v is not an option. Would be nice, but
integration with vdsm is not yet ready for that options.
On Thu, Jan 25, 2018 at 11:06 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
[cut]
> I don't know why it slowed down, but I'm pretty sure it's got nothing
> to do with the version of oVirt/RHV. Especially in the initial phase
2018 Feb 05
0
Re: [ovirt-users] Slow conversion from VMware in 4.1
On Fri, Feb 2, 2018 at 12:52 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
> There is a section about this in the virt-v2v man page. I'm on
> a train at the moment but you should be able to find it. Try to
> run many conversions, at least 4 or 8 would be good places to start.
Hello Richard,
read the man but found nothing explicit about resource usage. Anyway,
digging on
2018 Feb 06
0
Re: [ovirt-users] Slow conversion from VMware in 4.1
On Mon, Feb 5, 2018 at 11:13 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
> http://libguestfs.org/virt-v2v.1.html#vmware-vcenter-resources
>
> You should be able to run multiple conversions in parallel
> to improve throughput.
>
> The only long-term solution is to use a different method such as VMX
> over SSH. vCenter is just fundamentally bad.
4 conversions in
2018 Jan 25
0
Re: [ovirt-users] Slow conversion from VMware in 4.1
On Thu, Jan 25, 2018 at 10:08 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
> There's got to be some difference between your staging environment and
> your production environment, and I'm pretty sure it has nothing to do
> with the version of oVirt.
>
> Are you running virt-v2v inside a virtual machine, and previously you
> ran it on bare-metal? Or did you