similar to: Help with text separation

Displaying 20 results from an estimated 8000 matches similar to: "Help with text separation"

2011 Nov 15
2
Regular expressions in R
Good afternoon list, I have the following character strings; one with spaces between the maths operators and variable names, and one without said spaces. form<-c('~ Sentence + LEGAL + Intro + Intro / Intro1 + Intro * LEGAL + benefit + benefit / benefit1 + product + action * mean + CTA + help + mean * product')
2011 Dec 21
1
constrOptim and further arguments
Dear List, I have the code below, where I am using the constrained optimisation package, 'constrOptim.nl' to find the values of two values, b0 and b1. I have no problems when I enter further variable information DIRECTLY into the functions, fn, and heq. In this instance I require fn to have -0.0075 appended to it, and in the case of heq, h[1] has -0.2. library(alabama)
2011 Dec 19
1
None-linear equality constrained optimisation problems
Dear R users, I have a problem. I would like to solve the following: I have pL = 1/(1+e^(-b0+b1)) pM = 1/(1+e^(-b0)) pH = 1/(1+e^(-b0-b1)) My target function is TF= mean(pL,pM,pH) which must equal 0.5% My non-linear constraint is nl.Const = 1-(pM/pH), which must equal 20%, and would like the values of both b0 and b1 where these conditions are met. I have searched widely for an answer,
2011 Dec 20
1
constrOptim and problem with derivative
Dear List, I am using constrOptim to solve the following fr1 <- function(x) { b0 <- x[1] b1 <- x[2] ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)))))/3 } As you can see, my objective function is ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)))))/3 and I would like to solve for both b0 and b1. If I were to use optim then I would derive the gradient of the
2004 Oct 29
4
Installation problems with R.classes bundle
Firstly hi to everyone on the list, I am new to this list ans also R so please forgive the simplicity of my questions over the next few months. I have version R 1.9.1 and want to perform z-scoring for a benchmarking procedure. I have tried to install Henrik Bengtsson's R.classes bundle (http://www.maths.lth.se/help/R/R.classes). I have downloaded the .zip file and placed the relevant folders
2011 Oct 24
2
splitting a string into words preserving blanks (using regex)
I would like to split a string into words at its blanks but also to preserve all blanks. Example: c(" some words to split ") should become c(" ", "some", " ", " words", " ", "to" , " ", "split", " ") I was not able to achieve this via strsplit() . But I am not familiar with regular
2023 Apr 12
2
Split String in regex while Keeping Delimiter
I thought replacing the spaces following instances of +++,++,+,- with "\n" and then reading with scan should succeed. Like Ivan Krylov I was fairly sure that you meant the minus sign to be "-" rather than "?", but perhaps your were using MS Word as an editor which is inconsistent with effective use of R. If so, learn to use a proper programming editor, and in any case
2017 Oct 09
8
Regular expression help
I have a file containing "words" like a a/b a/b/c where there may be multiple words on a line (separated by spaces).? The a, b, and c strings can contain non-space, non-slash characters. I'd like to use gsub() to extract the c strings (which should be empty if there are none). A real example is "f 147/1315/587 2820/1320/587 3624/1321/587 1852/1322/587" which
2016 Jul 22
1
"state directory" ignored in samba-3.6.6
Hi, I have an issue with *samba-3.6.6*. It has been installed with : ./configure --prefix="/usr/local/samba-3.6.6" --without-winbind --with-fhs --sysconfdir=/etc --localstatedir=/var --with-piddir=/var/run/samba smb.conf contains : private dir = /var/lib/samba/private lock directory = /var/run/samba state directory = /var/lib/samba cache directory = /var/cache/samba So
2007 Aug 12
1
Re: Embedding int32's within threora & vorbis files
What do you want to use OggPCM for? Why not use AU or WAV? I can only see an advantage in using OggPCM if you want it annotated using CMML or want to mix it with another codec, such as Theora. Cheers, Silvia. On 8/11/07, Paul Griffiths <gafferuk@gmail.com> wrote: > Paul Griffiths <gafferuk <at> gmail.com> writes: > > > > > > > Thanks for the info, been
2009 May 18
2
Overdispersion using repeated measures lmer
Dear All I am trying to do a repeated measures analysis using lmer and have a number of issues. I have non-orthogonal, unbalanced data. Count data was obtained over 10 months for three treatments, which were arranged into 6 blocks. Treatment is not nested in Block but crossed, as I originally designed an orthogonal, balanced experiment but subsequently lost a treatment from 2 blocks. My
2011 Sep 08
5
General help - online statistics courses?
I understand this isn't a r specific question. I'm switching departments to work with the analytics team at my company as a "service" side manager to better incorporate the analytics process into product design / production. We're an online gaming company. As I'm going through tools like R, rapidminer, tableau, I was also thinking that I should get some formal training
2012 Feb 09
3
Include directory in smb.conf
Hi there, I'm wondering if there any patch or recent developement that would allow to include a directory rather than a file in smb.conf Something like includedir = /etc/samba/shares.d/ instead of include = /etc/samba/shares.conf Thanks for your help Santiago ------------------------- *Santiago DIEZ* *Director* *+33 6 37 90 81 98* -------------------------
2010 Feb 12
1
Identifying special characters in a text file
Colleagues R 2.10.1 on a Mac I read in textfiles using readLines, then I process those files, then I use R to execute another program. Occasionally those files contain characters other than letter / numbers / routine punctuation marks. For example, a bullet (option-8 on a Mac) triggers the problem. Although R can read and process those characters, the other program cannot so I would like to
2007 May 15
2
space in R
hello, can you help me I need to seperate words and symbol in a mathematics formula as follow C744=(C627*C177)/100 How could I do please? _____________________________________________________________________________ [[alternative HTML version deleted]]
2018 Jan 13
0
Integrating llvm pass with pass manager
Look back to the SO link [1] you posted, I assume you register your pass by writing something like below already, INITIALIZE_PASS_BEGIN ... INITIALIZE_PASS_END ModulePass *llvm::createYourPass() { return new YourPass(); } The only suggestion I can give is looking at other existing pass to see what you might miss. For example, take a look on X86OptimizeLEAs.cpp. It works like
2010 May 08
2
String manipulation
Dear community, I have a problem with a string conversion: > text [1] "" "and" "\xc1d\xe1m" [4] "graphical" "interface" "MLP" [7] "Nagy" "networks" "Networks" [10] "neural" "Neural"
2008 Mar 04
2
memory constraints in ubuntu gutsy
Hello All, I have a very large data set (1.1GB) that I am trying to read into R. The file is tab delimited and contains headers; there are over 800 columns and almost 700,000 rows. I am using the Ubuntu 7.10 Gutsy Gibbon version of R. I am using Kernel Linux 2.6.22-14-generic. I have 3.1GB of RAM with the AMD Athlon(tm) 64 Processor 3200+. I downloaded R using the instructions from cran under
2010 Sep 24
1
Some questions about string processing
Hi all A couple of questions about string processing from someone who has only scratched the surface so far. 1) I am wanting to send some strings into a function to allow flexibility inside. My first idea has been e.g. auto_io <- function( var_string, factors ) { # e.g. var_string sent as "test_file.txt" factors sent as "x1 + x2 + x3" # input data_name <- get(
2010 Oct 01
1
'all subsets' fitting algorithm for Bayesian approach
Hi R experts I am just wondering if something is already available (or easily adaptable) to do the following. I am planning to build linear models for all possible combinations of terms, so for example if the terms are sent into a function as this string " X1 + X2 + X3 + X4 + X1:X2" I would want to build models for all possible combinations of these 5 terms, e.g. m1 <- lm( y ~