Displaying 20 results from an estimated 20000 matches similar to: "How many attributes are there of a variable?"
2009 Aug 23
1
How to generate an error message when 'match' does not find any matches?
Hi,
> match(4, c(1,2,3))
[1] NA
The above code run smoothly. It would not stop when 4 does not mach in
c(1,2,3). I am wondering if there is a way to stop the code and pop up
an error message immediately. This capability to stop will make
debugging easier.
Regards,
Peng
2009 Aug 11
3
Is there a summary on different version of 'apply' functions? What is the meaning of the prefixes?
Hi,
There are quiet a few different 'apply' functions, such as lapply,
sapply and many more. I'm very familiar with the 'Apply' function in
Mathematica. Can somebody point me a summary of all the 'apply'
functions in R. Also, I'm curious that what 'l' and 's' (and other
prefixes) stand for in 'lapply' and 'sapply'
Regards,
Peng
2015 Jan 06
2
[LLVMdev] Are there manpages for llvm?
Hi,
I have llvm installed through MacPorts. But I don't see macports
installed. Are there supposed to be manpages of commands like lli
installed?
--
Regards,
Peng
2009 Aug 06
5
Is there a 'vi' mode in R?
Hi,
I'm wondering if R provide a vi mode in the command line just like
other shells such as bash do. Can somebody let me know?
Regards,
Peng
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
I did a sanity check and run some of the bitcode I complied with gllvm and
it seems to work fine under lli. The only issues is to make sure you load
all the (external) libraries the bitcode needs. I highly suggest you run a
debug version of lli under a debugger and see what exactly happens.
On Mon, Jan 28, 2019 at 12:45 PM Peng Yu <pengyu.ut at gmail.com> wrote:
> It seems that it does
2009 Sep 06
2
How to figure the type of a variable?
Hi,
I want to know what is there returned values of 'lm'. 'class' and 'lm'
does not show that the returned value has the variable coefficients,
etc. I am wondering what is the command to show the detailed
information. If possible, I aslo want the lower level information. For
example, I want to show that 'coefficients' is a named list and it has
2 elements.
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
>
> but doesn't emit optnone and nounwind attributes
>
s/nounwind/noinline
On Mon, Jan 28, 2019 at 11:35 AM Jakub (Kuba) Kuderski <
kubakuderski at gmail.com> wrote:
> As far as I understand, gllvm doesn't run LTO pipeline or any cross-module
> optimization, and the optimization level provided is only used to compile
> each Translation Unit separately.
> If you
2009 Aug 10
5
Example scripts for R Manual
Hi,
I am wondering if some experienced users would help put the
ready-to-run code of the examples in the manuals. It would help new
users learn R faster by putting all the examples in an ready-to-run R
script file. Can somebody help do so sometime and post the code along
with the pdf manuals?
http://cran.r-project.org/manuals.html
Regards,
Peng
2009 Sep 14
3
How to refer to the last a few rows?
Hi,
x=matrix(1:60,nr=6)
I can refer the last 2 rows by
x[5:6,]
If I don't know the total number of rows is 6, is there a way to refer
the last 2 rows?
Regards,
Peng
2012 Dec 30
4
[LLVMdev] git repository of the tutorial
Hi,
I'm learning the tutorial.
http://llvm.org/docs/tutorial/
I'm wondering if there is already a git repository of the examples in
the tutorial so that I don't have to copy the code from the webpage.
Thanks!
--
Regards,
Peng
2006 May 26
9
What syntax is this? belongs_to :Person
so when I''m reading the pick axe book second edition I don''t see
anything like the syntax you see people using in rails code.
Specifically when you see.
belongs_to :Person
has_many :Phones
etc
these are methods on ActiveRecord right?
Why is this invocation syntax never described in the Pick Axe book?
I do see things like attr_reader :some_attribute etc but you
2009 Sep 14
2
What are the return values of aov?
Hi,
I don't quite understand what are the return values of aov. I know
that it has 'coefficients'. But I need to know what all the other
return values are. Can somebody let me know how to figure them?
Value:
An object of class 'c("aov", "lm")' or for multiple responses of
class 'c("maov", "aov", "mlm",
2009 Sep 05
2
How to 'apply' on multiple arguments?
Hi,
I am wonder if there is a function similar 'apply' but it could accept
multiple arguments?
For example, I have the following matrix.
x=matrix(1:6,nr=2)
y=matrix(1:6,nr=2)
I want to find a function that can be used to compute the linear
regression for each pair of rows in the two matrices?
multiple_apply(x,y,1,function(u,v){lm(u ~ v)}
That is, I wound like something like the above
2009 Oct 02
3
How to get duplicated items in a vector?
Hi,
> x=c(rep(1,3),rep(3,2))
> x
[1] 1 1 1 3 3
> duplicated(x)
[1] FALSE TRUE TRUE FALSE TRUE
>
As shown in the above code, 'duplicated' doesn't return 'F' for the
first '1' and first '3' in 'x'. I am wondering if there is a function
that can return an indicator for any element whether it appears in a
vector twice or more.
Regards,
Peng
2009 Sep 06
2
How to pop up the graphics window from Rscript?
Hi,
I am wondering how to pop up the graphics window from Rscript. I run
the following code, but I don't see the graphics window, even
transiently.
Regards,
Peng
$ Rscript plot.R
> x=1:10
> y=1:10
> plot(x,y)
>
2012 Dec 30
3
[LLVMdev] git repository of the tutorial
On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Hello Peng Yu and List,
>
> I have put toy.cpp into github but it has a form of LLVM project
> makefile infrastructure. So you can build it together with LLVM
> Project source tree.
>
> git://github.com/Journeyer/klang.git
>
> There exist many branches and each branch is for
2012 Dec 30
0
[LLVMdev] git repository of the tutorial
Hello Peng Yu and List,
I have put toy.cpp into github but it has a form of LLVM project
makefile infrastructure. So you can build it together with LLVM
Project source tree.
git://github.com/Journeyer/klang.git
There exist many branches and each branch is for each chapter of Kaleidoscope.
Regards
Journeyer
2012/12/30 Peng Yu <pengyu.ut at gmail.com>:
> Hi,
>
> I'm learning
2019 Jan 16
2
How to get the string representation of an instruction?
he probably means text representation like in text IR
Zhang
> 在 2019年1月16日,15:42,Ryan Taylor via llvm-dev <llvm-dev at lists.llvm.org> 写道:
>
> Is Value::getName() not what you want?
>
>> On Wed, Jan 16, 2019 at 10:25 AM Peng Yu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>> Hi,
>>
>> I don't see a way to convert an Instruction to a
2013 Jan 01
1
[LLVMdev] git repository of the tutorial
Hello Peng Yu,
I found the same error on my Macbook Air.
This was my first trying on MacOS X.
Troubleshooting this might take sometime.
Only thing I can say now that klang is tested successfully on Ubuntu with
- LLVM 3.2 official release on LLVM download page
- LLVM svn latest update
Clang compile produces an error message on MacOS X with the LLVM svn
latest update
I am trying to find the
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
This works great.
> You can also try using the gllvm wrapper: https://github.com/SRI-CSL/gllvm ; it's quite reliable and easy to use in my experience.
Just to be sure. Only one version of bc file will be generated that
corresponds to the compiler options provide at configure?
The original approach using ld.gold will provide several .bc files
that correspond to different stages of the