similar to: Inspecting C code in an R package

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

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
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),
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
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();
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
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
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
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
2008 Aug 28
4
Help with shading a polygon below a segment of a curve (normal distribution)
Dear R users, I still feel new to R so please apologize if I am doing something stupid here. My use of the polygon() function produces a result that I cannot comprehend: In a plot, I would like to shade the area below a normal distribution. However, I do not want the entire area to be shaded, but just the area on the right side of a vertical line that I draw through the distribution (in
2004 Nov 28
5
Newbie-needs help
Hello all: I''ve read the documentation and am not quite sure where to start. What I''m trying to do is build a network with a 3 NIC Shorewall router. My system is behind a routed /49 network. I''d like to use 2 or 3 of the static IP addresses for my DMZ ( DNS server, mail, webserver etc ) and then have my remaining machines in a private network NATed is some way. My
2010 Jul 26
0
[LLVMdev] LLVM Dependency Graph
On Jul 26, 2010, at 9:41 AM, David Piepgrass wrote: > Based on cmake/modules/LLVMLibDeps.cmake, I produced a graphviz dot file and then manually removed components and edges until the graph was small enough to be presentable. I don’t know if I can actually use LLVM due to its humongousness, but I hope the graph will be helpful to others attempting to comprehend LLVM. PNG attached; dot file
2011 Oct 07
1
Permissions option
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, rsync v3.0.7 I am backing up data to a USB memory drive that is formatted FAT32, which does not comprehend linux permissions. I added the "--no-perms" option to the option set. rsync still attempts to change the permissions. OPTS = "--no-perms --archive --stats --delete --itemize-changes - --quiet
2013 Nov 08
0
[LLVMdev] [cfe-dev] RFC: A proposal to move toward using C++11 features in LLVM & Clang / bounding support for old host compilers
Chandler Carruth <chandlerc at google.com> writes: > The overwhelming majority of contributors and users of trunk seem to > be fine with this, so while I'm interested in anything we can do to > make it easier for you, unless we see significantly more concerns > about this plan, I think we should move forward. > > Fundamentally, we aren't going to be able to make
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,
2018 Feb 15
0
Codes to conduct network meta-analysis, gemtc package
This is not a free consulting service. You are expected to put in the work yourself and **may** receive help here if you have specific questions that you need help with when you do so. See the posting guide linked below for details. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley
2012 Sep 26
2
specifying arguments in functions and calling functions, within functions
Esteemed R UseRs, Regarding specifying arguments in functions and calling functions within functions: ## beginning ## ## some data ex <- rnorm(10) ex[5] <- NA ## example function Scale <- function(x, method=c("mean", "median")) { scl <- method scl(x) } ## both return NA Scale(ex, method=median) median(ex, na.rm=FALSE) ## both return the median Scale(ex,