Displaying 20 results from an estimated 5000 matches similar to: "R regular expression to extract words with the query string."
2009 Oct 22
2
Replacing multiple elements in a vector !
Hi,
I have a vector with elements
rs.id=c(''rs100'',''rs101'',''rs102'',''rs103'')
And a dataframe ''snp.id''
1 SNP_100 rs100
2 SNP_101 rs101
3 SNP_102 rs102
4 SNP_103 rs103
Task is to replace
2010 May 18
1
Getting dates in an SPSS file in right format.
Dear all,
I am trying to read an SPSS file into a data frame in R using method
read.spss(),
sample <- read.spss(file.name,to.data.frame=TRUE)
But dates in the data.frame ''sample'' are coming as integers and not in the
actual date format given in the SPSS file.
Appreciate if anyone can help me to solve this problem.
Kind Regards,
Praveen Surendran
2G, Complex
2012 Oct 29
3
Opening SAS file using read.sas7bdat() function in sas7bdat library.
Hi,
I have a file in .sas7bdat format. I tried to open this file using
read.sas7bdat() function.
This gave me an error - "Error in read.sas7bdat("bnp_genetic.sas7bdat") :
unknown host X64_7PRO".
Could someone tell me what this error means?
Thank you,
Praveen.
[[alternative HTML version deleted]]
2009 Oct 14
2
Getting indeices of intersecting elements.
Hi,
Is there a command to get the indices of intersecting elements of two
vectors as intersect() will give the elements and not its indices.
Thanks in advance.
Praveen Surendran
School of Medicine and Medical Sciences
University College Dublin
Belfield, Dublin 4
Ireland.
[[alternative HTML version deleted]]
2009 Aug 10
1
index of intersect()
Hi all,
Is there a way to get the index of elements in intersect(x,y) where x and y
are vectors with few common elements.
Appreciate your response.
Praveen Surendran.
[[alternative HTML version deleted]]
2012 Jun 25
2
setdiff datframes
hi,
I have 2 files example 1 and example 2 and would like to know what is in
example2 and not in example1 (attached)
V1 contain data which could be in duplicated which I am using as identifiers
I used setdiff(example2$V1,example1$V1) to find the identifiers which
are specific to example2:
[1] "rs2276598" "rs17253672"
I am looking for a way to get an output with all
2009 Jun 19
1
Alternate ways of finding number of occurrence of an element in a vector.
Hi,
I have a vector "v" and would like to find the number of occurrence of
element "x" in the same.
Is there a way other than,
sum(as.integer(v==x)) or length(which(x==v))
to do the this.
I have a huge file to process and do this. Both the above described methods
are pretty slow while dealing with a large vector.
Please have your comments.
Praveen
2009 Jul 09
2
How to Populate List
Hi,
I'm new to R and would like to know, how one can populate the list with array data.
I'm reading a tab separated table in R. The data in the table looks something like this.
#Table Data
Comp A B C
Extracellular 103 268 535759
Nucleus 45603 47783 442744
#R code
myData <- read.table("table.data",
header=T,
2009 Jul 16
2
Finding missing elements by comparing vectors
Hi,
Is there a function in R to do a-b where a and b are two non-numeric sets
(or intersection complement of these two sets).
Kind Regards,
Praveen.
[[alternative HTML version deleted]]
2006 Apr 06
12
net drive mapping not working in login script
I've set the path for each user in pdbedit and created a login script with drive mapping etc etc
The network drives aren't being mapped when I login each user:
smb.conf
[global]
printcap name = cups
cups options = raw
map to guest = Bad User
# include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
2006 Jul 18
1
Classification error rate increased by bagging - any ideas?
Hi,
I'm analysing some anthropometric data on fifty odd skull bases. We know the
gender of each skull, and we are trying to develop a predictor to identify
the
sex of unknown skulls.
Rpart with cross-validation produces two models - one of which predicts
gender
for Males well, and Females poorly, and the other does the opposite (Females
well, and Males poorly). In both cases the error
2006 Apr 25
8
Permissions for share
opensuse 10/find / samba-3.0.20b-3.3
I'm trying to change directory permissions on a share so all users can modify files in the share and when I do as suggested in Ch15 of Samba Howto the following happens
$ find `directory_name' -type d -exec chown nobody:users {}\;
find: missing argument to `-exec'
Chris Boyd
Systems Engineer
USIT
19-21 Aston Quay
Dublin 2
Ireland
Tel: +353 1
2005 Oct 14
1
Predicting classification error from rpart
Hi,
I think I'm missing something very obvious, but I am missing it, so I
would be very grateful for help. I'm using rpart to analyse data on
skull base morphology, essentially predicting sex from one or several
skull base measurements. The sex of the people whose skulls are being
studied is known, and lives as a factor (M,F) in the data. I want to
get back predictions of gender, and
2010 Jul 28
1
Help with specifiying random effects in lmer - psychology experiment
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable;
2006 Apr 06
7
Not able to join domain
I'm trying to set up Samba 3.0.20-4-SUSE on a opensuse 10 machine. I'm working with XP Pro on the client machine. I can't get the XP mahcine (RDS7) to join the domain (UCD). It asks for a user when trying to join and then says it cannot find it. The samba log is:
auth/auth.c:check_ntlm_password(317)
check_ntlm_password: Authentication for user [root] -> [root] FAILED with error
2009 Nov 12
0
Reading .sav (SPSS) files.
Hi,
I used the method read.spss() in library(foreign) to read a .sav file using
commands.
>library(foreign)
>data.sav <- read.spss(''masterfile.sav'')
>mydat <- as.data.frame(data.sav)
It''s throwing some warnings..
----------------------------------------------------------------------------
--------------------------------------------
2012 Jul 15
5
variable (column) in a data frame
To the R help list,
When using a data frame, there is no warning or error message
when I refer to a non-existent variable inside the data frame.
Example:
##----------------------------------------------
a <- c(1,2,3)
b <- c(11,22,33)
df <- data.frame(a,b)
df
## correct: there is a column in df named 'a'
## the sum is correctly performed
sum(df$a==2)
## incorrect: there is
2015 May 31
2
How to use TRUNK only if IAX fails?
Hi Matt,
I was a bit concerned on the delay if there might be any when my iax link is down?
It would be two dial steps right when my iax link is down.
But I?m more than happy to try.
Many Thanks,
Ashwin.
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Riddell (lists)
Sent: 30 May 2015 16:55
To: Asterisk Users Mailing List -
2015 Jun 07
2
Curious problem with NAT
Ashwin Surendran <Ashwin.Surendran at now-health.com> schrieb:
> Have you tried NAT=force_rport ?
OK, tried...
I can transmit from my phone (aka: I hear my voice on another phone), but I'm
not able to receive data (aka: I cannot hear what I say on the other phone).
Other suggestion?
Thanks
Luca Bertoncello
(lucabert at lucabert.de)
2015 Jun 07
3
Curious problem with NAT
Ashwin Surendran <Ashwin.Surendran at now-health.com> schrieb:
> What settings have you got for directmedia?
>
> Could you try
>
> nat=force_rport,comedia
> directmedia=no
Tried. Peer always unreachable, call not possible... :(
Other idea?
Thanks
Luca Bertoncello
(lucabert at lucabert.de)