Displaying 20 results from an estimated 10000 matches similar to: "data frame usage"
2007 Oct 25
4
ploting labels on barplot
Again me.
I want to plot the numbers on the bars of a barplot.
This can be done using hist function when setting the label argument true
(i.e.
data <- c(1,2,3,4)
hist(data, labels=T)
When I try this using barplot I get an error:
> barplot(summary(data), labels=T)
Error in axis(if (horiz) 2 else 1, at = at.l, labels = names.arg, lty =
axis.lty, :
formal
2008 Mar 17
1
summary of summaries
Hi,
I have a few hundreds files with numerical information of different length
but with the same column structure. I use the following code to get summary
statistics
fplist <- list.files(pattern=".*analysis")
for (fp in fplist){
x2 <- read.delim(fp)
summary(x2)
}
Summary gives something like:
summary (x2)
V1 V2
2007 Dec 01
3
compare strings
Sorry for the question, but I really cannot find the right search terms to
find an answer..
I have a data frame with strings in some of the columns.
I want to know all the rows where the strings in both columns are equal.
How do I do this?
Thanks,
Bernd
[[alternative HTML version deleted]]
2007 Oct 29
2
Qsub - unable to open connection to X11 display
Hi there,
I want to run an R script on a cluster with qsub. Obviously I don't want to
display any X window, but I want use png() or something else to write out
images.
Unfortunately I get the following error message:
> png(filename = " ALL.png", width = 480, height = 480, pointsize = 12, bg =
"white", res = NA)
Error in X11(paste("png::", filename,
2007 Nov 26
1
looking for packages that visualize nucleotide sequence properties
Hi there,
I am looking for R-packages that can help me visualize properties on
nucleotide sequences. I want to display sequences in the 1-100K base range
as lines and plot features above and below those lines.
Any ideas would be welcome.
Thanks,
Bernd
2006 Sep 13
2
recursive methods for concatenating sets of files
Hello,
I would like to read sets of files within a folder, perhaps using recursive
methods.
Right now, I rename the files before import.
It would be even better to do this without renaming files, without providing
explicit filenames, perhaps by importing files based on chronology,
and translating each filename into a header?
Please excuse my ignorance, and help cure my clunky programming
2001 Dec 07
1
densityplots
Dear all,
I am new in R so please forgive the "dumb" question...
I am used to work with Mathematica where it is possible to display a 2D array as a collection of shaded squares. The gray level there represents the value of the array element. It is basically a projection of a 2-dimensional histogram.
After a lot of reading I still haven't found that kind of function.
I would be
2002 May 24
1
Axis labels
Dear all
I have a problem with assigning my own labels to the axis of a plot.
I want to substitute the given labels e.g. 1,2,3,... with a vector of values
and strings e.g. "12.23", "1.34", "245,5", "Result".
B.t.w. how do I rotate these labels so they don't overlap????
I want to use the image function to plot.
Thanks for your kind help.
Bernd
2007 Nov 02
1
counting with factors
Hi there,
I have something that appears to be a factor called drug:
Typeof(drug) => Integer
As.numeric(drug) gives a long list
Levels(drug) gives a long list, too.
Now I want something like the summary function does:
I want to count how often each level occurs in the given vector.
My problem is that summary gives me a list with counts that is incomplete
and adds the
2008 Jan 04
1
R command line arguments
Hi,
I would like start R in BATCH mode and submit my own parameters. Or in other
words, I would like to specify variables from the command line and execute a
script using those.
I have been looking at commandArgs and calling R from the command line under
bash:
R CMD BATCH --no-save --args -filename="$filname" -- r-test.R r-test.Rout
The problem here is, if $filename contains
2018 Jan 09
1
barplot_add=TRUE
Dear Gerrit
Thanks a lot. "rbind" seems to be the right function. Unfortunately there is a shift in the x-axis (see pdf). There are 52 trapcatch values each, m and w, but m$trapcatch and w$trapcatch are shifted up to x-value 60.
The follow-up lines for temp and humidity are fine.
Thanks
Sibylle
setwd("~/Desktop/DatenLogger2017") # am Mac sks
trap =
2012 Feb 08
2
Problems reading tab-delim files using read.table and read.delim
Hello,
I used read.xlsx to read in Excel files but for large files it turned out to
be not very efficient.
For that reason I use a programme which writes each sheet in an Excel file
into tab-delim txt files.
After that I tried using read.table and read.delim to read in those txt
files. Unfortunately, the results
are not as expected. To show you what I mean I created a tiny Excel sheet
with some
2003 Mar 31
2
point-biserial correlation
Dear list,
has anyone written a package/function in R for computing a point-
biserial resp. biserial correlation?
Thanks in advance
Bernd
2010 Nov 17
1
general question on R setup/environment
Hi,
Someone recently told me that R is not working well with other programs in
a clustered environment. I believe we are using gensoft and working in a
redhat environment. What was also mentioned was that there are problems when
running multiple R instance at the same time.
Personally I haven't experienced any of the described difficulties but would
like to get your feedback and potentially
2007 Aug 23
2
read big text file into R
Dear Rs:
Hi, I am trying to read a big text file (nrows=243440, ncols=144). It
seems the computational time of all the read methods
(scan,readtable,read.delim) is not linear to the number of rows I
want to read in: things became really slow once I tried to read in
100000 lines compare to 10000 lines).
If I am reading the profiling result right, I guess scan wouldn't
help either.
My
2005 Sep 08
1
Wishlist: write.delim()
Hi,
It would be great if someone would add write.delim() as an
adjunct to write.table(), just as with write.csv().
I store a lot of data in tab-delimited files and can read
it in easily with: read.delim("text.txt", as.is=TRUE)
and would love to be able to write it out as easily when
I create these files.
The obvious setting needed for write.delim() is sep = "\t",
but in
2009 Mar 23
3
read in large data file (tsv) with inline filter?
I have a very large tab-delimited file, too big to store in memory via
readLines() or read.delim(). Turns out I only need a few hundred of those
lines to be read in. If it were not so large, I could read the entire file
in and "grep" the lines I need. For such a large file; many calls to
read.delim() with incrementing "skip" and "nrows" parameters, followed by
grep()
2011 Apr 27
1
read.table: fill=T for header?
Dear ExpeRts,t
I am trying to read tab delimted data produced by somewhat brain dead
software that seems to think it's a good idea to have an extra tab
character after the last column - except for the header line. As
explained in the help page, read.delim now assumes that the first
column contains the row.names (which is not even wrong) but now and all
col.names get shiftet by one column.
2006 Jul 06
3
Comparing two matrices
hi:
I have matrix with dimensions(200 X 20,000). I have
another file, a tab-delim file where first column
variables are row names and second column variables
are column names.
For instance:
> tmat
Apple Orange Mango Grape Star
A 0 0 0 0 0
O 0 0 0 0 0
M 0 0 0 0 0
G 0 0 0 0 0
S 0 0 0 0 0
2016 Apr 26
0
How to print the frequency table (produced by the command "table" to Excel
Hi jpm miao,
You can get CSV files that can be imported into Excel like this:
library(prettyR)
sink("excel_table1.csv")
delim.table(table(df[,c("y","z")]))
sink()
sink("excel_table2.csv")
delim.table(as.data.frame(table(df[,c("y","z")])),label="")
sink()
sink("excel_table3.csv")