Displaying 20 results from an estimated 20000 matches similar to: "importing a file"
2011 Jun 21
5
converting character to numeric
I'm trying to convert data from character to numeric.
I've imported data as a csv file, I'm assuming that the import is a
database - are all the columns in a database considered "vectors" and that
they can be operated on individually
Therefore I've tried the following
mydata <- as.numeric(mydata$apples)
when i then look at mydata again the named column is still
2009 Jan 21
2
Replacing dates with consecutive observations
I am working with a list of dates and I would like to replace each date with
the one that comes after, ie. 1/1/07 will become 1/5/07, 1/5/07 will become
1/7/07, etc. The number of days between my dates always varies, so I can't
just increase each one by 5 days or so. Does anyone know of a way I can do
this in R?
thank you
[[alternative HTML version deleted]]
2008 Nov 17
2
looking for matches
My question is probably pretty basic, but since I'm really new to R, here it
goes ....
I have two separate data frames that include class names and various other
information on classes. I'm trying to create a match based on class names
and if a match exists to create a third data frame with the class name.
I was hoping to accomplish this with sapply, but I can't figure out if I can
2009 Feb 19
2
colored maps again
I'm trying to create a colored map that would show the number of students
per state.
My data frame consists of two columns - state and count.
I'm using the following code
library(maps)
map("usa")
library(plotrix)
state.col<-color.scale(gre$count,0,0,c(0,1))
map("state",fill=TRUE,col=state.col)
I'm getting a map, but the values are not being mapped to correct
2009 Mar 31
1
target of assignment expands to non-language object
I'm running the following code
numbers <- 1:50
for (i in 1:50)
assign(paste("model",numbers[i]),i)<-(lm(temp$Overall.Scaled.Score~temp$raw.score))
where I want R to create 50 different models-1:50, but get the following
error message
"target of assignment expands to non-language object". I've tried it with
2009 Feb 17
2
creating a map
I'm trying to create a fairly basic map using R. What i want to get is the
map of the country with circles representing a count of students in each
state.
What I've done so far is as following -
map("state")
symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inches=F)
this gives me the map of the country, but one that's not populated by my
counts.
Does
2009 Mar 31
1
model selection using ANOVA
I've created a number of models using lm and now want to pick one with the
smallest standard error or the smallest RSS,
I can get a list of RSS using anova function, but is the any way I can then
select one with the smallest RSS from the list?
[[alternative HTML version deleted]]
2012 May 03
6
Cannot read or write to file in Linux Ubuntu
I am the proud owner of a new laptop since my old one died the other day.
Currently I have a dual-boot Windows 7 Home and Ubuntu 12.04 . I'll leave the Windows problems for another post.
I know practically nothing about Linux so I am probably doing something stupid but ... at the moment I cannot seem read or write files in Ubuntu. I am not having any problem saving other documents to the
2009 Mar 04
1
mapping lat and long with maps package
I am trying to overlay a data frame with lat and longitude(which refer to
zip codes) on the map of US that I get by using map ("states").
Is there anyway to do this or do I have to resort to using maptools?
thank you
[[alternative HTML version deleted]]
2012 Apr 13
3
Help - Importing data from txt and xlsx files
Hi all,
I have just started to use R for my PhD project and have no previous
experience in programming. I am having trouble importing data to R. This
is the output:
> mydata <- read.table("Lv2.8.txt")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'Lv2.8.txt': No such
2011 Apr 29
1
importing and filtering time series data
Folks,
I'm new to R and would like to use it to analyze web server performance data.
I collect the data in this CSV format:
1304083104.41,Y,668.856249809
1304083104.41,Y,348.143193007
First column is a <seconds.microseconds> timestamp, rows with N instead of Y need to be skipped and the last column has the same format as the first column, except it's request duration (latency).
2006 Oct 30
4
for importing "data"
*I am a very new user of R. I've spent several hours trying to import
data, so I feel okay asking the list for help. *
*I had an Excel file, then I turned it into a "tab-delimited" file, as
instructed by directions My
filename is "lahore.txt" I amusing the following commands for read.delim but
i am getting following mesages. Sir i am sending you my excel data file i
2010 Aug 12
5
Where the data file is stored?
Hi folks,
OS - Ubuntu 10.04
On R I create a datafile named "data". I can evoke it on R with;
> data
On R Commander
Data -> Active data set -> Select active data set -> (data) OK
only one data set there "data"
-> View data set
I can read it
-> Edit data set
showing 25 rows of data. Clicking the box shows a thick border around it. But
I couldn't
2009 Dec 17
8
how to import data from excel to R
Hi,
I am using R and I want to know how data can be transferred from Excel
Spread sheet to R for analyzing. I have done like this
mydata<-read.table("C:\Documents and Settings\admin\Desktop\data.txt");
but its not working how can i do it
regards
Sarath Sankar V
2019 Aug 28
3
Turning on MemorySSA for loop passes
Hi all,
After a long ride, I'm planning to turn on the use of MemorySSA for loop
passes (D58311 <https://reviews.llvm.org/D58311>) tomorrow (8/29).
Please let me know if you have issues, concerns or feedback on this.
Best,
Alina
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2020 Feb 10
2
RFC: Mark BasicAA as a CFG-only pass.
On 2/10/20 2:35 PM, Alina Sbirlea wrote:
> Hi,
>
> Here's a tentative patch of the changes for this: D74353
> <https://reviews.llvm.org/D74353>.
I suppose that, as expected, it's invalidated less often this way. Given
that it's generally stateless, does this really represent a cost savings?
-Hal
>
> Thank you,
> Alina
>
>
> On Mon, Feb 10,
2020 Feb 10
2
RFC: Mark BasicAA as a CFG-only pass.
Hi,
I'd like to understand if it makes sense to keep BasicAA as a not CFG-only
pass, or if it can be updated to CFG-only. The change was made in D44564
<https://reviews.llvm.org/D44564>.
>From what I gathered the motivation was PhiValuesAnalysis not being
properly updated, and BasicAA having an instance of it.
PhiValuesAnalysis now uses callback values to invalidate deleted values (
2017 Oct 10
2
Expose aliasing information in getModRefInfo (or viceversa?)
Yes, this is odd.
On my clang.bc
Without:
2.2967 ( 53.8%) 0.0242 ( 26.4%) 2.3210 ( 53.2%) 2.3227 ( 53.2%)
Memory SSA
2.3364 ( 53.7%) 0.0246 ( 25.7%) 2.3610 ( 53.1%) 2.3636 ( 53.1%)
Memory SSA
2.3353 ( 54.0%) 0.0258 ( 27.0%) 2.3611 ( 53.4%) 2.3632 ( 53.3%)
Memory SSA
With two getModRefInfo calls:
3.0302 ( 58.8%) 0.0328 ( 29.9%) 3.0630 ( 58.2%) 3.0858 ( 58.2%)
2008 Jun 08
1
R and Gnumeric
Hi,
I just read the "Embedding R in Gnumeric" idea at
http://www.r-project.org/SoC08/ideas.html. On my side, I intend to add
as many statistics related plot types to the current gnumeric charting
engine as possible. We already have boxplots and partial support for
histograms. My immediate plans are to finish the histogram code and add
probability plots
2018 May 20
3
Loop Function to Create Multiple Scatterplots
Hello,
I am trying to create multiple scatter plot graphs. I have 1 independent
variable (Age - weeks post conception) and 18 dependent variables ("Gene n"
Expression) in one csv file. Is there a way to set up a looped function to
produce 18 individual scatterplots? At the moment, I am writing the plot()
function out 18 times to make the 18 graphs. My code is below and csv file
is