Displaying 20 results from an estimated 700 matches similar to: "data file import - numbers and letters in a matrix(!)"
2007 Apr 17
2
GREP - Choosing values between two borders
Hello,
I import datas from an file with: readLines
But I need only a part of all measurments of this file. These are between
two borders "START" and "END".
Can you tell me the syntax of grep(), to choose values between two borders?
My R Code was not succesful, and I can't finde anything in the help.
Thank's a lot.
Felix
######### R-CODE ###################
file
2007 Apr 16
1
Dataimport with readLines using skip= and nlines= ?
Hello,
I have a problem with readLines.
I have a data file with many informations added with a different number of measurments (example at the end).
I only want to read the measurments witch start with "START OF HEIGHT DATA" and end with "END OF HEIGHT DATA".
The difficulty is:
-I want to read the file with "readLines", because the measurments have letters and
2009 Mar 19
1
simple "for loop" program for merging datasets?
Dear R community,
I would like to merge two datasets based on the categorical predictor “country”.
Dataset A:
Country Measure1
Afganistan 1
Afganistan 1
Russia 5
Poland 3
Poland 2
Dataset B:
Country Measure 2
Russia 2
Afganistan 10
Poland 15
My program does not work:
Country_A<-A$Country
2011 Apr 13
1
strategy for writing out file with lines header initiated with comment sign
Dear all,
I have data.frame object in R. I want to export it in tab-delimited
file with several lines of header initiated with comment sign (#). I
do not know how to do that in R. Could you please give helps on this
problem?
Thanks in advance.
Best,
Jian-Feng,
##################################################################
The lines I want to write in the header lines look like, with words
2007 May 15
1
Re : Bootstrap sampling for repeated measures
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070515/799f44ed/attachment.pl
2013 Dec 31
2
*8 and SIP
Greetings all, First time poster, Sorry if this has been answered here
before.
We recently replaced a failed 1.4x asterisk PBX at a customer location.
Voicemail access was setup when the customer dialed *8, This worked in
1.4.
Now, Running 1.6 (I know it's old I had to load it quickly, And that's what
I got working first. It'll get upgraded to 1.8 soon).
The strange part is *8 no
2017 Aug 17
1
Permission denied to access the email file
Hi,
Dovecot version : 2.2.22 (fe789d2)
Operating system :
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
CPU architecture : Linux 4.4.67-1-pve #1 SMP PVE 4.4.67-92 (Fri, 23 Jun
2017 08:22:06 +0200) x86_64 GNU/Linux
FIle system : local
UID GID
Aug 17 11:47:28 azizee dovecot: imap(jra11[*5063*:*5011*]):
2003 Apr 24
1
RMySQL crash under R 1.7.0, but not 1.6.2
Hi,
I was able to connect to a MySQL database (called "zooscan" and with a table
"serie" under Win XP with R 1.6.2 using:
> library(DBI)
> library(RMySQL)
Warning message:
DLL attempted to change FPU control word from 8001f to 9001f
> drv <- dbDriver("MySQL")
> con <- dbConnect(drv, dbname="zooscan")
> dbExistsTable(con,
2009 Dec 23
1
Problems with chan_sip
Calling my home numbers has always worked. Till now. The Asterisk CLI
show the following :
[Dec 23 10:53:22] NOTICE[25159]: chan_sip.c:12640 handle_response_invite: Failed to authenticate on INVITE to '<sip:092xx90xx at 85.xx.xx.xx>;tag=as5b139383'
And after restarting Asterisk, the CLI is flooded by :
[Dec 23 11:11:06] WARNING[1468]: chan_sip.c:1817 __sip_xmit: sip_xmit of
2013 Jan 30
3
bug report: apcsmart (WIN) 940-0024C connect fail, problem with command 'E'
Dear Ladies and Gentlemen,
I have several old, yet functioning APC Smart-UPS (Model 600LS, Part AP600I,
Firmware 6JI, no EEPROM, from 1991). They are not supported by Powerchute
any more. I run NUT 2.6.5-4 on Windows XP SP3. I use COM1 port with cable
940-0024C. The connection fails with APC Smart protocol driver 3.0
(2.6.3-3534:3540M), APC command table version 3.0 or higher - it works with
APC
2006 Apr 19
1
prop.table on three-way table?
Dear list,
I am trying to create a three-way table with percent occurrence
instead of raw frequencies. However, I cannot get the results I
expected:
I have the following table:
> ftable(table( mannerDF$agem, mannerDF$target, mannerDF$manner ))
<snip>
50 bak 0 0 0 0 1 0
pak 0 0 0 0 3 0
sak
2014 Mar 25
2
Asterisk 12.1.1 - Having trouble setting up PJSIP
I am trying to make PJSIP work with my Cisco SPA504G phone. I have no problems making it work with the chan_sip driver.
When I configure my phone, it indicates the contact was added
-- Added contact 'sip:7001 at 192.168.9.142:5063' to AOR '7001' with expiration of 3600 seconds
Phone shows green light for the line.
I then attempt to dial extension 1 and Asterisk crashes.
2012 May 15
2
Renaming names in R matrix
I have the following matrix:
> dat
[,1] [,2] [,3] [,4]
foo 0.7574657 0.2104075 0.02922241 0.002705617
foo 0.0000000 0.0000000 0.00000000 0.000000000
foo 0.0000000 0.0000000 0.00000000 0.000000000
foo 0.0000000 0.0000000 0.00000000 0.000000000
foo 0.0000000 0.0000000 0.00000000 0.000000000
foo 0.0000000 0.0000000 0.00000000 0.000000000
and given this:
2010 Jul 12
4
Remote-Party-ID party=called
Hello list,
using Asterisk 1.4.30.
I want to set the SIP-header Remote-Party-ID to display the name of the
calling party on my phone in stead of the number.
This is the dialplan :
exten => 10,1,NoOp()
exten => 10,n,SIPAddHeader(Remote-Party-ID: "eric"
<sip:10 at 192.168.1.150>;party=called )
exten => 10,n,Dial(SIP/test2)
This is what the CLI shows :
/[Jul 12
2009 Jun 10
1
R: Best way to plot a Matrix of all possible pair combinations
Hallo R Users,
Please help
I have some distance matrix data like
> M[1:10,]
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 0.8750000 0.5000000 0.5000000 0.3750000 0.6250000 0.00000000
[2,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000
[3,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000
[4,] 0.8928571 1.0000000 0.0000000 0.8928571
2007 May 02
1
Get the difference of values to their own median value
Hello,
I've got a matrix (mail end) with the colnames x, y, z. In this matrix
are different measurements. x and y are risign coordinates.
With the following line I got the median value of z for all "x" AND "y" witch
are the same (not every measurment in my list hast the same number of
"x" and "y" values. Sometimes lines are missing.
>MEDIAN <-
2011 Aug 16
2
Assignment working differently inside ifelse()
Hello all, I need to extract rows and columns from a data frame and put
them in a matrix. In some cases, there are no rows in the data frame
meeting the selection criteria. For those rows I want to put a row of
0's in the matrix. Here's my clumsy code:
tab1.m1 <- matrix(0, nrow=2, ncol=4)
tab1.m1[1,] <- ifelse(length(as.matrix(tab1[tab1$comp==the.comp & tab1$schlid==the.schl
2011 Jan 19
1
combining matrices from a list into a multidimensional array
I get some results back from running an iterative analysis in the form of a list of matrices. What I would like to do with this list is combine it such that all the similar components get combined into a multidimensional array. If possible I'd like to put results[[1]]$resultmean and results[[2]]$resultmean into a 3x3x2 array, and also put results[[1]]$resultsd and results[[2]]$resultsd in a
2012 Feb 10
2
naiveBayes: slow predict, weird results
I did this:
nb <- naiveBayes(users, platform)
pl <- predict(nb,users)
nrow(users) ==> 314781
ncol(users) ==> 109
1. naiveBayes() was quite fast (~20 seconds), while predict() was slow
(tens of minutes). why?
2. the predict results were completely off the mark (quite the opposite
of the expected overfitting). suffice it to show the tables:
pl:
android blackberry ipad
2007 Nov 27
1
Re place values in Data matrix
I have data matrix and I want to replace values.
> try
Rh.Rj RR.Rj RT.Rj
V1 0.08465125 0.19159688 0.617294468
V2 0.74853203 0.88826790 0.113979660
V3 0.68767961 0.17979307 0.013802852
V4 0.31722379 0.25611821 -0.021954454
V5 0.17931687 0.04491838 0.011484522
V6 0.87455663 0.16846121 0.002241211
V7 0.61770029 0.01090132 0.000079900
> try[try > 0.05]<-0
>