similar to: Inspecting C code in an R package

Displaying 20 results from an estimated 4000 matches similar to: "Inspecting C code in an R package"

2011 Nov 11
2
One step way to create data frame with variable "variable names"?
Suppose plotx <- "someName" modx <- "otherName" plotxRange <- c(10,20) modxVals <- c(1,2,3) It often happens I want to create a dataframe or object with plotx or modx as the variable names. But can't understand syntax to do that. I can get this done in 2 steps, creating the data frame and then assigning names, as in newdf <- data.frame( c(1, 2, 3, 4),
1998 Nov 18
1
0.63 naming list elements
The following used to work (0.62.1 the latest that I used), and now it doesn't (0.63.0): force <- vector(mode = "list", length = 1) names(force)[1] <- somename It returns the error: Error in "[<-"(NULL, 1) : object is not subsetable You might argue that this approach is unnecessary now that R allows subscripts that are out of range (e.g., force<-list();
2007 Dec 09
1
List comprehensions for R
Below is code that introduces a list comprehension syntax into R, allowing expressions like: > .[ sin(x) ~ x <- (0:11)/11 ] [1] 0.00000000 0.09078392 0.18081808 0.26935891 0.35567516 0.43905397 [7] 0.51880673 0.59427479 0.66483486 0.72990422 0.78894546 0.84147098 > .[ .[x*y ~ x <- 0:3] ~ y <- 0:4] [,1] [,2] [,3] [,4] [,5] [1,] 0 0 0 0 0 [2,] 0 1 2
2007 Mar 09
3
Prayer, Maildir and Folders whose names begin with "."
Greetings - I think I've just had one of my fears confirmed: not Dovecot-specific exactly, but it affects how we will use of Prayer (Webmail Software) with Dovecot... Currently our production service uses MBX-format mailboxes with the UW IMAP server; we also use the University of Cambridge "Prayer" software for Webmail. By default Prayer saves its preference settings,
2006 Jul 14
1
passing an entire hash to an action
Is it possible to pass the entire contents of a hash to an action via link_to_remote? I know that when you want to pass a value you say link_to_remote("link name", :url => {:action=>"some action", :someName => someVal} ) This works for when you want to pass strings but I want to be able to pass a reference to a list of models that is stored in a hash to the
2006 May 08
1
file_column - url_for_file_column issue.
Hi, url_for_file_column @variable, ''name'', takes an instance variable. My question is, what if I don''t want to have to retrieve the instance variable every single time but I have the image id, along with its name with me. Could I contruct that object in a view and pass it to url_for_file_column: <% @picture = Picture.new %> @picture.id = ...
2011 May 30
1
[LLVMdev] Reg2mem: Identifying introduced memory locations (also, what happens to the phi nodes)
Hi. Im exploring `opt -reg2mem` output for a simple C program (actually, that is this snippet: http://rosettacode.org/wiki/Dining_philosophers#C - compiled with clang -O1) and got two questions regarding this pass. 1. How would I tell which memory locations were introduced by the pass, and which memory locations were present in the original program? After a brief diffing of .ll files, I'd
2004 Nov 03
1
Kernel Density estimation - locfit package
Hello there, I am presently using the locfit package in "R" and would appreciate some help here. Could anyone tell me tell me how I can obtain the various components (x and y values)of the density estimation after using the "R" command "locfit"? For example, with the command "fhat<-density(somename)" I can obtain the x and y values by simply calling
2016 Jul 17
2
Moving Maildir folders
Am 2016-07-17 um 02:36 schrieb Mark Foley: > Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless > (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the > top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other > sub-folder at the same level as INBOX are not
2008 Jan 09
6
as.date - german date format
Hi, I have a data.frame with the following variable: $ xx :Factor w/ 66 levels "01.02.2006","01.03.2006",..: 3 3 3 3 3 3 3 3 3 now I?d like use "as.date" on it - if I comprehend the instructions on http://finzi.psych.upenn.edu/R/library/base/html/format.Date.html it should work like this: as.date(xx, "%d.%m.%Y") - but it doesn?t... the survival Package
2008 Mar 07
5
Puzzling coefficients for linear fitting to polynom
Hi, I can not comprehend the linear fitting results of polynoms. For example, given the following data (representing y = x^2): > x <- 1:3 > y <- c(1, 4, 9) performing a linear fit > f <- lm(y ~ poly(x, 2)) gives weird coefficients: > coefficients(f) (Intercept) poly(x, 2)1 poly(x, 2)2 4.6666667 5.6568542 0.8164966 However the fitted() result makes sense: >
2011 May 19
2
Shrink file size of pdf graphics
Hi everyone, My data consists of a system of nearly 75000 roads, available as a shapefile. When I plot the road system, by adding the individual roads with 'lines' and store it as a pdf-file with 'pdf' I get a file of size 13 MB. This is way too large to add it in my LaTeX-document, because there will be some more graphics of this type. Now I'm curious to learn wheter there is
2018 Feb 15
2
Codes to conduct network meta-analysis, gemtc package
Hi,I want codes that could help me do NMA from the data. I would appreciate if you could give a dummy table with which I could practice the codes that would help read the data and calculateOdds ratio (OR) Mean difference (MD) forest plot Density plot of posterior samples Estimates of ranks probabilities Rank probabilities plot (rankogram)? Network plots? The manual by?Gert van Valkenhoef is
2002 Nov 29
2
Connection to a Remote XP Box
What I've done so far: Studied man samba Connected to my parents XP box on my LAN (two different connections, even). root@omega-fleet root]# smbclient -L 64.131.112.121 added interface ip=192.168.1.11 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=192.168.1.10 bcast=192.168.1.255 nmask=255.255.255.0 session request to some.ip failed (Called name not present) session request to
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following: -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2010 Mar 01
3
[LLVMdev] paramter attributes and function types
On Mar 1, 2010, at 04:43, Duncan Sands wrote: > [I wrote:] >> >> Nevertheless, the LLVM Language Reference document suggests, in the examples for the Function Types section, that parameter attributes are part of function types. > > Where exactly? I don't see it in the online version. See <http://llvm.org/docs/LangRef.html#t_function> and look at the second
2016 Jul 17
3
Moving Maildir folders
On Date: Sun, 17 Jul 2016 12:24:04 +0200 Luigi Rosa <lists at luigirosa.com> wrote: > > Peter Chiochetti wrote on 17/07/2016 11:01: > > > With Maildir and path separator "." one can have incomplete paths: eg. > > bpatterson.INBOX.2011 will say that there is 2011 within INBOX within bpatterson > > -- while it is possible, that both bpatterson and
2009 Feb 09
0
Problem with upper case extension names
It seems as if there is a problem if one uses Local/SomeName at some_context in a Dial application. If the extension is changed to somename then things work. I have an extension SomeName defined. In another extension I try to dial this extension and it does not work saying extension/context not found. The extension displayed has uppercase characters so the case is not lost. If I change the
2007 Mar 19
1
How to set up different "bottles" in Wine, just like in Codeweaver's Crossover Office?
Hi all, How does one set up different "bottles" like in Crossover office? Meaning how do I isolate an installation of Program A from Program B, when running under Wine? is that possible? That's a neat feature they have in Crossover, but I can't seem to find any documentation of how to do the samething in generic WINE. Robert
2005 Feb 25
2
display full form in args
Forgive me for I do not fully comprehend the idea of classes and methods but I was wondering if someone could help explain why the function args () behaves the way it does. Why does args(cut) show the simplified version instead of the more complete one as in help("cut"). This is true for few other functions (e.g. plot, rep). > args(cut) function (x, ...) Sometime I can get