i Bond

 

https://www.treasurydirect.gov/indiv/products/prod_ibonds_glance.htm

 

Rの質問

Rの質問です。

以下は、最初のところでFAKEのデータを作っています。my_functionですけど、d_sというDATA FRAMEの中から、高校生のデータで、最初はGRADEが11の時に、データをサブセットするようになっています。その次のループでは、GRADEが12の時に、そうします。小さなデータを作るのが目的です。

問題は、これでせっかく書き出したものが、実際に、CALLされるようになっていません。eval()でできるとネットに書いてあったので試したのですがダメです。どうしたらいいでしょうか?成功すると、G11とG12という別々のデータフレームが作成されるはずなのです。

d_s <- data.frame(grade_ = c(10, 11, 12, 13, 12),

WVEIS = c(123, 134, 243, 244, 133),

annual_total_hours = c(1, 1, 5, 3, 5))

my_function <- function(var1)

{

eval(paste0('G',var1,'<-filter(d_service,grade_==',var1,')'))

}

 

my_function(11)

my_function(12)

 

今のところ、以下のように、ただ単に結果がプリントされるだけで、CALLされていません。

> my_function(13)

[1] "G13<-filter(d_service,grade_==13)"

> my_function(12)

[1] "G12<-filter(d_service,grade_==12)"

 

もしお時間がありましたら、教えていただけますか?

k u e k a w a @gmail.com までお願いします。

Selling a condominium unit in Virginia USA

Sequence of events

Buy new things (floor, carpet, AC, etc.), fix things (e.g., bathrooms), empty out the unit

Get a realtor

Saturday: Realtor comes to discuss details

Week 1

MAY 16 (Monday)

  • A photographer comes and takes pictures (free)
  • Get a resale document: I went to the website of the condo management company, fill in information, pay $350 (or so). It would be better to do this early, so you don't have to pay an expedite fee (of about $50).

MAY 17 (Tuesday)

  • Sign the contract with the realtor (commission and the price included) using DOCUSIGN

MAY 18 (Wednesday)

  • The condo management company emailed me and said he would visit us tomorrow to do the resale inspection.

MAY 19 (THURSDAY)

  • The ad for the condo unit is up on the Internet since early morning.
  • The condo mangement company staff came to check if any improvements/changes we made are in violation of the rules. This took only five minutes.

 

 

How to find color ID

There are codes for colors used for websites programming, etc. For example, white would be #FFFFFF, I think.

Imagine you want to know code for this color.

I assume you already have a graphic file that contains the color. In my case, I had a file 2022-05-09_16-26-54.png to show you the box above.

Step 1: Open Paint, which is a software program included in Windows.

Click on the bucket button (right next to a pencil icon, eraser icon, right-upper side of the screen). It will get you to the editor colors window, showing you also info such as Hue, Sat, Lum...

 

Step 2:

http://sape.inf.usi.ch/quick-reference/ggplot2/colour

How to connect old WD My Cloud directly to PC

The old version of WD My Cloud (Purchased around 2015) does not receive customer support beyond April of 2022. When I got an email notice about it, I understood this to mean that I can't use the device via Wifi beyond April of 2015. I hadn't used it for at least three years. I wanted to retrieve data from the device. I also wanted to use it if possible by directly connecting it to my PC.

I submitted a question ticket at WD website .  After a couple of email exchanges, a support staff member called me to help me with the following steps.  I'm typing this up one day after the call, so there may be some errors.

  1. Connect the device to PC via. an Ethernet cable (I got it from Amazon).

  1. Find a pen hole in the back of the device (right next to the USB port) and press it for five seconds using a needle (I had the pin that came with my Android phone; see below, but any small pin would work)

Do you see the pen hole on the right side of the USB port below?

  1. Wait until the front LED becomes solid blue (five to 10 minutes). PC will recognize the device eventually (you will see two icons in Network; double click one of them associated with the one in Storage section to find the IP address).

 

Right-click the screen and create a short-cut and type in a IP address (but start it with double backward slashes).

When you click on the WD MyCloud Icon in the storage section, you will get this kind of window (You may get a different one if you haven't set a password, etc. yet).

You may get something like this instead if you haven't set your password yet (but I am not sure). I believe you click on Users and then create a password (I already had one user already created about five years ago; I needed to assign a password to it).

I don't know what would happen if I forget my password.

 

 

 

How to manually specify DF in PROC GLIMMIX

proc glimmix data=sample METHOD=LAPLACE ;
*where flag_CE=1 ;
where flag_SAT=1 ;
*where flag_DE=1 ;
class group_school ;
model enroll_fall=treat pretest_GPA male minority disadv /
solution /*ddfm=kr*/ dist=binomial link=logit
ddf=36.157,.,.,.;
random intercept /subject=group_school;
run;