Displaying 20 results from an estimated 5000 matches similar to: "convert a table"
2012 Jul 11
3
Subset based on multiple values
I'm stuck on a seemingly simple problem. I'm trying to subset the data by
several numbers and it cuts out half of the rows. Here is the sample code:
test <- as.matrix(c(1,1,1,1,3,3,7,7,7,7))
Count <- tapply(test[,1], test[,1], length) # count for each value
spp <- unique(test[,1])
Count1 <- as.data.frame(cbind(Count,spp))
Max <- max(Count)
Count1$sppMax <-
2005 Jul 07
1
Tables: Invitation to make a collective package
Hi All,
I would like to make an invitation to make a collective package with all
functions related to TABLES.
I know that there are many packages with these functions, the original idea is
collect all this functions and to make a single package, because is arduous for
the user know all this functions broadcast in many packages.
So, I think that the original packages can continue with its
2011 Jul 05
2
Stuck ...can't get sapply and xmlTreeParse working
Can't seem to get the code below working. It gets stuck on line 24 inside the
function hm; comments show the line in question. The function hm is called
by sapply and is at the bottom of the code. Other stuff above line 24 works
correctly including the first couple of lines of the function hm. Should I
be using a different apply function or am I doing something wrong with
xmlTreeParse ?
2020 Mar 17
3
Running amanda on CentOS 7: "amanda-udp.service failed."
I am trying to get amanda backup going on a CentOS 7 system and things are not
working:
sharky4.deepsoft.com% sudo systemctl start amanda-udp
[sudo] password for heller:
Job for amanda-udp.service failed because a configured resource limit was exceeded. See "systemctl status amanda-udp.service" and "journalctl -xe" for details.
sharky4.deepsoft.com% sudo systemctl status -l
2012 Dec 17
2
Why does matrix selection behave differently when using which?
Dear R community,
I have a medium sized matrix stored in variable "t" and a simple function "
countRows" (see below) to count the number of rows in which a selected
column "C" matches a given value. If I count all rows matching all pairwise
distinct values in the column "C" and sum these counts up, I get the number
or rows of "t". If I delete the
2019 Jun 03
2
[PATCH 22/22] docs: fix broken documentation links
Le 30/05/2019 ? 01:23, Mauro Carvalho Chehab a ?crit?:
> Mostly due to x86 and acpi conversion, several documentation
> links are still pointing to the old file. Fix them.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung at kernel.org>
> ---
> Documentation/acpi/dsd/leds.txt | 2 +-
> Documentation/admin-guide/kernel-parameters.rst | 6
2019 Jun 03
2
[PATCH 22/22] docs: fix broken documentation links
Le 30/05/2019 ? 01:23, Mauro Carvalho Chehab a ?crit?:
> Mostly due to x86 and acpi conversion, several documentation
> links are still pointing to the old file. Fix them.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung at kernel.org>
> ---
> Documentation/acpi/dsd/leds.txt | 2 +-
> Documentation/admin-guide/kernel-parameters.rst | 6
2012 Mar 13
1
Visualising multiple response contingency tables
Dear R Help Community,
I have a question and an answer (based on reading this forum and online
research), but I though I should share both since probably there's a much
better way to go about my solution. My question is specifically about how
to best visualise multiple response contingency tables. What I mean by
'multiple response' is that the total number of responses per row of a
2013 Sep 19
4
Array being flattened
Hello All,
I''ve run into an issue where an array that''s being passed into a
defined type is being "flattened" when it''s inclosed in double quotes
and I''m not sure how to get around this. This is happening a the
pdxcat/amanda module and I''ve raised an github issues for this but
wanted to query the community as a whole. The issue and my branch
2011 May 02
2
INSERT OR UPDATE
I'm trying to insert rows of a data.frame into a database table, or update where the key fields of a record already exist in the table. I've come up with a possible solution below, but would like to hear if anyone has a better solution.
# The problem demonstrated:
# Create a data.frame with test values
library(RODBC)
tbl <- data.frame(
key1 = rep(1:3, each = 2),
key2 =
2011 May 13
1
ubuntu package installs
hello puppet list
My puppet server is now working quite wonderfully. Thanks go out to
all who have assisted in getting it to this point. At this point in
time my config is now correctly installing packages according to
arch,os and release. Centos is working quite well as of now, but I am
attempting to get the ubuntu side of things to work as well. I am
frankly more familiar with RHEL under
2011 May 26
2
What am I doing wrong with sapply ?
Statement 9 using sapply does not seem to give the correct answer (or at
least to me). Yet I do what I think is the same thing with statement 11 and
I get the answer I'm looking for.
9 : s <-sapply(unlist(v[c(1:length(v))]), max)
11: for(i in 1 :length(v)) v1[i] <- max(unlist(v[i]))
Shouldn't I get the same answer ?
library(XML)
rm(list=ls())
url <-
1997 Jul 25
7
Amanda 2.3.0.5-Samba 1.9.16p11 PC backups...
At the bottom is what I got returned from AMANDA 2.3.0.5 after patching
Samba 1.9.16p11 to give estimates. Any idea what I might not have done yet?
My disklist reads:
shokk \\thor\depot nocomp-user-gnutar
To connect successfully to that server with smbclient, I have to do this,
giving the same password that I now have in /etc/amandapass:
smbclient \\\\THOR\\DEPOT -U BACKUP
Also, the
1998 May 16
3
TRANS.TBL files on Win95 fileserver
I have a small LAN in my basement, with my PC running RH5 Linux and a Win95 PC
connected by Samba. Everything works fine, but when I smbmount a CD (burned
with xcdroast) from the Linux box (CD is in the Win95 machine) I do not get the
proper filenames. All files are uppercase, and the TRANS.TBL files appear to be
ignored. I have tried playing with name mangling, but it didn't help. Is this a
2003 Apr 15
5
Summarizing levels for future commands
Hi. This will hopefully be readily understood but if not, bear with me.
I have to do a repeated analysis (in spatstat) and want to batch file it. For each of my 'runs' certain variables change. At present I am manually specifying these changes and want to automate it if possible.
Ok, I am creating an object which is comprised of 'levels' that are 'characters'. Further
2016 Jun 21
2
Pregunta sobre shinyTable
Hola una pregunta:
¿Alguien ha trabajado con shinyTable?
Mi pregunta es si se puede controlar el tamano de una tabla que se muestra por pantalla
El tema es el siguiente:
Con esta parte de codigo:
output$tbl <- renderHtable({ if (is.null(input$tbl)){ #fill table with 0 tbl <-
2001 Oct 11
2
large dataframes to ascii
Hi R-users,
I want to convert a large dataset (from stata format) to an ascii table.
The resulting table should be a human-readable table (like CSV, or
tab-separated file or something similar). R reads the stata-file quite
easily (with some problems which are discussed here earlier), but so long I
have not found a suitable way to write it in ascii format.
Sure, there exists write.table, which
2008 Jun 24
2
spineplot (graphics package): how to control font size?
I cannot modify the font size of the standard text items for the
splineplot function
found in the standard graphics package. Here is a tiny example, in
which
I try (but fail) to make the main title large.
tbl = read.table ('http://www.ggobi.org/book/data/tips.csv',
sep=',', header=T)
spineplot (table (tbl$DAY, tbl$SEX), main='TIPS', cex.main=3)
None of
2011 Dec 22
2
Indexing multi-dimensional table
I want to take slices of a multi-dimensional table (or array) without
knowing the number of dimensions in advance.
As a test I tried using (in this example a 3d table):
do.call(`[`, list(tbl, x,NULL,NULL)]
where I built the list on the fly. It works great as long as I only want the
first dimension however when I try a different dimension, say with
list(tbl,NULL,x,NULL), I get
2011 May 15
1
Need help with text processing / string split
I used screen scraping to extract some information and put it into a table
called tbl. Now I want to modify the table a bit so the data can be more
useful. Here's the code I used:
library(XML)
rm(list=ls())
url <-
"http://webapp.montcopa.org/sherreal/salelist.asp?saledate=05/25/2011"
tbl <-data.frame(readHTMLTable(url))[2:405, c(3,5,6,8,9)]
names(tbl) <-