Displaying 20 results from an estimated 10000 matches similar to: "For loop for distinguishing negative numbers"
2018 Jan 03
0
Distinguishing trunk version number from release
I agree with Hal, X.99 is easier to notice as something different/unusual. It also doesn't revisit the version-naming debate for formal releases.
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Hal Finkel via llvm-dev
Sent: Wednesday, January 03, 2018 11:24 AM
To: James Y Knight; llvm-dev
Subject: Re: [llvm-dev] Distinguishing trunk version number from release
2013 Sep 01
2
[LLVMdev] Distinguishing Pointer Variable and Ordinary Variable
C Code :-
int main()
{
int a=10,c;
int *b;
c=20;
*b=a;
return 0;
}
IR of above code :-
define i32 @main() #0 {
entry:
1. %retval = alloca i32, align 4
2. %a = alloca i32, align 4
3. %c = alloca i32, align 4
4. %b = alloca i32*, align 8
5. store i32 0, i32* %retval
6. store i32 10, i32* %a, align 4
7. store i32 20, i32* %c, align 4
8. %0 = load i32* %a, align 4
9. %1 = load i32** %b,
2009 Jun 22
3
What has happened to the R-Help Google Groups Archive? Alternative?
Greetings,
I usually read this mailing list through google groups
(http://groups.google.com/group/r-help-archive), but when I opened the
webpage this morning it said: "The group named r-help-archive has been
removed because it violated Google's Terms Of Service."
Is there an alternative website which uses a similar structure to
google groups? I had a quick browse on the R Wiki
2008 Oct 06
3
Extracting text from html code using the RCurl package.
Dear R-help,
I want to download the text from a web page, however what i end up
with is the html code. Is there some option that i am missing in the
RCurl package? Or is there another way to achieve this? This is the
code i am using:
> library(RCurl)
> my.url <- 'https://stat.ethz.ch/mailman/listinfo/r-help'
> html.file <- getURI(my.url, ssl.verifyhost = FALSE,
2008 Nov 04
2
How to suppress errors from htmlTreeParse() function in XML package?
Dear R-help,
The following code downloads an html document into variable 'doc' and
then stores an internal representation into variable 'html.tree'. Even
if the html code is malformed, this still works which is fantastic.
However, as in the example below, i do get some ouput from R in the
console which i would like to suppress somehow, so i can keep my
window a bit cleaner.
I
2010 Jun 23
1
is there a Decode HTML function somewhere (similar to URLdecode)?
Dear all,
I am aware of the URLdecode(..) function and was wondering if there
was something similar for HTML?
For example, I would like to convert strings like this:
> x <- "isn't"
into this:
> "isn't"
Many thanks for your time,
Tony Breyal
# O/S: Windows Vista 32 bit
# R version 2.11.0 (2010-04-22)
2013 Sep 01
0
[LLVMdev] Distinguishing Pointer Variable and Ordinary Variable
Check it's type to see if it's a pointer or not?
On 1 September 2013 12:31, Abhinash Jain <omnia at mailinator.com> wrote:
> C Code :-
> int main()
> {
> int a=10,c;
> int *b;
> c=20;
> *b=a;
> return 0;
> }
>
> IR of above code :-
> define i32 @main() #0 {
> entry:
> 1. %retval = alloca i32, align 4
> 2. %a = alloca i32, align 4
2009 Jun 03
2
Regular expression \ String Extraction help
Dear all,
Is there a good way of doing the following conversion:
[YYYY]-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention]
to become
C:\test\[Name]\[YYYY]-[MM]-[DD] [Time] [Day]\[YYYY]-[MM]-[DD] [Time]
[Day] [Name][Integer].[Extention]
i.e. these
2009-04-10 1400 Fri Foo1.txt
2009-04-10 1400 Fri Universities2.txt
2009-04-10 1400 Fri Hitchhikers Guide To The Galaxy42.txt
will become
2008 Oct 13
1
Running R at a specific time - alternative to Sys.sleep() ?
Dear R-Help,
Is it possible to set R up to run a particular script at specific
times of the day? trivial example: If the time is now 8:59:55am and I
wish to run a function at 9am, I do the following:
my.function <- function(x) {
p1 <- proc.time()
Sys.sleep(x)
print('Hello R-Help!')
proc.time() - p1
}
my.function (5)
[1] "Hello R-Help!"
user system
2009 Sep 07
2
using an array of strings with strsplit, issue when including a space in split criteria
Dear all,
I'm having a problem understanding why a split does not occur with in
the 2nd use of the function strsplit below:
# text strings
> txt <- c("sales to 23 August 2008 published 29 August",
+ "sales to 6 September 2008 published?11 September")
# first use
> strsplit(txt, 'published', fixed=TRUE)
[[1]]
[1] "sales to 23 August 2008 "
2009 May 08
3
'Dynamic' 3D plot
Hi,
I am looking for a R package to draw 3d plot. But not in a static way like scatterplot3d or stuff like that. I would like to make rotate the plot, to zoom/unzoom etc..., actually to render the graph 'dynamic'... (for the biologist and bioinformatician, a R package which permitts to reproduce what pdb viewer does).
Does a Way exist to do something like that in R ?
Thanks,
2010 Mar 31
3
regular expression help to extract specific strings from text
Dear all,
Lets say I have the following:
> x <- c("Eve: Going to try something new today...", "Adam: Hey @Eve, how are you finding R? #rstats", "Eve: @Adam, It's awesome, so much better at statistics that #Excel ever was! @Cain & @Able disagree though :(", "Adam: @Eve I'm sure they'll sort it out :)", "blahblah")
> x
[1]
2008 Dec 09
1
RCurl::postForm() -- how does one determine what the names are of each form element in an online html form?
Dear R-Help,
I am looking into using the Open Calais web service (http://
sws.clearforest.com/calaisViewer/) for text mining purposes. I would
like to use R to post text into one of the forms on their website.
In package RCurl, there is a function called postForm(). This sounds
like it would do the job. Unfortunately the URL used in the example is
no longer valid (i have emailed the maintainer
2018 Jan 03
2
Distinguishing trunk version number from release
On 01/03/2018 11:25 AM, James Y Knight via llvm-dev wrote:
> On Wed, Jan 3, 2018 at 12:24 PM, James Y Knight <jyknight at google.com
> <mailto:jyknight at google.com>> wrote:
>
> I'd like to propose that trunk always have a version number which
> is in between versions used by the previous release branch, and
> before the versions used in the next
2009 Aug 27
3
Merge data frames but with a twist.
Dear all,
Question: How to merge two data frames such that new column are added
in a particular way?
I'm not actually sure how to best articulate my question to be honest,
so i hope showing you what I want to achieve will communicate my
question better.
Lets say I have two data frames:
> DF1 <- data.frame(cbind(Show=c('Firefly', 'Red Dwarf'), Measure=1:2,
2008 Oct 01
1
changing 'https' to 'http' when using download.file(), any side effects or just use RCurl?
Dear R-Help,
>From reading the help file, it is my understanding the the download.file()
function does not support HTTPS connections. So therefore, understandably,
the follow produces an error:
### R Code
> url <- "https://stat.ethz.ch/pipermail/r-help/2008-October/thread.html"
> destfile <- "//PFO-SBS001/Redirected/tonyb/Desktop/R_web_test/tmp.txt"
>
2010 May 06
2
reading formatted txt file into a data frame
Dear all
Lets say I have a plain text file as follows:
> cat(c("[ID: 001 ] [Writer: Steven Moffat ] [Rating: 8.9 ] Doctor Who",
+ "[ID: 002 ] [Writer: Joss Whedon ] [Rating: 8.8 ] Buffy",
+ "[ID: 003 ] [Writer: J. Michael Straczynski ] [Rating: 7.4 ]
Babylon [5]"),
+ sep = "\n", file = "tmp.txt")
I would somehow like to read
2009 Jun 02
1
Problem downloading webpages using batchfiles and RCurl from command line in Vista Basic - couldn't connect to host
Dear all,
I am having a problem downloading webpages through R when i run it in
the DOS window under Windows Vista Basic. I have downloaded the
batchfiles from http://code.google.com/p/batchfiles/ and have
successfully set the PATH.
I open up 'Command Prompt' in Vista and type (after the C:\...>
stuff):
### START ###
C:\Users\Karen>Rscript -e "library(RCurl);
2009 Dec 22
2
Reading PDF files
Hi:
I need to do text mining on PDF files. I understand there is a readPDF
command in tm that can be used. Have read the 2008 posts on converting
PDF files to text by Tony Breyal and others.
Wondering if the procedure has been standardized in any tutorial or
otherwise? Being new to R, I was able to follow only part of the
discussion.
Any way to get a set of step by step instructions
2013 Sep 01
2
[LLVMdev] Distinguishing Pointer Variable and Ordinary Variable
Sorry I have actually edited the post.
I did check its type by using
isa<PointerType>(cast<AllocaInst>(instr->getOperand(1))->getAllocatedType())
but it is only detecting i32** %b on line 8 of IR as a pointer type.
Whereas I also want to detect the i32* %1 on line 11 of IR as a pointer
type. So how can I do this??
--
View this message in context: