Displaying 20 results from an estimated 1200 matches similar to: "import csv file into R, strange problem"
2011 Dec 13
2
how to manually enter an double quote as data feed?
I'm doing a text mining project where I have to manually enter a double quote
as an element inside a vector.
I tried
char[10]='"'#where i enclosed the double quote in a pair of single quotes.
But the result is [1] "\"". Somehow a back slash is added automatically.
I also tried to enclose the double quote in a pair of double quotes. That
didn't work either.
2011 Sep 18
2
graph bugs using R on MAC
This is has been bugging me for a long time. Nobody around me seems to
have this problem. I hope someone on the forum could help me.
When I generate a R graph and want to bring the image into Word. I
cannot copy and paste it like many of my classmates can do. The
"Select" in Edit menu have all options grayed out. So what I ended up
doing is to save it as pdf file and bring it
2012 Jan 13
2
Bug#655714: xcp-squeezed: fails to install due to insserv rejecting the script header
Package: xcp-squeezed
Version: 1.3-13
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts piuparts.d.o
Hi,
during a test with piuparts I noticed your package failed to install due to
incorrect dependencies in the init.d LSB header. Some debian notes are
available from at http://wiki.debian.org/LSBInitScripts
From the attached log (scroll to the bottom...):
Selecting
2009 Dec 22
3
XAPI source code
Hi All
I have downloaded the opensource xapi source code. I am not sure what the functins of the follow modules:
1 block_device_io
2 datamodel
3 xiu (I am puzzled by the name "xiu")
4 stats
5 rpc-light
6 rss
7 xb (I think the xapi needs not to talk to xenbus directly)
8 xsrpc (why it writes some "rpc" keys to path of "domain/<domid>" in the
2005 Dec 22
6
Plot problems: xlim
Hi,
Still fresh in R, tried to figure this out, now on my second day running with no luck (and a pile of hair on my desk) so
I have thrown in the towel and would like to ask for some help.
Here is what I am trying to do. I am trying to plot a distribution, I have 99 points, bound in the range
xlim.min: -0.0173
xlim.max: 0.02103
However, I have a value outside this range (0.2454959) which I
2012 Oct 24
1
Upload of fixes for xen-api
Dear release team,
I would like update the Wheezy package of xen-api with numerous small
fixes. These aren't RC bugs, but I believe they are all worth fixing. I
believe that the most important one to fix is #682202.
Here's the changelog:
* Fixes bashism in install-debian-pv.sh (Closes: #690612).
* Fixes bashism in interface-visualise (Closes: #690710).
* The /etc/init.d/xcp-squeezed
2005 Nov 02
2
breaks in hist()
Dear listers,
A quick question about breaks in hist().
The histogram is highly screwed to the right, say, the range of the vector is [0, 2], but 95% of the value is squeezed in the interval (0.01, 0.2). My question is : how to set the breaks then make the histogram look even?
Thanks in advance,
Leaf
2005 Nov 02
1
Visualizing a Data Distribution -- Was: breaks in hist()
> > Leaf Sun wrote:
> > The histogram is highly screwed to the right, say, the range
> > of the vector is [0, 2], but 95% of the value is squeezed in
> > the interval (0.01, 0.2).
I guess the histogram is as you wrote. See
http://web.maths.unsw.edu.au/~tduong/seminars/intro2kde/
for a short explanation.
> -----Original Message-----
> From: Berton Gunter
2010 Oct 29
1
Updating asteriskcdrdb with uniqueid field from Master.csv, Master.csv.1....Master.csv.5 - Must I bring all files together first?
Hi Everyone,
Just noted that PBXinaFLASH failed me again on yet something else. The
uniqueid field didn't update on the asteriskcdrdb in the past few months but
it is available in the .csv files in /var/log/asterisk/cdr-csv/*.csv
I have already re-did the asterisk-addons install with correct parameters to
include future calls "uniqueid" in the table (I have no clue why these
2011 Dec 04
1
xyplot squeezed together
Hi,
I created the following example of a xyplot. The plot actually looks ok
apart from that the
x-axis is pretty squeezed/clinched. I tried aspect="fill" already but I want
to have all 3 sub plots
next to each other. I tried loads of different scaling varieties but with no
significant result...
library(lattice)
N <- 6
d <-
2010 Dec 20
1
Writing to a CSV with Faster::CSV
Is there a way to write a csv file using a hash instead of an array?
Something like this:
header_keys = :first_name, :last_name, :email
FasterCSV.open("path/to/file.csv", "w") do |csv|
User.all.do |user|
csv << user
end
end
Thanks...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2003 Jul 24
0
unz( "x.zip", "y.csv" ) != pipe( "unzip -p x.zip y.csv" )
Not sure this is a bug in R.
Maybe its a bug in my understanding of unz().
The character 'b2' (hexadecimal) is in position 535 of line 1
of 'naughty.csv'. This character appears as superscript '2' and came to me
in an EXCEL file that I converted to text in a comma separated ( *.csv )
format.
The first line gets truncated by readLines after 534 characters using
unz():
2008 Oct 09
1
Write multiple objects / data frames into a single .csv -- write.csv
Hello,
Is there a way to put multiple data.frames or objects into a single .csv ?
I know I can use sink() to do this for a text file. Is there way to do it
for a .csv?
e.g. for sink()
sink("c5.k.s.p.92.LN.sl.vs.mean.txt")
symnum(c5.k.92.LN.sl.vs.mean)
symnum(c5.s.92.LN.sl.vs.mean)
symnum(c5.p.92.LN.sl.vs.mean)
sink()
Could I put these all into a single .csv, in a similar format to
2010 Jan 21
1
How to write '"' to a csv with the default setting of write.csv?
Please see the following example. I can not write '"' to a csv file
successfully. Could somebody let me if it is possible to write '"' to
a csv file with the default setting of write.csv?
my_home$ Rscript main_quote.R
> x=rbind(
+ "\"A\""
+ , "\"B\""
+ )
> x
[,1]
[1,] "\"A\""
[2,]
2011 Nov 11
1
Have write.csv write csv without observation number
Hello all,
Have a little annoying issue with wreite.csv. It always writes out
observation number. Is there a way to avoid this. Thanks,
DL
--
View this message in context: http://r.789695.n4.nabble.com/Have-write-csv-write-csv-without-observation-number-tp4030672p4030672.html
Sent from the R help mailing list archive at Nabble.com.
2011 Aug 31
2
ggplot2 to create a "square" plot
Dear all,
I am using ggplot with geom_tile to print as an image a matrix I have. My matrix is a squared one of 512*512 cells.
The code that does that is written below
> print(v + geom_tile(aes(fill=dB))+ opts(axis.text.x=theme_text(size=20),axis.text.y=theme_text(size=20), axis.title.x=theme_text(size=25) , axis.title.y=theme_text(size=25), legend.title=theme_text(size=25,hjust=-0.4) ,
2010 May 04
1
Objective: to create a Joint Probability Table and save as a csv file (with headers).Input: A csv file (with headers) containing raw data, arranged by columns.Variable: number of bins for each column of data, default to 5 bins per column.Data
Hi Roscoe,
I couldn't make it though that excel worksheet without my eyes glazing
over... but do you want something like
data(mtcars)
tab <- xtabs(~cyl + gear, data=mtcars)
tab/sum(tab)
?
Best,
Isat
On Mon, May 3, 2010 at 10:08 PM, Roscoe <Roscoe at exemail.com.au> wrote:
> Dear R-Help,
>
> First post, be gentle...
>
> I am new to R: I can perform basic functions
2011 Jan 13
1
Unexpected behaviour of write.csv - read.csv
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Assuming the following:
> x <- data.frame(a=1:10, b=runif(10))
> str(x)
'data.frame': 10 obs. of 2 variables:
$ a: int 1 2 3 4 5 6 7 8 9 10
$ b: num 0.692 0.325 0.634 0.16 0.873 ...
> write.csv(x, "x.csv")
> x2 <- read.csv("x.csv")
> str(x2)
'data.frame': 10 obs. of 3 variables:
$ X:
2008 Apr 08
1
Combining many csv files into one and adding a column with an id of each csv file read
Dear R experts,
I have been looking into the help-pages and old
questions from the R-Help site, but the options
offered there don't seem to work in my case.
First of all, I am working on Windows XP, using R
version 2.6.2.
I am attaching two csv files as an example of how
the data I am traying to put together is delivered to
us. On the first row of every csv file is the name of
the
2011 Apr 29
2
read.csv fails to read a CSV file from google docs
Hello all,
I wish to use read.csv to read a google doc spreadsheet.
I try using the following code:
data_url <- "
http://spreadsheets0.google.com/spreadsheet/pub?hl=en&hl=en&key=0AgMhDTVek_sDdGI2YzY2R1ZESDlmZS1VYUxvblQ0REE&single=true&gid=0&output=csv
"
read.csv(data_url)
Which results in the following error:
Error in file(file, "rt") : cannot open