Displaying 20 results from an estimated 700 matches similar to: "parsing strings"
2007 Jul 12
3
(no subject)
Hi All,
I want to automatically generate a number of data frames, each with an
automatically generated name and an automatically generated number of
rows. The number of rows has been calculated before and is different for
all data frames (e.g. c(4,5,2)). The number of columns is known a priori
and the same for all data frames (e.g. c(3,3,3)). The resulting data
frames could look something like
2007 Jul 05
1
problem assigning to indexed data frame element
Hi All,
Sorry if I ask an obvious thing, I am still new to R ...
I created a data frame of given dimensions to which I gave strings as
column names. I want to write to elements of the data frame by indexing
them with the row number and column name (string). The problem is that I
can read elements from the data frame in this way, but I cannot assign
to elements in this way. Instead, I get the
2010 Jul 17
4
sort file names in numerical order
Hello,
I get some file names by list.files().
These names are in alphabetical order.
I want to change it to logical numeric order.
Example:
> fileNames <- c("A10", "A1", "A2", "B1", "B2", "B10")
> sort(fileNames)
[1] "A1" "A10" "A2" "B1" "B10" "B2"
I want to have:
2007 Jun 27
0
error message survreg.fit
Dear All,
I am doing a parametric survival analysis with:
fit <- survreg(Surv(xyz$start, xyz$stop, xyz$event, type="interval") ~
1, dist='loglogistic')
At this point I do not want to look into covariates, hence the '~1' as
model formulation. As event types I have exact, interval, and right
censored lifetime data. Everything works fine.
For reasons that are
2018 Mar 12
0
Equivalent of gtools::mixedsort in R base
???
> y <- sort( c("a1","a2","a10","a12","a100"))
> y
[1] "a1" "a10" "a100" "a12" "a2"
> mixedsort(y)
[1] "a1" "a2" "a10" "a12" "a100"
**Please read the docs!** They say that mixedsort() and mixedorder() both
take a **single
2018 Mar 12
7
Equivalent of gtools::mixedsort in R base
Hi,
Searching for functions that would order strings that mix characters and numbers in a "natural" way (ie, "a1 a2 a10" instead of "a1 a10 a2"), I found the mixedsort and mixedorder from the gtools package.
Problems:
1- mixedorder does not work in a "do.call(mixedorder, mydataframe)" call like the order function does
2- gtools has not been updated in 2.5
2018 Mar 12
1
Equivalent of gtools::mixedsort in R base
x <- c( "a1", "a10", "a2" )
y <- c( "b10", "b2", "a12", "ca1" )
DF <- expand.grid( x = x, y = y )
# randomize
set.seed( 42 )
DF <- DF[ sample( nrow( DF ) ), ]
# missing from gtools
mixedrank <- function( x ) {
seq.int( length( x ) )[ gtools::mixedorder(x) ]
}
o <- do.call( order, lapply( DF, mixedrank ) )
2012 Feb 27
2
Testing needed
LRN wrote:
> f:/src/mingw-flac/flac-1.2.2-rc1/src/share/utf8/iconvert.c:175:5:
> warning: passing argument 2 of 'libiconv' from incompatible pointer
> type [enabled by default]
> f:\mingw02\mingw-pc-i686\bin\../lib/gcc/mingw32/4.6.2/../../../../include/iconv.h:83:15:
> note: expected 'const char **' but argument is of type 'char **'
Firstly, what version of
2020 Jul 11
2
make other domain controller shares available to windows clients.
CentOS 8 Samba Version 4.12.5 compiled from source configured as DC
and joined to domain SAMDOM.EXAMPLE.COM.
smb.conf --
# Global parameters
[global]
netbios name = B10
realm = SAMDOM.EXAMPLE.COM
server role = active directory domain controller
workgroup = SAMDOM
interfaces = lo,enp15s0
bind interfaces only = Yes
dns forwarder = 8.8.8.8
2004 Oct 29
2
Centos v3.3 CD 2
Sorry, I have been away for a while. has anyone fixed CD2 fotr CentOS
v3.3 ?
--
Luis
2015 Apr 22
7
Cannot authenticate the administrator account
Are you sure you have the "correct" administrator password ..
?
this should work ,? echo ${SAMBA_NT_ADMIN_PASS}| smbclient //localhost/netlogon -U Administrator -c 'ls'
that does not involve kerberos yet..
?
Please run:
?
SETHOSTNAME=`hostname -s`
SETDNSDOMAIN=`hostname -d`
SETFQDN=`hostname -f`
host -t SRV _ldap._tcp.${SETDNSDOMAIN}.
host -t SRV
2009 Oct 15
1
Callpickup works for outside calls but not inside calls
Hello, all. I've got a problem where we set up call pickup for a
customer. If the Bob's extension rings and Bob is in Jim's office, Bob
can press the button on his Snom 320 that says "Bob" and pick up his
line. It works great for calls coming in from the outside but does not
work for internal calls. Internal calls generate a
app_directed_pickup.c:204 pickup_exec: No
2005 Jan 28
4
extracting from a data.frame
Hi,
I am sorry for this simple question, but... How do I extract something
from a data.frame?
The following is my Problem:
I have got a dataframe "a" with various columns. One of those columns
is called V3 and contains elements of the following levels:
> levels(a$V3)
[1] "C" "CA" "CB" "CD" "CD1" "CD2"
2008 Jan 20
3
Logical test and look up table
Dear R users,
I have a data frame with one column (4000 rows) containing name codes
(factor with 63 levels). I would like to associate each name with a
particular Type (coded as 1,2,3,4,H or H1) in a second column. Is it
possible to do a lookup table of associations (i.e. A23 is of type 1, A13
is of type 3 ...) so as to fill up automatically the $Type column.
df()
$Source $Type
A23
A24
A9
A32
2009 Oct 21
1
Incorrect voice mail format on transfer
Hello, all. I'm running Asterisk 1.6.1.6 on CentOS 5.3 in a
multi-tenant environment with IMAP voice mail storage on Zimbra. One of
our clients is having a problem when transferring voice mails from one
mailbox to another (option 8 in the standard voice application menu)
using their Snom 320 and 360 phones.
The end results is the final recipient cannot listen to the voicemail.
We also email
2012 Aug 24
6
updating elements of a vector sequentially - is there a faster way?
I would like to know whether there is a faster way to do the below
operation (updating vec1).
My objective is to update the elements of a vector (vec1), where a
particular element i is dependent on the previous one. I need to do this on
vectors that are 1 million or longer and need to repeat that process
several hundred times. The for loop works but is slow. If there is a faster
way, please let
2010 Jul 19
3
invalid type error
>myDF =
data.frame(id=c("A10","A20"),d1=c(.3,.3),d2=c(.4,.4),d3=c(-.2,.5),d4=c(-.3,.6),d5=c(.5,-.2),d6=c(.6,-.4),d7=c(-.9,-.5),d8=c(-.8,-.6))
>doit=function(x)c(x[1],sum_LK_positive=sum(x[-1][x[-1]>0]),sum_LK_negative=sum(x[-1][x[-1]<0]))
> myDF
id d1 d2 d3 d4 d5 d6 d7 d8
1 A10 0.3 0.4 -0.2 -0.3 0.5 0.6 -0.9 -0.8
2 A20 0.3 0.4 0.5 0.6 -0.2
2002 Apr 18
2
2cd installation
Hi!
I'm having some problems installing a 2CD application under wine. I run the
setup.exe from the 1st cd (so I have to mount it anyway) and when the setup
asks for cd2 I get stuck, because I can not remove cd1 from the drive,
because it is mounted and because there's an application using it
(setup.exe). Is there any way to change cds?
MBJr.
2009 Oct 15
2
MWI for multiple voice mail boxes
Hello, all. I have a user who needs to monitor their voice mail box and
the general delivery voice mail box. I defined them in sip.conf as
follows:
[tkeeley](a10f)
mailbox=612 at a10, 610 at a10
However, the MWI does not indicate voice mails for 610 and I keep seeing
this error message:
ERROR[2549]: app_voicemail.c:1630 messagecount: Couldn't find mailbox
610 in context a10
However,
2007 Nov 02
4
Should I report my problem in Bugzilla? Outcast problem.
Hello everybody!
I'm trying to play Outast with wine 0.9.48 and wine fails with :
Can't find master volume control
fixme:win:EnumDisplayDevicesW ((null),0,0x34f820,0x00000000), stub!
fixme:d3d:IWineD3DDeviceImpl_Release (0x1352c0) Device released with
resources still bound, acceptable but unexpected
fixme:d3d:dumpResources Leftover resource 0x134748 with type
1,WINED3DRTYPE_SURFACE