similar to: read.table versus read.csv (PR#9284)

Displaying 20 results from an estimated 20000 matches similar to: "read.table versus read.csv (PR#9284)"

2005 Dec 29
1
Problems with calloc function.
Hi all, I have a C code in Linux, it has 7 pointers and compile e run OK, but when I run in R happens problems with calloc function, it returns NULL. ############################################### > int *temp1,*temp2,*temp3,*temp4; temp1 = (int *)calloc(col,sizeof(int)); if(temp1 == NULL){ printf("\n\n No Memory1!"); exit(1); } temp2 = (int *)calloc(col,sizeof(int));
2010 Jul 01
2
Sweave function
Dear list, I have a question about the interaction between R code and Latex language trough the Sweave function in the package "utils". What I'm trying to do is to write a report. Contrary to the examples shown in the Sweave Manual in which table already constructed by R are "exported" on Latex files, what I would like to do is to build a table in which I combine text and
2011 Jun 09
2
Problem with a if statement inside a function
I have a really long functions, and at the end of the function, I am using a if statement to tag certain keywords based on whether they have certain values contained in them. However, the if statement doesn't seem to work. When I had split up the commands into various functions, it worked fine, but I'm not sure what going on now that it's combined into a single function. myfunc
2004 Aug 25
1
VSS and Samba on Tru64 Unix
Good Afternoon All. Please forgive me if this is an often-asked question, but ... We're trying to get the ability to have users in the same UNIX group be able to check-in and check-out files from a VSS repository. All users in a defined unix group should be able to copy, edit, and delete any file created by any other user in that group. As most of you probably already know, this works fine
2011 Aug 30
3
having trouble extracting week from chron object
Running R 2.13.1 on Windows XP. I would like to get week of the year (1-52) for each date. library(chron) dts <- dates(c("02/27/92", "02/27/92", "01/14/92","02/28/92", "02/01/92")) dts dts.chron <- as.chron(dts) dts.chron class(dts.chron) # all of these component extractions work: months(dts.chron) weekdays(dts.chron) years(dts.chron)
2008 Jul 14
2
question about a small "for" loop
R 2.5.1 on WinXP I'm trying to create new variables in a dataframe called jaw, as powers of jaw$age up to the sixth power, and name them jaw$age.(--the digit corresponding to the power--) Obviously none of these work (silly for me to try, I suppose): for (i in 2:6) { jaw$age.'i' <- jaw$age^i } for (i in 2:6) { jaw$age.i <- jaw$age^i } for (i in 2:6) {
2010 Mar 10
1
trouble calculating rates--sometimes the denominator is missing
Every day I get a csv file containing the names of the 64 schools in our county, the number of students sent home ill, and the number of students absent (plus lots of other variables). The file is cumulative since fall of 2009. It is in "long" format: one line per school per day. Each line is also supposed to contain the total number of students enrolled in the school. That number
2009 Apr 20
4
automatic exploration of all possible loglinear models?
Is there a way to automate fitting and assessing loglinear models for several nominal variables . . . something akin to step or drop1 or add1 for linear or logistic regression? Thanks. --Chris -- Christopher W. Ryan, MD SUNY Upstate Medical University Clinical Campus at Binghamton 40 Arch Street, Johnson City, NY 13790 cryanatbinghamtondotedu "If you want to build a ship, don't drum
2008 Oct 30
1
trying to figure out reorder.factor in gdata
I'm trying to make a factor with levels for day of week, appear as Monday-Sunday, rather than alphabetically. I'm using reorder.factor from gdata package, but obviously not using it properly. What am I doing wrong? Thanks. >data <- read.table("DataEarly2008.txt", sep=" ", header=T, as.is=1:2) >str(data) 'data.frame': 7953 obs. of 9 variables: $
2009 Jan 27
2
using Sweave with a master file that has several iputted .tex files
Suppose I have a Master.Rnw file that looks something like this: \documentclass[12pt]{mypaper} \usepackage[margin=1in]{geometry} \usepackage{setspace} \usepackage{url} \usepackage{indentfirst} \usepackage{fancyhdr} \usepackage{Sweave} \pagestyle{fancy} \lhead{sonographic rectal diameter and ADHD} \rhead{ } \usepackage{abbrevs} %\usepackage{natbib} %\usepackage{apacite}
2008 Jun 26
2
stuck on making a line graph across time, with 4 categories
I can't seem to find just what I'm looking for in R help, Everitt and Hothorn HSAUR, Murrell's book, or the R graphics gallery at http://addictedtor.free.fr/graphiques/. Probably not looking efficiently, but anyway, If my data look like this: > head(data) cat startyear studentid 1 other 2001 12 2 UHS 2001 17 3 Lourdes 2001 10 4
2007 Nov 29
1
extracting items from R objects and using them in \Sexpr with Sweave--problem with $
Running R 2.5.1 on WinXP with Tinn-R, and using Sweave via MikTex. I am having trouble with the code below: ------------------------------------------------------- <<lowerCI95>>= lowerCI95713 <- t.test(data713, alternative="greater") lowerCI95713.bound <- lowerCI95713$conf.int[1] @ Thus a lower 95\% confidence bound on the mean octane concentration is
2005 Aug 26
1
Pseudo-Voigt fit
Hi, I am sorry for this question, but I am trying to speed up an application.... I will need to fit many x-y data sets (input from text files) to 4-parameter Pseudo-Voigt peak function. Until now I used SigmaPlot macro to do it (enclosed just in case...) peaksign(q) = if(total(q)>q[1], 1, -1) xatymin(q,r) = xatymax(q,max(r)-r) [Parameters] a = if(peaksign(y)>0, max(y), min(y))
2009 Jan 21
1
trouble converting an array to a dataframe
I start with a dataframe called xrays. It contains scores on films from each of two radiologists. It is in "long" format. I used the reshape package to melt a data frame and then cast it into "wide" format, one line for each patient (identified by redlognumb) with scores from both radiologists for a given patient on the same line. I named the result of the casting xrays.data.
2008 Nov 10
0
[fernan@iib.unsam.edu.ar: Re: [FreeBSD] Fix for ServerWorks HT1000 in upcoming 7.1?]
On Mon, Nov 10, 2008 at 10:01 AM, Fernan Aguero <fernan@iib.unsam.edu.ar> wrote: > > Date: Wed, 29 Oct 2008 14:05:22 -0300 > From: Fernan Aguero <fernan@iib.unsam.edu.ar> > To: Kirk Strauser <kirk@strauser.com> > Cc: freebsd-stable@freebsd.org, d@delphij.net, > John Baldwin <jhb@freebsd.org>, re@freebsd.org > Subject: Re: [FreeBSD] Fix for
2001 Feb 14
0
ASPI problem
Having gotten WinOnCD to start (though the installer fails (*.msi file)) by copying the files and registry from a windows install, I now have an ASPI problem. I am able to erase a cdrw from within winoncd and most of winoncd works pretty much as it should (but no drag'n drop works). Writing a CD does however not work yet and it appears to be a winaspi problem: Here is part of the trace:
2011 Mar 23
1
[GSOC 2011] Participate
Hey Everyone, I am interested in participating in open source project through Google Summer of Code 2011. I went through the idea list and I am keen on *improving spelling correction *as I have projects in algorithms and lingustics. Can anyone suggest me some reading material? Thank you, Prasad Prabhu Masters Student SUNY STONY BROOK NY Follow Me on: Twitter
2011 Mar 23
1
[GSOC 2011] Participate
Hey Everyone, I am interested in participating in open source project through Google Summer of Code 2011. I went through the idea list and I am keen on *improving spelling correction *as I have projects in algorithms and lingustics. Can anyone suggest me some reading material? Thank you, Prasad Prabhu Masters Student SUNY STONY BROOK NY Follow Me on: Twitter
2003 May 21
0
How many X100P's in a system.
From what I understand, shared interrupts are permitted on the PCI bus. Whether they work for a specific card or not depends entirely on how the driver is written. Someone at Digium should know this. -- Stephen R. Besch, Ph.D. SachsLab 320 Cary Hall SUNY at Buffalo Buffalo, NY 14214 (716) 829-3289 x106
2003 Jul 17
0
grandstream sip phone (NTP)
I have solved the time server problem with the Grandstream by having my * box's NTP service mirror a public NTP server. I had to do this because my phones are all on the 192.168 subnet, which is non-routable. For example, assuming that the NTP service is configured and running on your * box, create an NTP mirror which allows access from machines on 192.168.10.X by adding the following