Displaying 20 results from an estimated 50000 matches similar to: "= or <-"
2007 Jul 07
2
Several quick questions
Dear R users,
Here is a couple a quick questions, for which I was unable to not find
any answer in the list archives and in the help:
1- Is there any R equivalents of the VB functions Cint, CStr, etc...
(for non VB users, these functions transform the category of a specified
variable and smartly adapt the value of this variable) ?
I have tried to use the as.numeric, as.factor and as.vector
2011 Aug 31
3
How to modify the dot-dot-dot argument using level names instead of position
Dear R-users,
In the R internals manual, it is said that one can extract the
elements of the dot-dot-dot argument using the special symbols ..1 or
..2. It seems to work just fine but I was wondering if there is a way
one can extract or modify the content of the dot-dot-dot argument
using a level name instead of its position?
For instance, assuming that list(...) returns:
$a
[1] 1 2 3 4 5
2007 Aug 28
6
Factor levels
Dear R-users,
I have found this not-so-recent post in the archives -
http://tolstoy.newcastle.edu.au/R/devel/00a/0291.html - while I was
looking for a particular way to reorder factor levels. The question
addressed by the author was to know if the read.table function could be
modified to order the levels of newly created factors "according to the
order that they appear in the data
2009 Nov 30
3
Question about output from optim
Dear R-users,
I am trying to port to R something that I wrote in Matlab to perform model
parameter optimization using the Nelder-Mead simplex method (fminsearch). I
read the help on ?optim (which seems to be the way to go) as well as a bunch
of posts on the topic, but I would like to make sure about something before
I spend to much time trying to reproduce something that is not possible. The
2007 Aug 06
3
Error in using nlevels in apply function
Dear R users,
I am currently trying to create my first personnal function and use it
with the apply function. The purpose of this function is to create a
vector summarizing the number of levels in a given selection of
data.frame columns.
I tried to transpose the indexation method used by the nlevels function
but it doesn't seem to work. I did not find anything uesful in the
archives so
2010 Apr 14
2
R package documentation
Dear R users,
I am currently writing the documentation for my first package. I have
created a short user manual using sweave/pdflatex which is distinct from the
manual/summary-of-package-functions created by R CMD CHECK. I was wondering
how could I seamlessly combine both documents.
Thanks for your help
Sebastien
[[alternative HTML version deleted]]
2011 Dec 06
2
How to automate the detection of break points for use in cut
Dear R-users,
I would like to know if there is a function (in base R or the extension
packages) that would automatically detect the break points in a vector x
for later use in the cut function. The idea is to determine the boundaries
of the n intervals (n>=1) delimiting clusters of data points which could be
considered "reasonably" close, given a numerical vector x with unknown
2008 May 07
2
Citation in the literature
Hello everyone,
Very quick question: How should I cite the use of R in a publication ?
Thanks in advance.
Sebastien
2011 Oct 19
2
How to call a function defined within another function
Dear R-users,
I would need some advices on the proper way to call a particular function.
This function is called scope.char and it is embedded in the step.gam
function from the gam package. I am trying to call scope.char directly in a
script but I did not find the proper way to do so. Is this even possible? If
so, what is the proper syntax?
Thank you for your time and help.
Sebastien
2007 Sep 02
2
Different behavior of mtext
Dear R Users,
I am quite surprised to see that mtext gives different results when it
is used with 'pairs' and with "plot'. In the two following codes, it
seems that the 'at' argument in mtext doesn't consider the same unit system.
I would appreciate your comments on this issue.
Sebastien
##### Pairs
mydata<-data.frame(x=1:10,y=1:10)
par(cex.main=1,
2007 Aug 13
1
'From' and 'to' arguments in panel.abline
Dear R-users,
The help does not give much details on the use of the arguments 'from'
and 'to' in the panel.abline function. I have looked in the archives but
did not find how to implement them. My different tries failed miserably.
E.g, the following code doesn't seem to work, in a sense that the line
is not limited to the (0,10) range.
Do these arguments really apply to
2008 Aug 22
1
How to handle "~" character after csv importation
Dear R users,
I have to import some csv files in which column headers contain the
character "~". Following the following import call, the character seems
to be replaced by dots in the column names of my data frame. Plus, I
cannot query names(mydata) to find the column index which header should
contain "~" or "."
> mydata <-
2007 Nov 24
1
'Split' chracter
Dear R-users,
The following code splits a very simple dataframe into a list, each
element of the list being one line of the dataframe. You will see that
the split function names each element of the list by using uses the
content of a and b and merging them with a "." character. Is there a way
to customize this character?
a<-1:10
b<-21:30
mydata<-data.frame(a,b)
2007 Nov 27
1
Export in pdf, png, jpg, eps, etc...
Dear R-users,
I have created a bunch of R scripts that automatically create multiple
plots, all saved in a pdf device. I initially chose pdf output in order
to easily access to multiple plots in a single file.
Now, I am trying to play with different devices, like png or eps and I
realize that the settings I used to have nice plots in a pdf device are
giving awful outputs with the other
2011 Apr 19
1
Define ylim in lattice plot based upon panel function output
Dear R-users,
By default, the xyplot function automatically defines the axis ranges based
upon the content of y and x variables. However, when one includes some calls
to other panel.<something> functions in the panel argument, the results
might be out of range and not show up in the final graphs (see lower ends of
the loess line in the following example). Is there a way one can capture the
2009 Aug 01
3
Transparency and trellis device
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated:
Thank you
Sebastien
####
library(lattice)
df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))
settings <- standard.theme()
2012 Nov 09
2
[LLVMdev] fmac generation for cortex-a9
Hi Renato,
It's definitively not A15. Can this be the case that NEON units for cortex-A9 support it but isn't documented/recommended ?
And as mentioned before code is working !
Seb
> -----Original Message-----
> From: rengolin at gmail.com [mailto:rengolin at gmail.com] On Behalf Of
> Renato Golin
> Sent: Friday, November 09, 2012 6:27 PM
> To: Sebastien DELDON-GNB
>
2012 Nov 09
0
[LLVMdev] fmac generation for cortex-a9
cat /proc/cpuinfo ?
Are you sure it's generating VFMA and not VMLA?
On Fri, Nov 9, 2012 at 9:35 AM, Sebastien DELDON-GNB <
sebastien.deldon at st.com> wrote:
> Hi Renato,
>
> It's definitively not A15. Can this be the case that NEON units for
> cortex-A9 support it but isn't documented/recommended ?
> And as mentioned before code is working !
>
> Seb
>
2012 Nov 09
2
[LLVMdev] fmac generation for cortex-a9
Hi Bastien,
Weird gcc is generating fma for my platform STEricsson Novathor with Linaro, code works. It also works when I use LLVM to generate fma (using llc -mtriple=armv7-eabi). Maybe someone from ARM can answer the question ?
Seb
From: JF Bastien [mailto:jfb at google.com]
Sent: Friday, November 09, 2012 5:36 PM
To: Sebastien DELDON-GNB
Cc: Anitha Boyapati; llvmdev at cs.uiuc.edu
Subject:
2012 Nov 09
0
[LLVMdev] fmac generation for cortex-a9
Hi Sebastien,
ARMv7-M has VFMA and LLVM's "triple" is far from perfect.
Wikipedia tells me NovaThor can also be A15, or STE could have cramped
a VFPv4 in it? ;) Or possibly, your code never branches into the VFMA.
Many things could be happening, but usually, VFMA shouldn't be
generated for A9.
A GCC bug, maybe?
On 9 November 2012 16:51, Sebastien DELDON-GNB