Displaying 20 results from an estimated 30000 matches similar to: "Extracting Header From Table"
2003 Jan 09
1
fft(x, inv=TRUE)
I started out with a real vector b and then obtained its Fourier transform
thus
B<-fft(b)
When I did
F<-fft(B, inv=TRUE)
I expected that F would be the inverse FT of B but it still has imaginary
components.
Should the inverse FT not be purely real? Am I missing something?
Thanks,
Peter.
2002 Apr 09
1
Mixture Modeling in R
<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><div>I was wondering if anyone knew there are functions to do mixture modeling in R.</div><DIV> </DIV><DIV>Many thanks in advance,</DIV><DIV>Peter
2005 Jan 10
4
Graphical table in R
I would like R to produce some tabulated data in a graphical output. When
I say tabulated data, what I mean is a table with rows and columns. This
would be useful when reading in a big file, performing some analysis on
it, and then wanting to display the results as a table.
Something like
plot(x,...)
where x is a matrix
For example, the result could look (approximatly) like...
2004 May 04
1
xyplot and for loops
I'm attempting to use xyplot() within a for() loop to plot the relationship
between a DV and a series of predictor variables, split by 2 conditioning
variables. However, xyplot() does not "seem" to be recognized within the for()
loop; I don't receive any error message, but nothing is plotted and a plotting
device is not opened. When I use the generic function plot(),
2013 Jan 23
1
hyphen replaced by period in header when using read.table
To Whom It May Concern:
I have noticed that all of the hyphens ("-") are changed to periods (".") when I try to read.table() and the headers contain "-"
I am using R 2.13 on a RedHat system.
Here is the situation:
I have the following a tab-delimited text file saved as test.txt
File1-a.txt
File1-b.txt
File2-a.txt
File2-b.txt
1
1
2
1
1
2
3
2
1
1
2
3
2004 Jun 22
1
write.table when keeping column headers (names of Columns in matrix) and row numbers
When using the write.table (say for a tab delimited file) command on a
matrix with Row and Columns, the column headers are always being left
shifted into the column where the row numbers are being placed. One can see
this when you open up the tab delimited file in excel.
Is there a better command for this, or is this supposed to be a 'feature'.
Peter
2007 May 20
3
Why a multi column, tab delimited file has only one column after reading in with read.table specification sep="\t"
Dear all:
I have a tab delimited file as following
AGE WEIGHT PROTEIN ........
6 20 3 ........
8 39 4 ........
I tried to read it as following:
data <- read.table(file,sep="\t",header=T);
but there is only column for the data after reading in,:
dim(data);
[1] 200 1
the column name is "AGE...WEIGHT...........PROTEIN...."
Any quick suggestion will be appreciated.
2005 Oct 20
4
read.fwf doesn't work with header = TRUE (PR#8226)
Full_Name: Emmanuel Paradis
Version: 2.1.1
OS: Linux
Submission from: (NULL) (193.49.41.105)
read.fwf(..., header = TRUE) does not work properly since:
1/ the original header is printed on the console and not in FILE;
2/ the different 'parts' of the header should be separated with tabs
to work with the call to read.table.
Here is a suggested fix for src/library/utils/R/read.fwf.R:
2010 May 04
2
read.table: skipping trailing delimiters
Hi,
I am trying to read a tab-delimited file that has trailing tab
delimiters. It's a simple file with two legitimate fields. I'm using the
first as row.names, and the second should be the only column in the
resulting data frame.
Initially, R was filling the last column with NA's, but I was able to
stop that by setting
2018 Feb 04
1
Unexpected behaviour from read.table
I?ve been struggling with seemingly ?corrupt? data.frames for a few days, and believe I?ve narrowed the problem down to some odd behaviour from read.table
I receive a tab delimited file from an external provider where strings are encoded as =?content?. Not sure why, perhaps as most users open it in Excel.
My specific issue is that trailing spaces in any of the strings are causing strange results
2007 Sep 25
5
extracting data using strings as delimiters
Dear List,
I have an ascii text file with data I'd like to extract. Example:
Year Built: 1873 Gross Building Area: 578 sq ft
Total Rooms: 6 Living Area: 578 sq ft
There is a lot of data I'd like to ignore in each record, so I'm
hoping there is a way to use strings as delimiters to get the data I
want (e.g. tell R to take data between "Built:" and "Gross" -
2010 Mar 03
3
[LLVMdev] Extracting type information from header files
Hi,
I would like to generate an LLVM bitcode file that contains all the types and functions declared in a header file.
For example, the following code should make the llvm compiler put all type information contained in stdio.h in the resulting bitcode file.
#include <stdio.h>
int main()
{
return 0;
}
Unfortunately, when compiled with "llvm-gcc -g -emit-llvm -c test.c", the
2010 Mar 03
0
[LLVMdev] Extracting type information from header files
Hello Vitaly,
Clang supports LLVM Bitcode formatted precompiled headers if that is what you are looking for. LLVM-GCC might be a different story though. Also note that these headers will be different from one operating system to the next. If you're looking for something portable, test out my wrapper at http://sourceforge.net/projects/llvmlibc/ in the SVN repo.
--Sam
----- Original
2007 Jul 16
3
Errors in data frames from read.table
Hello, all.
I am working on a project with a large (~350Mb, about 5800 rows) insurance claims dataset. It was supplied in a tilde(~)-delimited format. I imported it into a data frame in R by setting memory.limit to maximum (4Gb) for my computer and using read.table.
The resulting data frame had 10 bad rows. The errors appear due to read.table missing delimiter characters, with multiple data
2009 Jun 19
3
read.table error
Hello,
I'm receiving an error on attempting to use the read.table() function
to read in data from a tab-delimited file. The file has more than
60,000 rows with 94 tab-delimited columns. However, the error occurs
on row 3 of the file:
> wl <-read.table("sr003lines.tab", header=T, sep="\t")
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
2008 Oct 02
3
Problem with read.table()
Hello everybody,
I'm a new user and I'm trying to use read.table with a tab delimited
file but the system tells me (i) that there are more columns than
column names, and (ii) that headers and col.names are of different
lengths. I have already checked my variable names and there's no blank
spaces. However, some variables have quite long names such as
2013 Jan 23
4
extracting characters from a string
Dear All,
I have a data frame of vectors of publication names such as 'pub':
pub1 <- c('Brown DK, Santos R, Rome DF, Don Juan X')
pub2 <- c('Benigni D')
pub3 <- c('Arstra SD, Van den Hoops DD, lamarque D')
pub <- rbind(pub1, pub2, pub3)
I would like to construct a dataframe with only author's last name and each last name in columns and the
2010 Mar 03
4
Newb question re. read.table...
I'm trying to get started with R, on Ubuntu. I worked through the
tutorial, and have made a small tab-delimited subset of my data to try
out (10 cases with about a dozens variables). But I can't seem to figure
out how to actually refer to variables. I presume I'm missing something
very simple, but quite a while searching the doc and the FAQ haven't
helped me.
I'm loading the
2003 Jan 22
4
Read.table for macs
Dear All,
I've been using R for windows for a while, without too many problems.
However, I'm forced to use the MAC OS system for teaching, because our
teaching labs are mac only (not my idea!!). I have a very basic problem,
but one that doesn't appear on the FAQs. I simply want to import data
from a spreadsheet. I'm using exactly what works fine on Windows, namely:
1 save
2006 Jan 25
3
read.table problem
Dear R useRs,
I have big (23000 rows), vertical bar delimited file:
e.g.
A00001|Text a,Text b, Text c|345
A00002|Text bla|456
...
..
.
Try using
A <- read.table('filename.txt', header=FALSE,sep='\|')
process stop at line 11975 with warning message:
number of items read is not a multiple of the number of columns
I have no problems with processing similar file, which is