search for: straightforward

Displaying 20 results from an estimated 4405 matches for "straightforward".

2010 Mar 18
5
can I rotate a matrix
...e a matrix 90 degrees, clockwise. For example, > mat [,1] [,2] [,3] [,1] 1 2 1 [,2] 3 2 6 [,3] 4 5 3 I want to rotate it, so that it looks like this... [,1] [,2] [,3] [,1] 4 3 1 [,2] 5 2 2 [,3] 3 6 1 Does anyone know a quick and straightforward way to do this? Thanks in advance. -- View this message in context: http://n4.nabble.com/can-I-rotate-a-matrix-tp1598469p1598469.html Sent from the R help mailing list archive at Nabble.com.
2013 May 16
1
connect to local mySQL database
Hi, I would like to access a local mysql database. In python using the sqlite3 library it is quite straightforward. I just have to pass the path to the sqlite-file; sqlite3.connect('.../xy.sqlite') Is there something similar in R (or specifically in the RMySQL package)? It seems like I have to use the MySQL function in the RMySQL package in order to ... "initializes a MySQL client. It returns an...
2006 Oct 26
2
[LLVMdev] lli in interpreter mode and external native libraries
...yes, but model checking is weirder so it's greatly beneficial to be able to heavily hack an interpreter. >> I can't really move to using the JIT entirely because I want to replace >> the memory model with something that supports backtracking -- this is >> doable (fairly) straightforwardly with the interpreter, but it would >> require some very complicated transformations to the code in order to do >> this within the JIT environment, and it would be quite tricky to avoid >> subtly breaking the semantics. That kind of approach is possible, >> probably, but no...
2009 Jun 11
5
[LLVMdev] Output to a DLL
Hi all, I'd like to be able to write JIT-compiled code to a Windows DLL. I have no idea where to start though. Does LLVM already offer some support for this? Or would it be straightforward to write my own DLL writer (no advanced features needed)? Or maybe I could use an external linker? All help highly appreciated! Cheers, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090611/...
2009 Nov 24
3
[LLVMdev] New 8bit micro controller back-end
...ture and one should not care > about ABI weirdness (this is usually true for MCUs), then the estimate > is correct. You just provide patterns for all the operations, expand > everything unsupported. After that you need to write bunch of libcalls > and first version is ready :) Which is straightforward once you know what you're doing. Before that point, however, it's very non-trivial. Basically I'm saying our documentation needs a lot of work. :) -Dave
2007 Apr 20
1
sequential for loop
...,yday=1:365) dat$value <- sin(dat$yday*2*pi/365)+rnorm(nrow(dat),sd=0.5) dat$ca <- dat$cb <- 0 # consecutive above and below 0 for(n in 2:nrow(dat)){ if(dat$value[n] > 0) dat$ca[n] <- dat$ca[n-1] + 1 else dat$cb[n] <- dat$cb[n-1] + 1 } I'm inquiring if there is a straightforward way to vectorize this (or a similar example) in R, since it gets rather slow with larger data frames. If there is no straightforward method, no worries. Thanks in advance. +mt
2007 Jun 15
1
text display using expression or not
Hello, I imagine that I'm missing something straightforward, but a run thru the help files didn't turn up an answer. I noticed while formatting some figures for publication that text enclosed in expression() and used for a title displays differently than a string, regardless of the par options. On both postscript() and x11() devices, the regular text i...
2006 Apr 20
1
channels change names
I'm writing a php script to dial numbers and connect them to a conference. This is fairly straightforward: Action: originate Channel: Local/conf@default Context: default Exten: $extension Priority: 1 This is pretty straightforward. However, the script then loads the list of members in the conference (using the meetme list ... command). For local extensions this works fine - the list of members shows...
2012 May 24
1
Scientific Linux, Centos, Fedora, etc without grub (only extlinux)
OK, I can do Debian and Ubuntu installs that don't use grub (and don't even install it) and instead only use extlinux. The extlinux configuration gets automatically updated during kernel upgrades, changes to extlinux configuration in /etc, and so forth. Is there anyway to do this in a straightforward (or semi straightforward) way in a modern RedHat derivative? On old legacy installs that the kernel never/rarely gets updated, sure, it is not hard to maintain extlinux configuration by hand. But on an installation where the kernel is updated semi-regularly, I don't want to have to fix my extli...
2010 Oct 06
2
ANOVA boxplots
Dear list, i have a quick and (hopefully) straightforward question regarding the plot-function after running aov. if i plot an equation like this: plot(dataSubjects~factorA, data=mydata) R gives me the boxplots for this particular factor A. my model, however contains several factors. is there a straightforward way to plot barplots for a specific facto...
2012 May 08
1
Regression with very high number of categorical variables
Dear all, I would like to run a simple regression model y~x1+x2+x3+... The problem is that I have a lot of independent variables (xi) -- around one hundred -- and that some of them are categorical with a lot of categories (like, for example, ZIP code). One straightforward way would be to (a) transform all categorical variables into 1/0 dummies and (b) enter all the variables into an lm model. But I'm not sure whether this is very efficient, especially since the analysis is exploratory in nature and I expect that many of the xi will have no significant impact on...
2008 Dec 09
0
[LLVMdev] [PATH] Add sub.ovf/mul.ovf intrinsics
...the signed case, >> but is do-able. > > It can be lowered to a division + a branch, so it would be > inefficient, plus it would > be a lot of work to implement it correctly (for me at least). If you can get the relevant high product (UMUL_LOHI and friends), it's a relatively straightforward comparison. Otherwise, yes, the general case is quite tricky; inserting a division here is non-trivial. There's also the special-case of multiplication by a constant: here, the computation can be done with a single straightforward comparison. -Eli
2010 Sep 10
7
A way to check against a list of numbers?
...ggestion on how to handle this? For example, if I have a list of numbers that I want to go out a certain sip channel and another that I want to go out the dahdi device, is there a way to do this? None of the numbers will fit into a pattern, so just plain pattern matching won't do. The most straightforward way would be to just define explicit patterns. Obviously that works, but doesn't seem scalable in terms of maintenance. Ideally there should be a variable or list of numbers, and the dialplan logic jumps into a subroutine that checks if the dialed number is on the list, then routes accordingly....
2010 Mar 29
4
Confusing concept of vector and matrix in R
...of "Vector"? In my opinion, it is a useless and confusing concept. A vector is simply a special case of a matrix whose row or column number is equal to 1. When I take submatrix from one matrix and if row or column number is 1, R will automatically convert it into a vector. It is very straightforward that a submatrix of a matrix should be a matrix. In each time, I have to use as.matrix() to convert the vector back to matrix. It is very annoying! -- View this message in context: http://n4.nabble.com/Confusing-concept-of-vector-and-matrix-in-R-tp1707170p1707170.html Sent from the R help mai...
2008 Jan 12
2
Lattice equivalent of par(mfrow = )
Dear r-helpers, Does anyone have a straightforward example of putting together three unrelated (expect for a common y-axis) xyplot() figures in what would be in base graphics a par(mfrow = c(1, 3)) arrangement? _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Char...
2020 Sep 13
2
Thread-safe R functions
Hi, I am curious about whether there exist thread-safe functions in `Rinternals.h`. I know that R is single-threaded designed, but for the simple and straightforward functions like `DATAPTR` and `INTEGER_GET_REGION`, are these functions safe to call in a multi-thread environment? Best, Jiefei [[alternative HTML version deleted]]
2018 Jul 24
2
[DWARF] De-segregating type units and compile units
...sections, respectively. This division was pretty ingrained into how DebugInfo/DWARF handled the units. In DWARF v5, type units and compile units are all in the .debug_info section, and the .debug_types section is obsolete. So, we need to have a container than can handle both kinds of units in a straightforward way. The refactoring replaces a pair of collections templated on the unit type with a single collection whose elements are base-class pointers; thus it can contain elements that are a mix of unit kinds. Everything that really mattered was either already virtual or was straightforward to convert t...
2007 Sep 25
4
"Have I included class X" function?
Anyone know if it would be straightforward to extract this information from Puppet, probably in a custom function: The classes included as a result of the client''s parsed configuration - or - Am I in class X as a result of my parsed configuration? I''m thinking it would result in a more elegant manifest if classes X and Y...
2008 Feb 22
0
[LLVMdev] Directly emit LLVM IR?
...C++ code. for: best tracks changes to the LLVM IR, .ll syntax, and .bc format for: enables running LLVM optimization passes without a emit/parse cycle for: adapts well to a JIT context against: lots of ugly glue code to write • Emit LLVM assembly from your compiler's native language. for: very straightforward to get started against: the .ll parser is slower than the bitcode reader when interfacing to the middle end against: you'll have to re-engineer the LLVM IR object model and asm writer in your language against: it may be harder to track changes to the IR • Emit LLVM bitcode from your compil...
2008 Nov 10
1
Preparing data for display
I have a dataset of about 10^6 rows, each consisting of a timestamp, several factors, a string, some integers, and some floats. I'd like to graph this data in various ways, including straightforward ones (how many events per week over the past year for each of 4 values of some factor), some less straightforward. I've managed to do this by brute force, but I'd like to learn how to do it in more elegant, more R-like code. Consider for example the following, which graphs the 25th, 50th,...