Displaying 20 results from an estimated 1000 matches similar to: "Help: problem converting character to numeric"
2011 Dec 04
3
Group several variables and apply a function to the group
Dear R-experts,
I am struggling with the following problem, and I am looking for advice
from more experienced R-users: I have a data frame with 2 identifying
variables (comn and mi), and an output variable (x). comn is a variable for
a company and mi is a variable for a month.
comn<-c("abc", "abc", "abc", "abc", "abc", "abc",
2011 Dec 02
2
Problem subsetting: undefined columns
Dear R-users,
-I am new to R, and I am struggling with the following problem.
-I am repeating the following operations hundreds of times, within a loop:
I want to subset a data frame by columns. I am interested in the columns
names that are given by the rows of another data frame that was built in
parallel. The solution I have so far works well as long as the elements of
the second data frame
2012 Feb 01
2
Problem with xtable- rescaling a table
Dear R users,
I am new to Latex and I am using the R package xtable to generate tables.
I want to produce a table that is very long. in the landscape format, but
I would need to rescale the table so that it fits in the page. xtable
enables me to have the landscape format, but I cannot rescale it, and there
seems to be a problem, if I use scalebox in Latex on my output produced
with stable and the
2010 Mar 30
1
dataframe in loop
hello all:
I would like to thank those who helped me out of the string
problem..but now I got another problem.
I used R to query from SQL and got a list of crsp_fundno of G-style mutual
funds which is still alive. I use the following codes and got what I want:
library(RODBC)
channel<-odbcConnect("CRSPFUND")
g.crspfundno<-sqlQuery(channel,"select crsp_fundno from Fund_style
2010 Mar 24
3
string problems in R
Hello all
I have been working on my thesis using R. I am a newbie to R and met a problem
that bothered me for a while due to my lack of acquaintance of R.
I am using R to query from SQL. I got a list of crsp_fundno of G-style mutual
funds which is still alive. I use the following codes and got what I want:
library(RODBC)
channel<-odbcConnect("CRSPFUND")
2007 May 10
3
Getting the last day of the month.
Hi,
Given a date, how do I get the last date of that month? I have
data in the form YYYYMM, that I've read as a date using
> x$Date <-
as.Date(ISOdate(substr(x$YearEnd,1,4),substr(x$YearEnd,5,6),1))
But this gives the first day of the month. To get the last day of the
month, I tried
> as.Date(as.yearmon(x$Date,frac=0))
But I don't get the last day of the month here. (Tried
2017 Dec 21
2
How to implement lowerReturn for poring GlobalISel to RISCV?
Hi LLVM developers,
Thank Daniel Sanders, Aditya Nandakumar and Justin Bogner's Tutorial[1]:
Head First into GlobalISel about how to port, and Aditya took BPF target
as a simple instance:
bool BPFCallLowering::lowerReturn(MachineIRBuilder &MIRBuilder,
const Value *Val, unsigned VReg) const {
assert(!Val == !VReg && "Return value
2010 Jan 22
2
Question on Merge/Lookup
I need to merge three datasets and don't know how. If I were using SQL, I
would use df3, look up the characteristics of each date in df1 and the value
for each observation in df2.
df1 - unique list of Dates and characteristics of those dates
Date, YYYYMM, YYYYWW, DOW
df2 - the raw data
Date, Place, Value
df3 - all posibile combinations of Date + Place (via
2011 Oct 03
1
Efficient way to do a merge in R
Dear all,
I am new in R and I have been faced with the following problem, that slows
me down a lot. I am short of ideas to circumvent it. So, any help would be
highly appreciated:
I have 2 dataframes x and y. x is very big (70 million observations),
whereas y is smaller (300000 observations).
All the observations of y are present in x. But y has one additional
variable that I would like to
2007 Sep 27
1
converting numbers in "YYYYMM" format to last calendar day and last exchange trading day of the month
I have a vector that contains month and year in the format YYYYMM (e.g.“200701”, “200702”)
I wish to do to things:
1. I need to convert to a date that is the last calendar day of each month.
2. I need to convert this to a date that is the last U.S. stock-exchange trading day of each month.
Any advice is appreciated,
mymonths <- c(200701, 200702)
2010 Sep 22
5
Meaning of LND/neterrors ?
Hello
I''ve noticed that Lustre network error, especially LND errors, are considered as maskable errors.
That means that on a production node, where debug mask is 0, those specific errors won''t be displayed if they happened.
Does that mean that they are harmless?
Do upper-layers resend their RPC/packet if LNDs report an error?
When, in my case, o2iblnd says something like
2010 Sep 22
5
Meaning of LND/neterrors ?
Hello
I''ve noticed that Lustre network error, especially LND errors, are considered as maskable errors.
That means that on a production node, where debug mask is 0, those specific errors won''t be displayed if they happened.
Does that mean that they are harmless?
Do upper-layers resend their RPC/packet if LNDs report an error?
When, in my case, o2iblnd says something like
2003 May 18
1
TS data frames
hi chaps: apologies, more naive beginner's questions. my data sets
contain multiple time series and look like
date x y
196211 12 1
196212 4 2
196301 44 5
so dataset <- read.table("data.dat", header=T); works well enough.
tsdataset<- ts(dataset, freq=12, start=c(1962,11)) also seems to work.
summary(tsdataset) and print(tsdataset) show that this
2011 Oct 31
1
googleVis motionchart - slow with Date class
Hi,
I am trying to create a googleVis motion chart with monthly data. When formatting the date column as a Date class variable, the plot as presented in the browser becomes considerably slower and very prone to crashing the browser. To illustrate this issue I have modified the WorldBank demo.
### objects from demo("WorldBank", package = "googleVis")
M <-
2010 Feb 15
4
Separating columns, and sorting by rows
Dear anyone who knows more about R than me (so everyone). I have been bashing
my head on the keyboard all day trying to do something with my table.
I have some data, like so:
yyyy-mm Rainfall(mm)
1 1977-02 17.4
2 1977-03 34.0
3 1977-04 26.2
4 1977-05 42.6
5 1977-06 58.6
6 1977-07 23.2
7 1977-08 26.8
8 1977-09 48.4
9
2008 May 15
7
Unable to run Watchtower Library 2007 Japanese : font ?
Hello,
I was using both version of WTLib 2007 (French and Japanese) under Unbuntu7.10 and Wine 0.9.47 and it worked fine with just an installation of VCRedist and some japanese fonts in windows folder. But recently i moved my system to the new Ubuntu8.04 with the last version of wine : 1.0 RC1.
I read that i don't need to install vcredist and font anymore. It's supposed to be a platinum
2012 Dec 15
2
troubles reading a text file
Dear R experts,
For quite some time I have been trying to solve a mistery of reading a seemingly trouble-free text file. The data is temperature reconstruction arranged as a huge grid, preceded by seven "header lines" (which you see better if file is opened in Firefox or Chrome).
This is the data (gridded temperature reconstruction)
2006 Jun 01
2
Problem to join ADS domain.
Hi,
I post my message here because I can't debug my problem, I hope you have
time to help me to find the problem.
I'm trying to join my Samba machine to an ADS domain, but my "net ads join"
don't work :(
There is my logs, if you need more detail ask me.
~# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: administrateur@TEST.LAN
Valid starting Expires
2007 Nov 04
1
Nitram driver and timeout
Hi,
I recently bought a Nitram Elite 2005 UPS and i installed nut to monitor it.
Unfortunatly, i often have timeout errors (20 timeout per days):
Broadcast Message from aurelien at berkelium
(no tty) at 18:05 CET...
Communications with UPS Nitram at localhost lost
Broadcast Message from aurelien at berkelium
(no tty) at 18:05 CET...
Communications with UPS Nitram(AT)localhost
2007 Nov 04
1
Nitram driver and timeout
Hi,
I recently bought a Nitram Elite 2005 UPS and i installed nut to monitor it.
Unfortunatly, i often have timeout errors (20 timeout per days):
Broadcast Message from aurelien at berkelium
(no tty) at 18:05 CET...
Communications with UPS Nitram at localhost lost
Broadcast Message from aurelien at berkelium
(no tty) at 18:05 CET...
Communications with UPS Nitram(AT)localhost