Displaying 20 results from an estimated 3000 matches similar to: "Variables in a Tabular form. easily saved in a txt file"
2010 Feb 10
3
How to repeat the names?
Dear R helpers
I have a city.csv file as given below.
'city.csv'
city_name1 city_name2
New York City Buffallo
So I define
city_name = read.csv('city.csv')
city1 = city_name$city_name1
city2 = city_name$city_name2
My problem is how do I repeat the names one after other say 10 times i.e. my output should be like
New York
City Buffallo
New York
City
2008 Jul 18
1
Calculating Betweenness - Efficiency problem
Hello,
I am calculating 'Betweenness' of a large network using R. Currently, I have the node-node information (City1-City2) in an excel file, present in two columns where column A has City1 and column B has City2 that city1 is connected to. These are the steps that I go through to calculate betweenness of my network.
a) Convert the City1-City2 (text) into Number1-Number2 in the excel
2015 Jun 09
3
Tablas con tabular en latex
Buenos días,
estoy tratando de encontrar la manera de generar tablas en ficheros pdf
(sweave) a través del paquete tables. He mirado que este tema esta activo
en las listas pero no logro localizar las respuestas antes dadas, por eso
lanzo esta consulta.
Mi fichero .rnw tiene el siguiente aspecto:
*******
\documentclass{article}
\usepackage{array,booktabs,caption}
\begin{document}
2004 Jan 20
2
Error: unknown identifier {|} in tabular format {|l|c|c|c|}
I've got a package I would like to send out for testing and have noticed a
"problem" with the \tabular portion of the help "compiler"
the code for inserting vertical lines, in the tabular environment, causes
the build to choke, but not the check command.
C:\>rcmd build --binary -docs=all nlsystemfit
\tabular{|l|c|c|c|}{
\hline
Method \tab Instruments \tab
2011 Oct 28
1
xtable with \begin{tabular} and only.contents
I have found that I like having my captions and labels in my latex document
rather than having them contained in my xtable output file (I haven't fully
gone to sweave yet). I know I can do something like this by using the
'only.contents' argument in xtable. Unfortunately, the only.contents
argument also removes the \begin{tabular}{rrrrrr} & \end{tabular} (in the
example below) of
2009 Apr 10
1
How to handle tabular form data in lmer without expanding the data into binary outcome form?
Dear R-gurus:
I have a question about lmer.
Basically, I have a dataset, in which each observation records number of
trials (N) and number of events (Y) given a covariate combination(X) and
group id (grp_id).
So, my dataset is in tabular form. (in case my explanation of tabular form
is unclear,
please see the link:
2009 Mar 05
4
including tabular information with a plot in R Graphics
Hi all,
I have a presentation problem that I cannot find a solution to in the
documetnation.
I have a nice barplot. Below this I would also like a table with some
information relating to the plot.
My idea was to have the plot and table on the same graphics window so I can
output them as an image file for a report.
Does anybody know how to include tabular information from a dataset or table
into
2008 Dec 23
2
Tabular output: from R to Excel or HTML
What is the equivalent for formatted tabular output of the various very
sophisticated plotting tools in R (plot, lattice, ggplot2)?
In particular, I'd like to be able to produce formatted Excel spreadsheets
(using color, fonts, borders, etc. -- probably via Excel XML) and formatted
HTML tables (ideally through a format-independent interface), and preview
them using commands within R, just as
2009 Jul 01
5
convert tabular time series into a matrix format
Hi, thanks everyone for any help in advance.
I found myself dealing with a tabular time-series data formatted each row
like [ time stamp, ID, values]. I made a small examples:
X = data.frame(t=c(1,1,1,2,2,2,2,3,3,3,4,4,4,5,5),id =
2006 Jul 21
4
Printed/PDF Reports (Text/Tabular/Summary) in Rails
The recent discussion about different graphing solutions made me
think. What is everyone using for general reports? Currently I have a
web based application at work that has roughly 20 different reports
ranging from simple tabular data with totaling at the bottom to
pretty, colorized, graphic logo''s,etc... going to clients, and
finally complex ones I hate to think about such as
2001 Feb 09
1
tabular data (was RE: [R] Removing "row.names")
Hi,
I agree that replacing data.frames for modeling functions would
be too painful. Also I agree with Thomas that new class(es) for
tabular data should not inherit from data.frame, and that data.frames
should conceptually inherit from some other base tabular data class.
At this point I'm not suggesting anything in concrete --- I haven't
sorted it out in my own mind --- but I want
2012 Oct 28
1
Tabular datos de Encuesta Continua de Hogares
Buenas, tengo la siguiente inquietud.
Tengo un data frame con los microdatos de la ECH de mi pais. He realizado un cuadro sin problemas en excel pero me gustaria una rutina de R para poder generar la tabla. El data.frame se llama ECH2009. Cuenta con las siguientes variables para este caso:
idhogar region estrato integranteshogar expansor ingpercapsvl Computador TvAbonado Internet
1 capital 1 2
2013 Apr 25
0
tables: proper use of Hline() in tabular()
Dear all,
I am unable to understand how Hline() works in tabular(). I've read
the vignette and the help page, and here this example compiles
perfectly fine:
latex( tabular( Species + Hline() + 1
~ Heading()*mean*All(iris), data=iris) )
However, if I try it on my own data it fails. Consider this:
set.seed(1)
Xa <- data.frame(p=rep(c("First group","Second
1998 Jan 07
0
tabular environment for Rd files
I have added a preliminary version of a tabular environment to Rdconv
and committed it to the current development sources.
Syntax:
\tabular{format}{
aaa \tab bbb \tab ccc \cr
xxx \tab yyy \tab zzz
}
i.e., the column seperator is \tab and the line seperator is \cr
format is a usual LaTeX tabular format string, e.g in the above
example it could be `lll' giving three left justified
2011 Apr 14
0
Reshaping and plotting tabular data
Hi-
Tabular data have been provided to me within .csv files. I need to transform
the data from tabular format into a dataframe with three
columns. The columns need to be the table row id, table column id, and the
tabulated variable. An example dataset can be downloaded here:
2005 Sep 20
1
Tabular structure where you can use keyboard to navigate up and down
Need some help in creating a table structure such that I can use the keyboard up/down keys to move through the rows.
Can anyone give me a pointer to this?
So, if I have 5 row in the table, I want to be able to use my keyboard to go up and down and select every row (without using the mouse).
Thanks,
Mandy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2013 Feb 01
2
Frustrated with "network name is no longer available"
Nothing fancy, and I've done this before...
but today I'm trying to get samba 3.10.5 with tdbsam working on Centos 6.3.
iptables is stopped on the samba server.
selinux is disabled on the samba server.
service smb and nmb are running.
samba server has an 'a' record on our dns server.
samba server is set to be a wins server.
Note- I have ANOTHER wins server on the same subnet for
2012 Oct 29
0
Tabular datos de Encuesta Continua de Hogares}
> Buenas, tengo la siguiente inquietud.
> Tengo un data frame con los microdatos de la ECH de mi pais. He realizado
> un cuadro sin problemas en excel pero me gustaria una rutina de R para
> poder generar la tabla. El data.frame se llama ECH2009. Cuenta con las
> siguientes variables para este caso:
>
> idhogar region estrato integranteshogar expansor ingpercapsvl Computador
2004 Jun 03
3
printing tabular data nicely
Hi R-heplers,
I would like to print various matrices, dataframes, tables, etc to
files, preferably nicely formatted postscript for import into papers.
Is there a way to do this?
I know ?cat, ?writeLines, ?format, ?paste. But I am not sure of a good
combination of these in order to get a nice looking table of information.
Any ideas? I guess I want (almost) publication ready output, just
2012 Jan 03
1
sqldf and not converting integers to floating point in SQLite
Hi,
I have following 2 tables:
Table 1:
POSTAL | VALUE
1000|49
1010|100
1020|50
Table 2:
INSEE | POSTAL
A|1000
B|1000
C|1010
D|1020
I would like to convert this to the following:
INSEE | VALUE_SPREAD
A|24.5
B|24.5
C|100
D|50
I can achieve this with a nested SQL query (through counting the
number of POSTAL that belong to any given INSEE, and diving the value
of the postal in that INSEE by