Displaying 20 results from an estimated 903 matches for "cumbersome".
2009 Dec 07
2
data.frame to "stacked frame"
Hi,
have anybody a hint how i could avoid the cumbersome way (..especially
the value part)
change the data representation from n column data.frame to an stacked
representation.
many thanks
Christian
#example data
dfw <- as.data.frame(matrix(runif(10*10),ncol=10))
dfw$group <- sample(c("X","Z"),nrow(dfw),replace=T,prob=c(0.7...
2011 Apr 26
3
Opinion wanted: metadata in HTTP requests
...ata (and quite possibly additional information, e.g. obtained from
DMI) when making a http request, but I'm not 100% sure about the best
way to do it.
Options are pretty much:
1. some kind of metavariables in either the configuration file or in
the filename syntax.
+ very general.
- cumbersome for the user.
- most complex to implement.
2. as a query string automatically appended to the requested URL.
+ easy.
- makes it impossible to use any other kind of queries.
- high overhead (data sent on every request.)
3. as a query string appended to the requested URL when requested...
2009 Jul 29
5
etc passwd and groups file
Hi,
I need to maintain a same user/group list on multiples systems. Can we
just copy the same passwd and groups file on all machines?
If we create a new user on one system then I will need to copy this to
all other systems. This is quite cumbersome. Any suggestions?
-
CS.
2003 Jul 11
3
Indexing with NA as FALSE??
...c(1,2,3,4,5,6,7,8,9)
u<-c(1,NA,3,NA,5,NA,7,NA,9)
t[u==5]
--> NA NA 5 NA NA
Now, if I could somehow set things so that "NA" was FALSE for
indexing, then
t[u==5]
--> 5
I know I can do it with
t[(u==5)&(!is.na(u))]
but in the situation I am dealing with this leads to massively
cumbersome, typo-prone and hard-to-read code.
Also, as an extra, it would be very useful if, for instance,
t[u==NA] --> 2 4 6 8
(I realise that working round this is less cumbersome, but even so).
What I'm really trying to work round is the "don't know" way that R
handles NA. Reasonable...
2019 Feb 20
3
branching in extensions.conf?
Is there any less cumbersome way of doing conditionalized/branching in
extensions.conf other than something like:
exten => s,n,GotoIf($["${SIP}" = "PJSIP" ]?pjsip)
exten => s,n,Dial(${ARG2},20,TtWw)
exten => s,n,Goto(afterdial)
exten => s,n(pjsip),Dial(${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,&q...
2013 Jul 23
3
[LLVMdev] Vector DAG Patterns
...a suitable pattern to represent some
vector operations in the DAG. Stuff like andx/orx operations where
elements of a vector are anded/ored together.
My approach thus far has been to extract the sub elements of the vector
and and/or those elements. This is ok for 4 vectors of i32s, but becomes
cumbersome for v16i8s. Example instruction:
andx $dst $v1
Pattern:
[(set RC:$dst,
(and (i32 (vector_extract(vt VC:$src), 0 ) ),
(and (i32 (vector_extract(vt VC:$src), 1 ) ),
(and (i32 (vector_extract(vt VC:$src), 2 ) ),
(i32 (vector_extract(vt VC:$src), 3 ) )...
2012 Aug 27
3
Asterisk community services - Old Mantis instance to be shutdown on Aug 28th, 2012
On June 5, 2011, we migrated from Mantis to Jira as the issue tracker
for Asterisk [1]. We temporarily left Mantis running in read-only mode
to smooth the transition. At 15 months, temporary has turned into
semi-permanent. As a part of other infrastructure changes we are making
to the community services, we will finally shut down Mantis for good.
We will update our DNS servers on the morning of
2012 Aug 27
3
Asterisk community services - Old Mantis instance to be shutdown on Aug 28th, 2012
On June 5, 2011, we migrated from Mantis to Jira as the issue tracker
for Asterisk [1]. We temporarily left Mantis running in read-only mode
to smooth the transition. At 15 months, temporary has turned into
semi-permanent. As a part of other infrastructure changes we are making
to the community services, we will finally shut down Mantis for good.
We will update our DNS servers on the morning of
2023 Jan 12
1
return value of {....}
...he rationale.
In the case that "{...}" was a closure, then external variables would
need to be explicitly declared before the closure (in order to reuse
those values):
intermediate = c()
{
??? intermediate = ...;
??? result = someFUN(intermediate);
}
1.) Interactive Sessions
This is cumbersome in interactive sessions. For example: you often
compute the mean or the variance as intermediary results, and will need
them later on as well. They could have been computed outside the
"closure", but writing code in interactive sessions may not always be
straightforward.
2.) Missing...
2012 Mar 28
1
Changing multiple instances in data.frame
...stances of certain contents.
A trivial example is below. It works, it just seems like there should be a
one line solution.
#Example data:
a <-
data.frame(V1=1:3,V2=c(paste(LETTERS[1],LETTERS[1:3],sep='')),options(stringsAsFactors
= FALSE))
#> a
# V1 V2
#1 1 AA
#2 2 AB
#3 3 AC
#Cumbersome solution (which would be even more cumbersome with real data)
indices.of.aa <- which(a$V2 %in% "AA")
indices.of.ab <- which(a$V2 %in% "AB")
indices.of.ac <- which(a$V2 %in% "AC")
a$V2 <- replace(a$V2, indices.of.aa, "c")
a$V2 <- replace(a$V2,...
2005 Mar 01
6
lattice -- panel order display
R-help,
I'm using 'xyplot' in lattice package which plots length frecuencies by
year (10).
The order I get is not logical and the 'index.cond' argument to
'xyplot' is a bit cumbersome when it comes to plot a great deal of (in
my case years).
I have tried sorting the conditioning variable but still get the same
result.
Is there any easy way to do it without making use of 'index.cond' ?
The function call is as follows:
xyplot ( number ~ cm | as.factor(test$year) , data...
2006 Dec 14
5
Better way to change the name of a column in a dataframe?
...[[2]]=="cmlo3")] <- "col3"
which renames the offending column:
> frame
col1 col2 col3 col4 col5 col6
[1,] 3 10 2 6 5 7
[2,] 6 8 4 10 7 1
[3,] 7 5 1 3 1 8
[4,] 10 6 5 4 9 2
This seems cumbersome and not very intuitive. How can one accomplish
this more simply?
With thanks for any suggestions,
Ben Fairbank
[[alternative HTML version deleted]]
2013 Jul 26
0
[LLVMdev] Vector DAG Patterns
To elaborate, it is not only cumbersome writing these patterns for
vectors of 16 characters (v16i8), it does not work.
When I compile with this pattern for an andx operation on v16i8:
/[(set RC:$dst,//
// (and (i8 (vector_extract(vt VC:$src), 0 ) ), //
// (and (i8 (vector_extract(vt VC:$src), 1 ) ),//
// (and (i8 (vector_ex...
2005 Aug 19
3
Cisco 7960 Line rollover for secretary's phone.
Hi folks. I attempting to set up a Cisco 7960 (SIP) so that if the user is on
a call, other incoming calls will ring through to her phone and can be
answered. So far I have only been able to get this working by using the
call-waiting function, which is cumbersome and does not properly allow the
first call to be retreived. Is there a better way to do this?
Thanks in advance.
John Mensel
2010 Jan 24
3
Is there a quicker way to drop a data frame column than setting it to NULL?
If I want to drop columns x, y, z from dataframe df, is there a better
alternative to
df$x = NULL
df$y = NULL
df$z = NULL
There are sufficiently many columns remaining to make
df = subset(df, select = c(a,b,c,d[etc]))
cumbersome.
Thank you.
--
View this message in context: http://n4.nabble.com/Is-there-a-quicker-way-to-drop-a-data-frame-column-than-setting-it-to-NULL-tp1288617p1288617.html
Sent from the R help mailing list archive at Nabble.com.
2013 Jan 31
5
Modify objects in function
...ange the objects in the global environment. Now I have two choices
1. Change the objects and return a list with both objects:
foo <- function(o1, o2) {
o1 at att1 <- producesomething()
o2 at att2 <- producesomethingelse()
l <- list(O1 = o1, O2 = o2)
return(l)
}
This is cumbersome for users, as they have then to assign the objects inside the returned list to the symbols used in the global environment. But it is the way intended by R.
2. Change the objects of the global environment inside the function:
foo <- function(o1, o2) {
o1 at att1 <- producesomething()
o2...
2020 May 12
2
[PATCH 1/3] drm/radeon: remove AGP support
...e tradeoffs there in some cases.
>
> I'll volunteer to be the one asking: how big is this performance
> difference? Have any benchmarks been run before and after removal of AGP
> GART code on affected nouveau/radeon systems? Or is this code being
> dropped _just_ because it's cumbersome, with no regard for metrics that
> determine the value of AGP GART support?
>
I don't think anyone has any solid numbers, just anecdotal from
memory. I certainly don't have any functional AGP systems at this
point. It's mostly just cumbersome and would allow us to clean ttm
and...
2008 May 05
4
Column renaming
Dear all,
Is there a less cumbersome way to rename a column by name (as opposed
to index) than --
names( X)[ names[ X] == "bob"]<-"sue"
?
A semi-related question: how does one get the index of a column by
name, something along the lines of col.index( X, "sue") ?
Chip Barnaby
------------------...
2006 Feb 17
7
Forum Addition?
...ific reason we don''t have one? If it is a "know how"
issue, I can help since I have a significant amount of experience in the
bb/forum realm and would gladly set it up and/or administer it free of
charge as a not for profit site. I know we have the archive, but it is
somewhat cumbersome to try and find out additional or specific info related
to a problem, for my simple mind anyways.
Anyways, I greatly appreciate your time in both reading and considering
this.
John
2016 Jul 14
5
controlling STARTTLS by IP address
> Seems like your firewall could redirect to a different port that doesn't
> offer starttls.
Yes, of course. But that would require multiple ports, making the client
configuration cumbersome and error-prone.
Michael