Displaying 20 results from an estimated 1000 matches similar to: "Regexp question"
2011 May 04
4
Syntax Help on a Bash Script
Hi All,
I'm brand new at doing anything linux and would like feedback on this
script I'm trying to understand from an example I'm working on..
Oh, running Centos 5.6
Anyhow, I run this bash script:
#!/bin/bash
# send data to the table in the MySQL database
MYSQL='which mysql'
if [ $# -ne 4 ]
then
echo "Usage: mtest4 empid lastname firstname salary"
else
2010 Nov 17
2
Regexp question
I have a vector like this:
a <- c("thisIsName", "thisIsAlsoName", "andThisName")
How to break this into pieces and produce a vector with unique parts:
this
Is
Name
Also
and
This
-J
2009 Jan 20
1
problem with applying where condition
Hi all,
I am a biggener in R-Project
I got one problem with applying *where condition*
like
if 2 tables like
table1:
empid name dep
101 kiran solutions
102 ram testing
103 pavan database
table2:
empid month sal
101 Dec 9500
102 Dec 9800
103 Dec 8500
in first table i have to take *empid* with
2012 Aug 20
7
What makes R different from other programming languages?
My intention is to give a presentation about R programming language
for software developers. I would like to ask, what are the things that
make R different from other programming languages? What are the
specific cases where Java/C#/Python developer might say "Wow, that was
neat!"? What are the things that are easy in R, but very difficult in
other programming languages (like Java)?
2003 Nov 27
1
AGI (IF/ELSE)
I need some help with some statements.....
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
my $callerid = $input{'callerid'};
if ($optemp != 1) {
my $empid = $AGI->get_data('employee',-1,5);
$AGI->stream_file(entered);
$AGI->say_digits($empid);
my $optemp =
2010 Nov 08
7
How to rbind list of vectors with unequal vector lengths?
Hi,
How to rbind these vectors from a list?:
> l <- list(a = c(1, 2), b = c(1, 2, 3))
> l
$a
[1] 1 2
$b
[1] 1 2 3
> do.call(rbind, l)
[,1] [,2] [,3]
a 1 2 1
b 1 2 3
Warning message:
In function (..., deparse.level = 1) :
number of columns of result is not a multiple of vector length (arg 1)
>
-J
2009 Sep 30
3
AsciiDoc and R
I would like to learn AsciiDoc. Is there any good examples how to use
AsciiDoc with R? I know that there is packages called ascii to do
this, but it would be nice to see some examples how AsciiDoc works
with R. Is there an AsciiDoc distribution for Max OS X?
-Johannes
2008 Apr 06
1
lme cant get parameter estimated correctly
I am caught in a mental trap. Why isn't the between groups variance estimated
(0.0038) to be around the value with which I generated the data (0.0002)?
Thanks Toby
set.seed(76589437887)
fph = 0.4
Sigh = sqrt(0.0002)
Sigi = sqrt(0.04)
ci = 1
fpi = matrix(,7200,3)
for (i in 1:90) {
fph = rnorm(1, fph, Sigh)
for (k in 1:80) {
fpi[ci,1:3] = matrix(c(i, k, rnorm(1, fph, Sigi)),1)
ci
2016 Nov 07
1
samba with customized ldap backend
Sir,
As you told that Samba normaly set uid=Username and not the uidNumber.
Here due some requirement we had configured ldap with dn uid="user's emp
id" and it is very well working with all the services like nagios
anonymous authentication, ssh, smtp, imap authentication, rdesktop means
all the possible services but I am very badly stuck with samba
authentication.
For example
2010 Mar 30
2
How to recode variables using base R
Hi,
Is there an efficient way recoding variables in a data.frame using
base R? My purpose is to create
new variables and attach them into old data.frame. The basic idea is
shown below, but how to create recoding for A, B and C and assing them
into new variables?
df <- data.frame(A = c(1:5),
B = c(3,6,2,8,10),
C = c(0,15,5,9,12))
df$A[df$A <= 3] <- "x"
df$A[df$A > 3 &
2016 Oct 24
1
password sync issues
Hi,
I have configured 2 ldap tree, one for unix account (ou=User) (below is
sample ldif)
dn: uid=2011150,ou=User,dc=acer,dc=in
empID: 2011150
username: test1
cn: test1
centre: PN
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
oldempid: 1150
mail: test1 at acer.in
givenName: test1
uid: 2011150
shadowLastChange: 15590
loginShell: /bin/bash
2003 Dec 31
1
AGI - IVR - Time Clock
I wanted to post the beginings of my latest IVR Project for an automated
Time Clock software.
The customer has over 300 Field Reps that call in everytime they arrive
on location and whey they leave that location. This is handled by the
receptionist now and she logs in them and out of there Time Clock
Software. Which takes up majority of her day. The customer has
requested a automated way of
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
Hello,
I'm trying to import a SAS file made using SAS on Unix. Currently I'm
using SAS on Windows and I'm trying to import that .ssd04 file to R.
The file name of the file is testfile.ssd04 and it is located in
'M:\sasuser'. I'm using Windows XP and R 2.91. Basically what I'm
doing is
############ r code ##############
> library(foreign)
> sashome <-
2016 Nov 08
3
samba with customized ldap backend (fwd)
Hello Sir,
I have also tried with nslcd and didn't succeeded.
kindly advice.
Regards,
Arun
--------------
Have you asked on the sssd-users mailing list about this ???
If you are using sssd then Samba ISN'T doing the authentication, SSSD
is.
Rowland
---------- Forwarded message ----------
Date: Mon, 7 Nov 2016 18:30:51 +0530 (IST)
From: Arun Gupta <arung at cdac.in>
To:
2010 Jan 27
1
How to attach chart to excel file?
Hi,
How can I attach chart/plot to a excel file? I would like to create a
plot in R eg.
plot(1)
and save it into a Excel file, eg. test.xls in a same working directory.
Regrads,
-J
2010 Jan 29
1
How to convert timestamps?
I have timestamps from mysql database:
> dput(tstamp)
c(1225221868L, 1225221906L, 1225221906L, 1225230997L, 1225231000L,
1225231003L, 1225231152L, 1225231348L, 1225231351L, 1225231400L
)
How to convert these into normal dates?
Thanks,
jrara
2010 Mar 12
3
How to format dates (with no century)?
Hi,
I have dates in this kind of format (day, month, year):
> dput(head(dates, 10))
c("6.4.7", "29.12.98", "19.10.91", "20.6.92", "2.9.3", "23.6.3",
"13.7.93", "23.3.7", "26.6.95", "15.2.10")
So, as you can see, there is no century. How can I change this
character data into dates? Any help
2010 Oct 03
1
Package for converting R datasets into SQL Server (create table and insert statements)?
Hi,
R contains many good datasets which would be valuable in other
platforms as well. My intention is to use R datasets on SQL Server as
a sample tables. Is there a package that would do automatic conversion
from the dataset "schema" into a SQL Server CREATE TABLE statement
(and INSERT INTO statements)?
For example.
> str(cars)
'data.frame': 50 obs. of 2 variables:
$
2017 Jun 11
3
post ino64: lockd no runs?
On Sun, Jun 04, 2017 at 08:57:44AM -0400, Michael Butler wrote:
> It seems that {rpc.}lockd no longer runs after the ino64 changes on any
> of my systems after a full rebuild of src and ports. No log entries
> offer any insight as to why :-(
>
> imb
I don't tend to use NFS on my systems that are running head, so I
haven't had occasion to test this as stated.
However, I
2006 Mar 07
1
Ajax.Responders- how to get responseText?
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html
but I don''k how to manipulate Ajax responseText in this function. Does anyone know how to do it?
Gregor
----------------------------------------------------
Zagraj o