Displaying 20 results from an estimated 6000 matches similar to: "importing text file with duplicate rows / indexing rows and columns"
2011 Mar 21
3
Replacing Period in String
Dear R Users,
I am working with gsub for the first time. I am trying to remove some
characters from a string. I have hit the problem where the period is the
shorthand for 'everything' in the R language when what I want to remove is
the actual periods. In the example below, I simply want to remove the
periods as I have removed the comma, but instead the complete string is
wiped out. I
2012 Aug 30
2
Help on Plot Title where text is "mixed" with numerical carachters
Dear All,
I have the following code set up:
x <-2000
y <-8
z <-3
I would need to use these numbers to show up in my plot title "mixed" with text. The x,y,z numbers would need to change, the text would not. So my title should look like this
"x txt1 y txt2 z txt3"
so if:
txt1=hours
txt2=minutes
txt3=seconds
then my title of the plot should read: 2000 hours
2014 Jul 22
2
Ayuda Error in `colnames<-`(`*tmp*`, value = c(
Buenas tardes, grupo.
Estoy tratando de hacer la comparación de dos archivos de una misma
organización para encontrar las diferencias entre su informe del tema
edl año 2005 y el del año 2013:
Todos los comandos van bien, a exepción del último "colnames", como se
ve en la siguiente secuencia:
> pdf1<-"./PLAN de INSPECCIONES/05_seguridad_ciudadana.pdf"
>
2012 Dec 19
2
read.csv reads more rows than indicated by wc -l
When I have a csv file that is more than 6 lines long, not including
the header, and one of the fields is blank for the last few lines, and
there is an extra comma on of the lines with the blank field,
read.csv() makes creates an extra line.
I attached an example file; I'll also paste the contents here:
A,apple
A,orange
A,orange
A,orange
A,orange
A,,,
A,,
-----
wc -l reports that this file
2008 Aug 01
1
Properly Parsing Pre-Superscripts & Displaying Them With grid.text
Hi all... I?m making a chart dealing with frequencies of isotopes of various
elements. For instance, I'd like the following text to appear on a chart
with the "35" and "37" as superscripts:
Based upon:
35Cl: 75%
37Cl: 25%
I am having problems properly parsing the superscript that preceeds the
"Cl", since there is no character ahead of the superscript (I saw
2006 Dec 14
1
Does send_file act differently with Mongrel than withWebrick?
I tried the mime thing but it did not help. I didn''t think it was that because I can get the mp3 served OK hitting the URL in a browser.
I just noticed that I am getting an error in Mongrel when WinAmp make the request for the mp3 file:
BAD CLIENT (127.0.0.1): Invalid HTTP format, parsing fails.
I don''t think Mongrel has a problem with the URL itself because if a browser
2010 May 05
2
readLines with space-delimiter?
Hi,
I am reading a large space-delimited text file into R (41 columns and many
rows) and need to do run each row's values through another R object and then
write to another text file. So, far using readLines and writeLines seems to
be the best bet. I've gotten the data exchange working except each row is
read in as one 'chunk', meaning the row has all values between two quotes
2007 Feb 15
1
Anyway to Force a start even if the .pid file exists?
I''m using monit to restart mongrel processes if they go away. With mongrel 0.3 I could issue a start command and the process would start up even if the .pid file existed (though a warning would appear).
Now, with mongrel 1.0.1 the warning says I must clear the .pid file and the process is not started. Is there anyway to force it to start without having to clear the .pid?
Regards
2006 Dec 14
1
Does send_file act differently with Mongrel than with Webrick?
Mongrel 0.3.13.3
Windows XP
Rails 1.1.6
I have a rails app that serves up mp3 files via the send_file command. We create a playlist (M3U) with URLs to the mp3s. These play just fine using Windows Media Player. However using WinAmp we get an error "error syncing to stream" when it tries to request the mp3.
After playing around I found that if I am running Rails under Webrick WinAmp
2006 Sep 26
4
Mongrel Processes Dying
We are seeing mongrel processes dying in our mongrel cluster. What is the best way to
troubleshoot this?
We have ruby 1.8.4, Rails 1.1.0 (upgrading soon), MySql 4.1 running on Red Hat Enterprise Linux
ES release 4, Apache 2.2, mongrel-0.3.13.3, mongrel_cluster-0.2.0
I saw the following messages in the mongrel.log but not sure if theay are related to the
processes dying. It would be nice if
2002 Apr 29
0
SafeDisc FAQs
Hi,
For those interrested, here's a FAQs about my SafeDisc support
implementation.
Feel free to comment.
Laurent Pinchart
-------------- next part --------------
SafeDisc FAQs
What is SafeDisc ?
==================
SafeDisc is a CD copy protection system designed for Microsoft Windows. It is
widely used, especially to protect games. There are currently 2 main versions
of SafeDisc
2010 Apr 24
1
Formatting numerical output
Hello,
I am new to R and am having difficulty formatting numerical output from a regression analysis. My code iteratively performs linear regression on a dataset while excluding certain data ranges.
My code:
rm(list = ls(all = TRUE))
sink("outfile")
dat <- read.table("testdat", sep="\t", header=TRUE)
int = 0.2
for (x in c(0:20)) {
subdat <- subset(dat, time
2011 Dec 05
1
Toggle cASE
Hello R-help list,
I am looking for way to toggle the case of the characters like a flip-flop; that is from ''Hello'' to "hELLO" or vice versa.
I know that there are a number of functions like casefold, tolower, toupper, etc. but these functions change the case in an uniform way.
Thanks in advance,
Antonio Rivero Ostoic
Antonio Rivero Ostoic
PhD Student,
2007 Jun 07
2
Is there any plan to support HTTP Proxy
Tinc is a great idea but often we sit behind corporate firewall which
also often to only allow traffic to go through HTTP proxy. is there any
plan of tinc to implement the proxy support, then it will truely be
wonderful.
like other through proxy service, one might setup a broker server to
establish an initial connection through proxy and then hand over the
communication to point-to-point, like
2012 Jun 13
2
need help
hello
could you help in solving the following problem
I want to replace same consecutive words by a single word in a sentence..
for example --- my name name name is micky
so I want the output like this--my name is micky
I want this solution for a text file
can you tell me the code for it??
thanking you in anticipation
--
Shilpa Rai
MSc.(2011-2013)
Applied Statistics and Informatics
Indian
2004 Jul 14
4
duplicate row importing issue
Hello,
I'm simply trying to import a .txt file that has a column of
about 30,000 pts. I found the file, but I'm getting an error:
> m <- read.table(choose.files())
Error in "row.names<-.data.frame"(`*tmp*`, value = row.names) :
duplicate row.names are not allowed
Any help with getting around this?
I really appreciate all the help.
Thanks
dave
2006 Sep 26
3
Clustering - Avoiding "dead" processes?
I have Mongrel Cluster setup with Apache a mod_proxy_balancer. I''ve seen (from time to time) mongrel instances become non-responsive. Is there anyway to configure the balancer so that it "knows" which processes are no longer good and stops trying to use them?
_______________________________________________________
The FREE service that prevents junk email
2010 Jan 20
3
Deleting rows based on duplicate entries in one columns in a data matrix
Hi everybody,
I would like to delete rows based on duplicate entries in column 3 in the
data matrix X (size 60000 x 57). I have tried the unique(x) command as
> data <- X[unique(X[,3]),]
however, for some reason the command introduces a lot of NA's into the
dataset.
So, now I'm looking for a function that eliminates rows, if they have
duplicate values in column 3.
Does anyone
2013 Feb 20
2
duplicate 'row.names' are not allowed
I am getting an error when trying to import tab delimited .txt file saved
from Excel.
I have read what is posted on the forums but still am confused.
I saved my Excel file (DataTestforR.xlsx) as a tab delimited txt file
(DataTestR.txt) on my Desktop.
In the RGUI, I tried to import the txt file and got an error
> myfile<-"C:\\Users\\jpapa\\Desktop\\DataTestR.txt"
>
2004 Jan 12
1
Samba 2.2.8a: Deleting all files
I have a directory on Unix exposed as a Samba share. All the filenames are greater than 8.3 format. When I go to this directory from a DOS
prompt and do 'del *.*', I get a bunch of errors 'Unable to find file ...'..
But, if the directory contained 500 files, after the 'del *.*' it contains 400 files.
I repeat the del *.*, get a few more errors Unable to find file ...